-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: When using the command "code-server --install-extension", a failed installation returns exit code 0 #6367
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
Comments
@SantiSuarezMS don't you mean: "Actual: At the end of the output it reads: I consider this a bug as well, or at least bad UX, as one can not use this command in a script and react to failing. Any comments from a contributor/developer on this? |
I can reproduce this in GitHub Codespaces. |
And it is present in both IMHO rather a vscode (remote-cli) issue than a code-server issue. |
Yeah in the integrated terminal we just use the script that comes bundled with VS Code (the server/web CLI is different than the native one) so it sounds like an upstream bug. |
We can fix what we can on our end though, the one that runs outside the integrated terminal. Will push that fix in a bit. Edit: This one still does not quite work because the error does not appear to propagate so there is nothing to catch, but that needs to be fixed upstream. |
Addresses part of #6367. The script bundled with VS Code still has the same problem but it would be better to fix that one upstream.
Can we please an issue on the upstream repo then? I would like to do so, but as i'm not familiar with the server/web CLI version, i'm not sure where to place and how to describe it correctly.. |
Sorry for letting this fall through the cracks. If someone wants to submit this upstream, I think it should be sufficient to reproduce in Codespaces (I believe the command there will be |
note this does work as expected in the microsoft code-server version |
I tested after updating to 1.88.0 but unfortunately the problem persists. Not sure why Microsoft's works. 🤔 Does it work within the integrated terminal as well, or only outside? Codespace's is still broken too. |
Ah nevermind I tested, it does not work in the integrated terminal with Microsoft's either. |
Wait, I see why. I can fix the exit code from the external script, but the one from the integrated terminal is still an upstream bug. |
Addresses the part of #6367 that we can fix.
I will go ahead and close this as an upstream bug. |
Addresses part of coder#6367. The script bundled with VS Code still has the same problem but it would be better to fix that one upstream.
Addresses the part of coder#6367 that we can fix.
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.11.0Steps to Reproduce
code-server --install-extension non.existing-extension && echo "Exit code: " "$?"
Expected
At the end of the output it should read:
Or any other non 0 appropriate exit code.
Actual
At the end of the output it reads:
Logs
No response
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
As part of a pipeline, I have a script that install some extensions using
code-server --install-extension
, whenever one of the installed extensions fails I expect the whole script to fail, cascading to the pipeline fail so I can take action.Instead, as it is returning 0 even when the task is failing, the build finishes with a false success.
The text was updated successfully, but these errors were encountered: