Skip to content

Extension can not be installed via command line #7501

@fdddf

Description

@fdddf

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Rocky Linux 9.3
  • Remote OS: Rocky Linux 9.3
  • Remote Architecture: amd64
  • code-server --version: v4.104.0+

Steps to Reproduce

code-server --install-extension golang.go

Installing extensions...

Extension 'golang.go' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
Failed Installing Extensions: golang.go

Expected

extensions can be installed via command line

Actual

failed to install

Logs

code-server --list-extensions
[root@37773d8e61bf ~]# 
[root@37773d8e61bf ~]# code-server --install-extension golang.go

Installing extensions...

Extension 'golang.go' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
Failed Installing Extensions: golang.go
[root@37773d8e61bf ~]# 
[root@37773d8e61bf ~]# 
[root@37773d8e61bf ~]# code-server --install-extension formulahendry.code-runner
Installing extensions...
Extension 'formulahendry.code-runner' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
Failed Installing Extensions: formulahendry.code-runner
[root@37773d8e61bf ~]# 
[root@37773d8e61bf ~]# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.3"

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

Yes, this is also broken in native VS Code

Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

I want to upgrade code server from v4.102.3 to v4.104.0+, but failed to build a docker image which I want to install some extension via command line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-investigationThis issue needs to be further investigatedtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions