-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Installing extensions at system level (user: root
, built-in location) throws an error
#7042
Comments
root
, built-in location) throws an error
Installing extensions using the GUI seem to work fine at user level (user:
|
@benz0li in case you're looking at the urls I posted, one or two of them were wrong, now fixed |
@antoinemorcos-bpi I will wait for the next release and then check again. Cross reference: |
@code-asher This issue is still present with |
Yes, it seems to run twice for some reason. |
I pushed a fix for the cli running twice; leaving the issue open until we confirm it works for y'all (should have an RC out shortly). Thanks for all the debugging and for finding the issue! |
I tested this and it seems to be working now: |
Confirmed. It works now. |
server-main.js runs itself outside a code-server context, which is determined using the CODE_SERVER_PARENT_PID environment variable. This is set by the wrapper, but there is no wrapper when running the cli (only for the server), so this resulting in the cli running twice (one self-run on initial import, again when we run spawnCli). This might fix coder#7042
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.94.2-rc.1 dd2e9fc with Code 1.94.2Steps to Reproduce
Start container:
Install extension:
Expected
Actual
Logs
See above.
Screenshot/Video
-
Does this bug reproduce in native VS Code?
This cannot be tested in native VS Code
Does this bug reproduce in GitHub Codespaces?
This cannot be tested in GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
It seems to work at user level (user:
root
) by executingcode-server --install-extension ms-python.python
, butls -al ~/.local/share/code-server/extensions
revealswhich does not look fine.
FYI @code-asher
The text was updated successfully, but these errors were encountered: