cursor cannot recognize the situation where the path contains special characters
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 721
- Forks
- 94
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 5
Description
When special characters are present in the path, attempting to open the file using the 'cursor' method will result in an error.
error
/usr/local/bin/cursor: eval: line 20: syntax error near unexpected token `('
/usr/local/bin/cursor: eval: line 20: `ELECTRON_RUN_AS_NODE=1 "/Applications/Cursor.app/Contents/MacOS/Cursor" "/Applications/Cursor.app/Contents/Resources/app/out/cli.js" -r -g /Users/work/me/hyperse-io/code-inspector/examples/example-rspack/src/(CustomBtn)/CustomBtn.tsx:2:10'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Cursor launcher implementation corresponding to /usr/local/bin/cursor and the 'cursor' method. Reproduce the failure with a path containing parentheses or other special characters, then verify that opening such paths works without a shell syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100