Installing extensions through command line (--install-extension) stopped working, installs ms-python instead
See original GitHub issueInstalling extensions with code-server --install-extension
command line seems to be broken since yesterday.
~ (:|✔)~$ ls ~/ext-test
~ (:|✔)~$ ./Downloads/code-server2.1698-vsc1.41.1-linux-x86_64\ \(1\)/code-server2.1698-vsc1.41.1-linux-x86_64/code-server --extensions-dir ~/ext-test --install-extension=redhat.vscode-yaml
Installing extensions...
Installing extension 'redhat.vscode-yaml' v2020.2.64397...
Extension 'redhat.vscode-yaml' v2020.2.64397 was successfully installed.
~ (:|✔)~$ ls ~/ext-test
ms-python.python-2020.2.64397
~ (:|✔)~$ rm -r ~/ext-test/ms-python.python-2020.2.64397
~ (:|✔)~$ ls ~/ext-test
~ (:|✔)~$ ./Downloads/code-server-3.0.0-linux-x86_64/code-server --extensions-dir ~/ext-test --install-extension=redhat.vscode-yaml
Installing extensions...
Installing extension 'redhat.vscode-yaml' v2020.3.69010...
Extension 'redhat.vscode-yaml' v2020.3.69010 was successfully installed.
~ (:|✔)~$ ls ~/ext-test
ms-python.python-2020.3.69010
~ (:|✔)~$
As you can see above, it doesn’t work in both recent versions 1698-vsc1.41.1
and 3.0.0
.
Particular extension doesn’t matter, it always installs ms-python
instead. Even installing extensions from .vsix
files has stopped working, however the correct files appear in extensions directory but code-server doesn’t detect them. It would be cool if installing from .vsix
files wouldn’t rely on such external dependencies.
Funny thing is that installing from .vsix
seems to be working with internet connection turned off, so it looks like a problem with some external API request. Market place maybe?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Installing extensions from command line · Issue #171 - GitHub
I have the feeling that ext install <package name> does not work outside the GUI/browser? If I am mistaken, please let me know....
Read more >Managing Extensions in Visual Studio Code
You can install, disable, update, and uninstall extensions through the Extensions view, the Command Palette (commands have the Extensions: prefix) or command- ...
Read more >VS Code installing extensions from the command line fails on ...
and I've gotten it to install VS Code, but my attempts to script adding extensions end in failure. ps> cmd /c code --install-extension...
Read more >VS Code tips — Installing extensions from the command line ...
Today's VS Code tip: -- install -extensionInstall VS Code extensions from the command line with :$ code -- install-extension EXT.
Read more >How add extensions to Visual Studio Code through command ...
You can get the command line help with code -h ... E.g. the ms-python package can be installed by code --install-extension ms-python.python.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve reverted some extension marketplace changes. Sorry about that, we’ll make sure it doesn’t happen again!
Just found out that the problem is not related to Code Server at all: Version
1.3.0
of jupyter-server-proxy doesn’t seem to work properly with extensions.I’ve pinned jupyter-server-proxy to version
1.2.0
in my Jupyter installation and everything is working properly again.