Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Compatibility with Remote Tunnels & Dev Containers #1191

Open
ItamarChinn opened this issue Jan 22, 2024 · 43 comments
Open

Resolve Compatibility with Remote Tunnels & Dev Containers #1191

ItamarChinn opened this issue Jan 22, 2024 · 43 comments
Labels
bug Something isn't working dev needed This bug requires a Cursor developer to assist enhancement New feature or request

Comments

@ItamarChinn
Copy link

It would be great if you could add support for Remote Tunnels that was recently added to VS Code. This is a great feature for remote development.

https://code.visualstudio.com/docs/remote/tunnels

@TomMoeras
Copy link

Yes, I second this. Also, it seems that currently Cursor turns off / doesn't have the builtin Microsoft extension leading to some confusion related to this, see also: microsoft/vscode-azure-account#897 (comment)

@TomMoeras
Copy link

An update on this would be really helpful. The ability to connect to tunnels and use the Microsoft account plays a significant role in the workflow for many of us.

@xinyu-dev
Copy link

Agree. Must have for me

@toonverbeek
Copy link

Commenting for visibility! Same requirement to connect to be able to connect to a Microsoft Azure account .

@arvid220u
Copy link
Member

@TomMoeras
Copy link

Thanks for the update! It seems that I'm still unable to use my Microsoft account to connect to a remote tunnel. Also, the Microsoft extension is not enabled/installed as far as I can tell. Curious to see if others have the same problem.

Should a new issue be opened for this @arvid220u? Thanks in advance!

@arvid220u
Copy link
Member

Hmm, my apologies, let me reopen! @Sanger2000 for debugging

@arvid220u arvid220u reopened this Jun 12, 2024
@damianhodgkiss
Copy link

This is shipped in 0.35.0! https://changelog.cursor.sh/#035---default-on-cursor-prediction-remote-tunnels--more-robust-ssh

do these work on all OS's or lacking like remote SSH?

0.35.1 on MacOS:

code tunnel
spawn /Applications/Cursor.app/Contents/Resources/app/bin/cursor-tunnel ENOENT

cursor tunnel
spawn /Applications/Cursor.app/Contents/Resources/app/bin/cursor-tunnel ENOENT

@felipejfc
Copy link

felipejfc commented Jun 27, 2024

how to serve a tunnel?

user in cursor ❯ cursor tunnel

spawn c:\Users\user\AppData\Local\Programs\cursor\bin\cursor-tunnel.exe ENOENT

@CesarERamosMedina
Copy link

@arvid220u Any update on this? microsoft/vscode-azure-account#897

@Ed-Ackerman
Copy link

Does cursor support code-tunnelling like VS code

@albert-ying
Copy link

Is there any update on this?

@ssijak
Copy link

ssijak commented Aug 7, 2024

Any plans for this, cant login to azure

@nrw303
Copy link

nrw303 commented Aug 20, 2024

well this is disappointing. guess its still a problem and we cannot use the Azure tools in cursor... boo!

@Alavi1412
Copy link

I am getting this error when I want to connect to a remote Tunnel:

commit:a4f99b7dfb14460cb0bcebd9f6ac7ca158217920/server-win32-x64/stable: 404 Not Found
2024-08-26 12:36:43.468 [info] Resolving tunnel+name
2024-08-26 12:36:43.476 [info] Creating new tunnel proxy server
2024-08-26 12:36:44.808 [info] [proxy] Found tunnel (ID=silent-dog-50h4kbb, Cluster=uks1)
2024-08-26 12:36:44.809 [info] Remote resolution completed
2024-08-26 12:36:47.452 [warning] [server] Error installing server: error requesting https://update.code.visualstudio.com/commit:a4f99b7dfb14460cb0bcebd9f6ac7ca158217920/server-win32-x64/stable: 404 Not Found
2024-08-26 12:36:47.453 [error] [proxy] [connection.0] error setting up websocket: Error: StatusError(StatusError { url: "https://update.code.visualstudio.com/commit:a4f99b7dfb14460cb0bcebd9f6ac7ca158217920/server-win32-x64/stable", status_code: 404, body: "Not Found" })
2024-08-26 12:36:48.240 [info] Resolving tunnel+name
2024-08-26 12:36:48.265 [info] Resolving tunnel+name
2024-08-26 12:36:49.115 [info] Found tunnel (ID=silent-dog-50h4kbb, Cluster=uks1)
2024-08-26 12:36:49.132 [info] Found tunnel (ID=silent-dog-50h4kbb, Cluster=uks1)

VS Code is working perfectly fine with that tunnel.

@yuchenlichuck
Copy link

hi, there me too, i can't acess tunnel and ssh

@mauricekleine
Copy link

I would love to see this fixed as well, specifically so I can use Azure extensions in Cursor.

@wtzr
Copy link

wtzr commented Sep 6, 2024

Cursor is awesome. This is just the last detail for me to make it 10/10. Currently I switch to vscode purely for azure tools and deploying.

@lokki007
Copy link

lokki007 commented Sep 9, 2024

Fix azure please

@denera
Copy link

denera commented Sep 13, 2024

It looks like Cursor connects to the tunnel just fine, but then attempts to install the VSCode server from an invalid URL: https://update.code.visualstudio.com/commit:63dae81aea2c3fc079420fe72578a8eef26ba870/server-linux-x64/stable

The same issue has been reported for Dev Containers as well: #1882

@krishparikh23
Copy link

Second this ^^ Would love to use tunnels with Cursor, but I'm running into the same error :/

@jannikwienecke
Copy link

yes please fix the issue

@justinkay
Copy link

+1 running into the same error -- would be great to have this feature!

Error installing server: error requesting https://update.code.visualstudio.com/commit:63dae81aea2c3fc079420fe72578a8eef26ba870/server-linux-x64/stable: 404 Not Found

@danperks
Copy link
Collaborator

danperks commented Sep 18, 2024

Same issue with Remote Tunnels, really essential feature for my usage

@danperks danperks added bug Something isn't working enhancement New feature or request labels Sep 18, 2024
@danperks danperks added the dev needed This bug requires a Cursor developer to assist label Sep 18, 2024
@danperks danperks changed the title Add VS Code Remote Tunnels to Cursor Resolve Compatibility with Remote Tunnels Extension Sep 18, 2024
@danperks danperks changed the title Resolve Compatibility with Remote Tunnels Extension Resolve Compatibility with Remote Tunnels & Dev Containers Sep 19, 2024
@cezarc1
Copy link

cezarc1 commented Oct 3, 2024

Would be nice to get an update on this. For clarity I am an "business" class seat customer.

@danperks danperks pinned this issue Oct 3, 2024
@wendlerc
Copy link

wendlerc commented Oct 7, 2024

I had the same issue and now solved it by switching from
image

plugin to

image

@justinkay
Copy link

I had the same issue and now solved it by switching from image

plugin to

image

This unfortunately doesn't resolve the Remote - Tunnels issue for me

@cnut1648
Copy link

Hopefully we can have remote tunnel support added soon... I understand the reason why cursor team wants to build their own fork of VS code, but please also support all functionalities of VS code. This feature could be important to a lot of devs

@LakshyAAAgrawal
Copy link

LakshyAAAgrawal commented Oct 14, 2024

Just to add in another data point in hope this is useful to devs:

I see the following error when I launch code tunnel on server and try to connect using cursor on my client device:

[2024-10-14 16:04:45] error [rpc.3] Error installing server: error requesting https://update.code.visualstudio.com/commit:c499aee5f16e67815c7dc795ff338dc8ab3e07f0/server-linux-x64/stable: 404 Not Found

code version on server:

$ code --version
1.94.1
e10f2369d0d9614a452462f2e01cdc4aa9486296
x64

cursor version on client:

$ cursor --version
0.42.2
c499aee5f16e67815c7dc795ff338dc8ab3e07f0
arm64

I will be glad to help with any other info that may help debugging.

@leo-du
Copy link

leo-du commented Oct 15, 2024

I'm seeing the same error reported in previous threads. This particular lack of functionality is becoming increasingly problematic that I had to abandon cursor altogether now. It'd be great to get a fix.

@stevenbei
Copy link

Same issues here. From Cursor trying to connect to the same server I get the following:

[2024-10-17 20:30:33] info [rpc.4] Checking /home/jupyter/.vscode/cli/servers/Stable-949de58bd3d85d530972cac2dffc4feb9eee1e40/log.txt and /home/jupyter/.vscode/cli/servers/Stable-949de58bd3d85d530972cac2dffc4feb9eee1e40/pid.txt for a running server...
[2024-10-17 20:30:33] error [rpc.4] Error installing server: error requesting https://update.code.visualstudio.com/commit:949de58bd3d85d530972cac2dffc4feb9eee1e40/server-linux-x64/stable: 404 Not Found

But from VSCode, I'm getting the following message / commit ID

[2024-10-17 20:34:07] info [rpc.5] Checking /home/jupyter/.vscode/cli/servers/Stable-384ff7382de624fb94dbaf6da11977bba1ecd427/log.txt and /home/jupyter/.vscode/cli/servers/Stable-384ff7382de624fb94dbaf6da11977bba1ecd427/pid.txt for a running server...

Looks like Cursor's trying to update CLI to a non-existent version on the server

@AITechTim
Copy link

For anyone willing to do some manual setup, I got it working with these steps (Remote Tunnels v.1.5.2, Cursor v.0.42.2 commit c499aee5f16e67815c7dc795ff338dc8ab3e07f0, VSCode v1.91.1 (commit f1e16e1e6214d7c44d078b1f0607b2388f29d729)):

  1. On your local cursor menu go to Help -> About and copy Version, VSCode Version and Commit
  2. Have code tunnel available at the remote machine (Using the 'code' CLI. code --version should be the same or similar version to the one noted in step 1.
  3. Download the correct cursor release via this URL
https://cursor.blob.core.windows.net/remote-releases/${version}-${commit}/vscode-reh-${os}-${arch}.tar.gz

In my setup this became

wget https://cursor.blob.core.windows.net/remote-releases/0.42.2-c499aee5f16e67815c7dc795ff338dc8ab3e07f0/vscode-reh-linux-x64.tar.gz
  1. Run the following commands
export CURSOR_COMMIT=c499aee5f16e67815c7dc795ff338dc8ab3e07f0
mkdir -p ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/
tar -xzvf vscode-reh-linux-x64.tar.gz --strip-components=1 -C ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/
cp ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/bin/cursor-server ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/bin/code-server
  1. Start remote tunnel with code tunnel and follow instructions
  2. You should now be able to connect to the tunnel from your local cursor instance.
    If you get any messages like "Error installing Server" or "No such file",
    it might be a good idea to start the remote tunnel with code tunnel --log debug to see which files it's trying to open, because it seems the server path changes regulary.

@cnut1648
Copy link

Thanks! @AITechTim, can confirm that this works on different cursor version (my version is 0.42.3 and commit 949de58bd3d85d530972cac2dffc4feb9eee1e40)

@TomMoeras
Copy link

For anyone willing to do some manual setup, I got it working with these steps (Remote Tunnels v.1.5.2, Cursor v.0.42.2 commit c499aee5f16e67815c7dc795ff338dc8ab3e07f0, VSCode v1.91.1 (commit f1e16e1e6214d7c44d078b1f0607b2388f29d729)):

  1. On your local cursor menu go to Help -> About and copy Version, VSCode Version and Commit
  2. Have code tunnel available at the remote machine (Using the 'code' CLI. code --version should be the same or similar version to the one noted in step 1.
  3. Download the correct cursor release via this URL
https://cursor.blob.core.windows.net/remote-releases/${version}-${commit}/vscode-reh-${os}-${arch}.tar.gz

In my setup this became

wget https://cursor.blob.core.windows.net/remote-releases/0.42.2-c499aee5f16e67815c7dc795ff338dc8ab3e07f0/vscode-reh-linux-x64.tar.gz
  1. Run the following commands
export CURSOR_COMMIT=c499aee5f16e67815c7dc795ff338dc8ab3e07f0
mkdir -p ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/
tar -xzvf vscode-reh-linux-x64.tar.gz --strip-components=1 -C ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/
cp ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/bin/cursor-server ~/.vscode/cli/servers/Stable-$CURSOR_COMMIT/server/bin/code-server
  1. Start remote tunnel with code tunnel and follow instructions
  2. You should now be able to connect to the tunnel from your local cursor instance.
    If you get any messages like "Error installing Server" or "No such file",
    it might be a good idea to start the remote tunnel with code tunnel --log debug to see which files it's trying to open, because it seems the server path changes regulary.

This seems to be the right solution! In case anyone wants to combine this with logging in to their Microsoft account, this can be done by following the steps here: microsoft/vscode-azure-account#897 (comment).

Found the fix elsewhere. https://forum.cursor.com/t/azure-extension-doesent-work/3949/15

Fix Azure extensions on Cursor Cursor does not come with Microsoft authentication, a builtin extension for vscode

To get this extension, grab it from VSCode \AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\microsoft-authentication Copy to \AppData\Local\Programs\cursor\resources\app\extensions

For MacOS

/Applications/Visual Studio Code. app/Contents/Resources/app/extensions/microsoft-authentication and /Applications/Cursor.app/Contents/Resources/app/extensions

Reload Cursor windows after.

@eatcosmos
Copy link

https://api2.cursor.sh/updates/download-latest?os=cli-alpine-x64

@svenbledt
Copy link

Issue seems still not be fixxed. What do i pay for if i cant use the sub properly :(

@AaronJessen
Copy link

AaronJessen commented Oct 31, 2024

@svenbledt I'm asking myself the same thing...between this issue, and Azure extensions timing out before authenticating, and previous Composer sessions constantly being erased, I'm about to completely bail on Cursor. It's a real shame.

@coding-famer
Copy link

FYI, I'm not sure about Azure, but for github, you should install cursor cli from https://api2.cursor.sh/updates/download-latest?os=cli-alpine-x64, and run ./cursor tunnel to start a new vscode/cursor tunnel server like what you do in vscode.

@stevenbei
Copy link

FYI, I'm not sure about Azure, but for github, you should install cursor cli from https://api2.cursor.sh/updates/download-latest?os=cli-alpine-x64, and run ./cursor tunnel to start a new vscode/cursor tunnel server like what you do in vscode.

Worked for me on Google Vertex.

@dignityc
Copy link

FYI, I'm not sure about Azure, but for github, you should install cursor cli from https://api2.cursor.sh/updates/download-latest?os=cli-alpine-x64, and run ./cursor tunnel to start a new vscode/cursor tunnel server like what you do in vscode.

It perfectly works for me.

@jplineb
Copy link

jplineb commented Dec 18, 2024

FYI, I'm not sure about Azure, but for github, you should install cursor cli from https://api2.cursor.sh/updates/download-latest?os=cli-alpine-x64, and run ./cursor tunnel to start a new vscode/cursor tunnel server like what you do in vscode.

Works for me on a slurm job 👍

@pointnotfoe
Copy link

I had the same issue and now solved it by switching from image

plugin to

image

worked for me on windows, connecting to a linux ws

@wtzr
Copy link

wtzr commented Dec 23, 2024

FYI, I'm not sure about Azure, but for github, you should install cursor cli from https://api2.cursor.sh/updates/download-latest?os=cli-alpine-x64, and run ./cursor tunnel to start a new vscode/cursor tunnel server like what you do in vscode.

Would somebody be so kind to post a step by step on how to achieve this. Im unable to get this working, but I also do not understand how to apply the above fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev needed This bug requires a Cursor developer to assist enhancement New feature or request
Projects
None yet
Development

No branches or pull requests