Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command-line installation of extension fails #332

Closed
2 tasks done
PatrickMassot opened this issue Feb 16, 2020 · 6 comments
Closed
2 tasks done

Command-line installation of extension fails #332

PatrickMassot opened this issue Feb 16, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@PatrickMassot
Copy link

Describe the bug
Running codium --install-extension ... doesn't seem to do anything, it launches VScodium without installing anything.

Please confirm that this problem is VSCodium-specific

  • This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn't already documented

To Reproduce
Steps to reproduce the behavior:

  1. Download codium at https://github.com/VSCodium/vscodium/releases/download/1.42.1/VSCodium-linux-x64-1.42.1.tar.gz, uncompress
  2. run ./codium --install-extension jroesch.lean
  3. See no extension being installed

Expected behavior
VScodium should install the extension and quit.

Desktop (please complete the following information):

  • OS: Ubuntu 19.04
  • Architecture x64
  • Version 1.42.1
@PatrickMassot PatrickMassot added the bug Something isn't working label Feb 16, 2020
@stripedpajamas
Copy link
Member

It seems to be working for me (on Mac):

image

And I confirmed it shows up as an installed extension when I open VSCodium afterwards. So it may be Linux-specific. I will try to reproduce this on a Linux machine when I get some time. How did you go about installing your version of VSCodium?

@PatrickMassot
Copy link
Author

As I wrote in my initial message, I simply downloaded the tar.gz file from the GitHub release page. This is crucial because the goal is to to make a zip file containing Codium (in "portable mode"), the extension and some other software all in one folder for easy distribution.

@q0wkp
Copy link

q0wkp commented May 31, 2021

I have discovered the problem - the executable file "codium" in the root directory of the program does not support the command line interface, it can only invoke the GUI of the program.
The "codium" in the "bin" sub-directory of the program's root directory is the real program can be used in command line interface. If you want to execute any command, you must use this instead of the "codium" in the root directory.

Expalnation: The Visual Studio Code is an electron based program, if it want to receive any argument from command line, a special argument must be passed in first, and if you look at the Command Line Interface "codium.bat" for Windows platform, you will discover this:

"%~dp0..\VSCodium.exe" "%~dp0..\resources\app\out\cli.js" %*

The "%~dp0..\resources\app\out\cli.js" is the special argument I mentioned, which implements the command line interface.

@daiyam
Copy link
Member

daiyam commented May 31, 2021

Yep, bin/codium is the main entry of the program. Not sure how to resolve the issue...

@daiyam
Copy link
Member

daiyam commented Jun 13, 2021

@PatrickMassot You should use the command ./bin/codium --install-extension jroesch.lean.

@PatrickMassot
Copy link
Author

I can confirm this works here. Thanks for investigating! I guess that properly fixing this issue would be difficult so you can only document this quirk somewhere in the installation instructions (next to the place you should really warn people that the tar.gz archive contains no root folder and will dump dozens of files and folder wherever you unpack it, which is super annoying).

@daiyam daiyam mentioned this issue Jun 30, 2021
@daiyam daiyam closed this as completed Sep 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants