I’ve been trying to install Python from Anysphere on my remote host to enable “Go to definition” and other options.
Problem is that the remote host I am using is a dark site which only allows SSH and has not internet connection, thus I am unable to install it using option “Install in remote” from extensions menu. To tackle this problem with other extensions, I simply went to open-vsx link from settings of extension, downloaded the vsix file and scp’d it to host and installed with command line as
But the problem with this one is when I copy link from this extension It gives this link - Cursor which is non-existent and redirects to cursor landing page.
I tried finding this in open-vsx and downloading and installing from there https://open-vsx.org/extension/anysphere/pyright but this one just doesnt seem to work. It installs a different extension that has a different icon than the Python one.
Can I bundle the vsix from this locally installed extension and use that on remote host? Any kind of help will be deeply appreciated, I tried other extensions like Pylance but that doesnt work either.
Steps to Reproduce
Thoroughly descirbe in descirpion
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
.cursor-server/bin/32cfbe848b35d9eb320980195985450f244b3030/bin/remote-cli/code
--install-extension cursorpyright.vsix
Installing extensions on SSH: 10.x.x.x...
Error: extension/package.json not found inside zip.
at ZipFile.<anonymous> (file:///home/abc/.cursor-server/bin/32cfbe848b35d9eb320980195985450f244b3030/out/server-main.js:48:5196)
at Object.onceWrapper (node:events:632:28)
at ZipFile.emit (node:events:518:28)
at FdSlicer.<anonymous> (/home/abc/.cursor-server/bin/32cfbe848b35d9eb320980195985450f244b3030/node_modules/yauzl/index.js:205:10)
at Object.onceWrapper (node:events:632:28)
at FdSlicer.emit (node:events:518:28)
at onCloseDone (/home/abc/.cursor-server/bin/32cfbe848b35d9eb320980195985450f244b3030/node_modules/yauzl/fd-slicer.js:75:12)
at /home/abc/.cursor-server/bin/32cfbe848b35d9eb320980195985450f244b3030/node_modules/graceful-fs/graceful-fs.js:61:14
at FSReqCallback.oncomplete (node:fs:189:23)
Failed Installing Extensions: vscode-remote://ssh-remote%2B10.x.x.x/home/abc/cursorpyright.vsix
I also tried zipping it from directly inside the directory to check if error goes away if package.json is on top level directory but that doesnt help either.
I tried to unzip other extensions and I think they have a directory structure where there is a directrory called “extension” and a file called “extension.vsixmanifest” that defines installation so I think simply zipping the directory and installing wont help, we gotta build the vsix file the right way.
Simpler solution at your end would be to get the vsix file download link from your servers.