Skip to content

[Bug]: When using the command "code-server --install-extension", a failed installation returns exit code 0 #6367

Closed as not planned
@SantiSuarezMS

Description

@SantiSuarezMS

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Local OS: macOS
  • Remote OS: Ubuntu
  • Remote Architecture: amd64
  • code-server --version: 4.11.0

Steps to Reproduce

  1. On the Terminal run code-server --install-extension non.existing-extension && echo "Exit code: " "$?"
  2. Wait for the command to finish and check the output.

Expected

At the end of the output it should read:

Exit code:  1

Or any other non 0 appropriate exit code.

Actual

At the end of the output it reads:

Exit code:  1

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream:vscodeNeeds to be fixed upstream in VSCode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions