cursor icon indicating copy to clipboard operation
cursor copied to clipboard

CODE and CURSOR command creation overriding VSC

Open emilrueh opened this issue 2 years ago • 6 comments

Your suggested feature of creating either the code command OR the cursor command will entirely override the VSC command code from the path DESPITE only having selected the cursor command!

Furthermore your uninstalling option of the command DID NOT UNINSTALL the cursor command even after restarting the system.

I'm on Windows 11 but the same happened on 10 a few weeks back.

emilrueh avatar Feb 02 '24 15:02 emilrueh

Same problem: $ code .bashrc Unable to determine app path from symlink : /c/Users/me/AppData/Local/Programs/cursor/resources/app/bin/code

Elyx0 avatar Feb 03 '24 18:02 Elyx0

This is because Cursor is just naively adding the /bin dir to the System PATH:

C:\Users\lesmo\AppData\Local\Programs\cursor\resources\app\bin

This folder contains cursor and code binaries, which are overriding VS Code. This is wrong, Cursor should be adding itself to the User PATH, not System PATH (Cursor devs please take note).

To fix this, the VS Code path must be set before Cursor. I recommend removing Cursor from the System PATH, and adding it at the end of the User PATH. If you want to replace Code with Cursor, just remove Code from the PATH.

image

lesmo avatar Feb 18 '24 06:02 lesmo

Same problem: $ code .bashrc Unable to determine app path from symlink : /c/Users/me/AppData/Local/Programs/cursor/resources/app/bin/code

This is a different problem and probably should have its own issue.

Cursor is shipping with the same CLI script it uses for *NIX, which is not prepared to work with WSL. I couldn't find a workaround, so right now you'll need to go through Cursor, switch to WSL and then open your folder.

lesmo avatar Feb 18 '24 07:02 lesmo

I couldn't find a workaround, so right now you'll need to go through Cursor, switch to WSL and then open your folder.

I managed to figure out a functional workaround. You can find it here.

lesmo avatar Feb 19 '24 07:02 lesmo

I'm surprised the issue hasn't been resolved yet.

honeymaro avatar Sep 10 '24 07:09 honeymaro

This is extremely frustrating and pretty unacceptable, installing Cursor just to try it out completely breaks VS Code opening from WSL requiring completing uninstalling and reinstalling VS Code.

Overriding another app's functionality is completely unacceptable.

It is unfortunate because this completely prevents using this on anything but personal projects and makes it impossible to recommend to any serious company.

jbellmore avatar Sep 14 '24 12:09 jbellmore

This is because Cursor is just naively adding the /bin dir to the System PATH:

C:\Users\lesmo\AppData\Local\Programs\cursor\resources\app\bin

This folder contains cursor and code binaries, which are overriding VS Code. This is wrong, Cursor should be adding itself to the User PATH, not System PATH (Cursor devs please take note).

To fix this, the VS Code path must be set before Cursor. I recommend removing Cursor from the System PATH, and adding it at the end of the User PATH. If you want to replace Code with Cursor, just remove Code from the PATH.

image

Thank you so much man! That worked 100%

fabricioCraft avatar Sep 18 '24 22:09 fabricioCraft

I just removed the code and code.cmd files from the bin folder /mnt/c/Users/Michael/AppData/Local/Programs/cursor/resources/app/bin/code the command code is pointing to VSCode again.

MichaelJGW avatar Sep 25 '24 13:09 MichaelJGW

I just uninstalled Cursor because of this lol. You can do pretty much anything but fuck up my command line and you're done. As for the linked issue: Calling this "some edge cases" is wild.

gnaaromat avatar Feb 28 '25 06:02 gnaaromat

Same issue here. Had to remove files from the bin folder. This should not be happening. Installing cursor should by no means be messing up with the command line and altering commands without explicit user confirmation.

developedbygeo avatar Mar 03 '25 18:03 developedbygeo

I just removed the code and code.cmd files from the bin folder /mnt/c/Users/Michael/AppData/Local/Programs/cursor/resources/app/bin/code the command code is pointing to VSCode again.

I did this a few days ago, and life was good, but today all of the sudden they decided to create themselves again. I am going to try the solution @lesmo provided above (so thank you 🙏), but I should not have to edit the PATH to get functionality out of both Vsc and cursor from the command line. A bit ridiculous that this has been an open issue for over a year at this point.

SheedGuy avatar Mar 06 '25 02:03 SheedGuy

Same problem here. Fix it, guys.😊

juhguu avatar Apr 04 '25 11:04 juhguu

Your product is for developers and messing up with their setup is unacceptable. Had to uninstall as well

Arillaxe avatar Apr 14 '25 12:04 Arillaxe

Is this still a thing? Infuriating.

carlosreyesweb avatar Jun 05 '25 17:06 carlosreyesweb

Simple rule - no software should remove or incapacitate any other software for any reason with users explicit permission. This is why Cursor is banned at several of my high profile customers. Too many support calls.

cicorias avatar Jun 08 '25 13:06 cicorias