Poor extension installation experience
Is there an existing issue for this?
- [x] I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: macOS
- Remote OS: Ubuntu22.04
- Remote Architecture: amd64
code-server --version: code-server 4.95.3 b0c935a6e0742adde9f7a5f6e5816553ee0e7ffb with Code 1.95.3
Steps to Reproduce
- Click Extenstions to search for an extension, using mdAL as an example.
- Click install
Expected
Installing an extension should not wait for a long time before it can be successfully installed
Actual
Being in an installation state for a long time, and the log output is as follows:
[16:57:57] Getting Manifest... joneug.mdal
[16:58:02] Installing extension: joneug.mdal {
isMachineScoped: false,
installPreReleaseVersion: false,
pinned: true,
installOnlyNewlyAddedFromExtensionPack: true,
isApplicationScoped: false,
profileLocation: gr {
scheme: 'file',
authority: '',
path: '/etc/aibox/.local/share/code-server/extensions/extensions.json',
query: '',
fragment: '',
_formatted: 'file:///etc/aibox/.local/share/code-server/extensions/extensions.json',
_fsPath: '/etc/aibox/.local/share/code-server/extensions/extensions.json'
},
productVersion: { version: '1.95.3', date: '2024-11-15T19:35:09.428Z' }
}
[17:01:53] [10.37.4.106][30d40b01][ExtensionHostConnection] <4344> Extension Host Process exited with code: 0, signal: null.
[17:13:52] Could not load vsce-sign module Cannot find package '@vscode/vsce-sign' imported from /etc/aibox/code-server/lib/vscode/out/server-main.js
[17:13:52] Extension signature verification is not done: joneug.mdal
[17:13:52] Extracted extension to file:///etc/aibox/.local/share/code-server/extensions/joneug.mdal-0.4.1-universal: joneug.mdal
[17:13:52] Renamed to /etc/aibox/.local/share/code-server/extensions/joneug.mdal-0.4.1-universal
[17:13:52] Extension installed successfully: joneug.mdal file:///etc/aibox/.local/share/code-server/extensions/extensions.json
What's more, even though the log shows that the installation was successful, the UI interface still displays "installing" for a while, which is not very user-friendly.
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?
- [x] I am using a secure context.
Notes
No response
The issue was resolved by downgrading the version, specifically from 4.95.3 to 4.20.0. But I still want to know what caused the above problem.
Your report says this also happens in VS Code and Codespaces? May need to ask about it in the VS Code repo.
This very much sounds like this problem, @code-asher: https://github.com/coder/code-server/issues/7213#issuecomment-2845760855
From what I'm reading in the recent changes to vscode#main, this problem is about to extend to Linux as well.
Closing for now since we disable signatures now, but let me know if anyone still runs into issues.