getcursor / cursor

The AI Code Editor
https://cursor.com
25.04k stars 1.56k forks source link

Resolve Compatibility with Remote Tunnels & Dev Containers #1191

Open ItamarChinn opened 9 months ago

ItamarChinn commented 9 months ago

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 commented 7 months ago

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: https://github.com/microsoft/vscode-azure-account/issues/897#issuecomment-1981727943

TomMoeras commented 6 months ago

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 commented 6 months ago

Agree. Must have for me

toonverbeek commented 6 months ago

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

arvid220u commented 5 months ago

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

TomMoeras commented 5 months ago

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 commented 5 months ago

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

damianhodgkiss commented 4 months ago

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 commented 4 months ago

how to serve a tunnel?

user in cursor ❯ cursor tunnel

spawn c:\Users\user\AppData\Local\Programs\cursor\bin\cursor-tunnel.exe ENOENT
CesarERamosMedina commented 3 months ago

@arvid220u Any update on this? https://github.com/microsoft/vscode-azure-account/issues/897

Ed-Ackerman commented 3 months ago

Does cursor support code-tunnelling like VS code

albert-ying commented 3 months ago

Is there any update on this?

ssijak commented 3 months ago

Any plans for this, cant login to azure

nrw303 commented 2 months ago

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

Alavi1412 commented 2 months ago

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 commented 2 months ago

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

mauricekleine commented 2 months ago

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

wtzr commented 2 months ago

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 commented 2 months ago

Fix azure please

denera commented 1 month ago

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 commented 1 month ago

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

jannikwienecke commented 1 month ago

yes please fix the issue

justinkay commented 1 month ago

+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 commented 1 month ago

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

cezarc1 commented 1 month ago

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

wendlerc commented 1 month ago

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

plugin to

image

justinkay commented 1 month ago

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 commented 4 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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
  4. 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
  5. Start remote tunnel with code tunnel and follow instructions
  6. 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 commented 2 weeks ago

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

TomMoeras commented 2 weeks ago

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: https://github.com/microsoft/vscode-azure-account/issues/897#issuecomment-2424082420.

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 commented 1 week ago

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

svenbledt commented 1 week ago

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

AaronJessen commented 1 week ago

@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 commented 1 week ago

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 commented 5 days ago

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.