getcursor / cursor

The AI Code Editor
https://cursor.com
25.76k stars 1.6k forks source link

"unknown proxy name: 'Cursor'" when using rust #549

Open LeoCatsune opened 1 year ago

LeoCatsune commented 1 year ago

For some reason, ARGV0 gets overwritten when running commands, which affects several commands in the rust toolchain such as cargo and rustup.

The same issue can be observed in similar situations at GitSquared/edex-ui#1124 and onivim/oni2#3830.

truell20 commented 1 year ago

Thanks for flagging this. Where does this happen in the UI? Or are you talking about the integrated terminal.

LeoCatsune commented 1 year ago

This is in the integrated terminal, from memory.

jzanecook commented 1 year ago

I was able to override this for my own session by running unset ARGV0

Wherever it is setting the ARGV0 is where the issue starts.

What is the purpose of this ARGV0 variable being set to the cursor application? Is it for the cursor command to pick up?

cs01 commented 10 months ago

+1 just hit this too. unset ARGV fixed it, but would be great not to have to do that.

Version: 0.25.1
VSCode Version: 1.85.1
Commit: 424d9aa49a015f43a2299e679576231a75a34fd0
Date: 2024-02-03T21:07:19.472Z
Electron: 25.9.7
ElectronBuildId: undefined
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.5.0-15-generic
nathan-gage commented 9 months ago

I still have this error. For now, a band-aid fix is adding the following to your ~/.bashrc / ~/.zshrc / config.fish.

bash/zsh:

[[ "$TERM_PROGRAM" == "vscode" ]] && unset ARGV0

fish

string match -q "$TERM_PROGRAM" "vscode"
and unset ARGV0
definitelynobody commented 8 months ago

This also happens when tasks are launched that run cargo and rust directly. Unsetting this from ~/.zshrc, etc doesn't work for me.

bwks commented 2 months ago

still happening in v0.40.0

tumluliu commented 1 month ago

still happening in v0.42.2

zhoujingya commented 1 month ago

still happening in v0.42.2

eliheuer commented 1 month ago

I had the same issue in v0.42.3, unset ARGV0 fixed it.

I only get this on Ubuntu 24 Linux, when using macOS it is not a problem.

raghav-rama commented 1 month ago

This affects virtual environments in python too. I get module not found error whereas it is clearly installed in the venv image