code-server icon indicating copy to clipboard operation
code-server copied to clipboard

v4.98.0 extension error: "Error while getting the latest version for the extension", "Cannot read properties of undefined (reading 'replace')"

Open OliverwengFiltered opened this issue 9 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

OS/Web Information

after upgrading to latest version 4.98.0, when code server loads, all the extensions I have installed started to show error. (see image below)

Image

Steps to Reproduce

  1. run latest code server v4.98.0
  2. install an extension.
  3. reload, you will see the error printed on the browser console

Expected

there shouldn't be such errors.

Actual

there are below errors printed on the conosle.

installHook.js:1 ERR Error while getting the latest version for the extension ms-dotnettools.vscode-dotnet-runtime. Cannot read properties of undefined (reading 'replace')

installHook.js:1 ERR Error while getting the latest version for the extension ms-python.debugpy. Cannot read properties of undefined (reading 'replace') installHook.js:1 ERR Error while getting the latest version for the extension ms-python.python. Cannot read properties of undefined (reading 'replace')

installHook.js:1 ERR Error while getting the latest version for the extension muhammad-sammy.csharp. Cannot read properties of undefined (reading 'replace') installHook.js:1 ERR Error while getting the latest version for the extension redhat.java. Cannot read properties of undefined (reading 'replace') installHook.js:1 ERR Error while getting the latest version for the extension vmware.vscode-boot-dev-pack. Cannot read properties of undefined (reading 'replace') installHook.js:1 ERR Error while getting the latest version for the extension vmware.vscode-spring-boot. Cannot read properties of undefined (reading 'replace') installHook.js:1 ERR Error while getting the latest version for the extension vscjava.vscode-java-debug. Cannot read properties of undefined (reading 'replace') installHook.js:1 ERR Error while getting the latest version for the extension vscjava.vscode-spring-boot-dashboard. Cannot read properties of undefined (reading 'replace') installHook.js:1 ERR Error while getting the latest version for the extension vscjava.vscode-spring-initializr. Cannot read properties of undefined (reading 'replace')

Logs


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

No response

OliverwengFiltered avatar Mar 14 '25 17:03 OliverwengFiltered

Seems to be an upstream issue: https://github.com/microsoft/vscode/issues/239782

code-asher avatar Mar 26 '25 20:03 code-asher

Seems to have been fixed upstream.

code-asher avatar May 22 '25 19:05 code-asher