code --install-extension path/to/file.vsix
fails with unclear error when dependency extension is not installed
#233375
Labels
info-needed
Issue requires more information from poster
Does this issue occur when all extensions are disabled?: N/A
Steps to Reproduce:
$some_extension
from VSIX that depends on another extension$dependency
that is not installed viacode --install-extension
.A reader might think that this error message is sufficiently clear; if you are installing
$some_extension
and get this error about$dependency
, maybe you need$dependency
. Unfortunately, you also get this error if you are installing both$dependency
and$some_extension
in the wrong order in one CLI invocation. In this context, this error message is very confusing:I was able to solve this confusing mystery with debug output, which revealed that the error about
$dependency
occurred while installing$some_extension
:Some possible ways to fix:
This issue came up while working on the system Stripe uses to manage/install custom extensions that are not present in the Marketplace. We have some that depend on one-another now, causing this new wrinkle. Our workaround is to retry
n
times until success, so long as we have forward progress.The text was updated successfully, but these errors were encountered: