question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing extensions through command line (--install-extension) stopped working, installs ms-python instead

See original GitHub issue

Installing 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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kylecarbscommented, Mar 24, 2020

We’ve reverted some extension marketplace changes. Sorry about that, we’ll make sure it doesn’t happen again!

1reaction
benz0licommented, Mar 29, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found