cursor icon indicating copy to clipboard operation
cursor copied to clipboard

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

Open LeoCatsune opened this issue 1 year ago • 6 comments

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.

LeoCatsune avatar Apr 24 '23 04:04 LeoCatsune

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

truell20 avatar May 01 '23 00:05 truell20

This is in the integrated terminal, from memory.

LeoCatsune avatar May 05 '23 23:05 LeoCatsune

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?

jzanecook avatar Oct 27 '23 17:10 jzanecook

+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

cs01 avatar Feb 05 '24 06:02 cs01

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

nathan-gage avatar Feb 08 '24 18:02 nathan-gage

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

definitelynobody avatar Apr 04 '24 02:04 definitelynobody