Matlab extension for code-server
I can't find the new extension for MATLAB integration for code-server. I tried to use the officiel installation for VS code https://github.com/mathworks/MATLAB-extension-for-vscode but couldn't make it work even if I upgraded my code-server to the latest version (1.102.1)
See logs below:
Installing extensions...
Error: End of central directory record signature not found. Either not a zip file, or file is truncated.
at a6 (file:///home/code-server/lib/vscode/out/server-main.js:48:2239)
at file:///home/code-server/lib/vscode/out/server-main.js:48:3567
at /home/code-server/lib/vscode/node_modules/yauzl/index.js:40:7
at /home/code-server/lib/vscode/node_modules/yauzl/index.js:190:5
at /home/code-server/lib/vscode/node_modules/yauzl/index.js:712:5
at /home/code-server/lib/vscode/node_modules/yauzl/fd-slicer.js:33:7
at FSReqCallback.wrapper [as oncomplete] (node:fs:672:5) {
code: 'Extract',
name: 'Extract'
}
Failed Installing Extensions: file:///home/matlab/vs-code-extensions/chrisatwindsurf.language-matlab-1.3.3.vsix
[root@lxin1496pv appli]# code-server --install-extension /home/matlab/vs-code-extensions/language-matlab-1.3.3.vsix
Installing extensions...
Error: End of central directory record signature not found. Either not a zip file, or file is truncated.
at a6 (file:///home/code-server/lib/vscode/out/server-main.js:48:2239)
at file:///home/code-server/lib/vscode/out/server-main.js:48:3567
at /home/code-server/lib/vscode/node_modules/yauzl/index.js:40:7
at /home/code-server/lib/vscode/node_modules/yauzl/index.js:190:5
at /home/code-server/lib/vscode/node_modules/yauzl/index.js:712:5
at /home/code-server/lib/vscode/node_modules/yauzl/fd-slicer.js:33:7
at FSReqCallback.wrapper [as oncomplete] (node:fs:672:5) {
code: 'Extract',
name: 'Extract'
}
Failed Installing Extensions: file:///home/matlab/vs-code-extensions/language-matlab-1.3.3.vsix
I also tried the extension provided for windsurf IDE, but same error : https://open-vsx.org/extension/chrisatwindsurf/language-matlab Is anyone have tied to install this extension in code-server? Are there any workarounds to get this functionality today?
code-server uses Open VSX for extensions (for legal reasons we cannot use Microsoft's marketplace) so if you are not able to find it via search it probably means the extension author has not submitted it to Open VSX. Looks like they have an open issue for it: https://github.com/mathworks/MATLAB-extension-for-vscode/issues/261
Those errors suggest the zip files is corrupt or invalid, have you tried downloading it again? If you get the error consistently, you could try unzipping it manually just to double-check.