vitejs / vitejs/launch-editor

cursor cannot recognize the situation where the path contains special characters

Open
#107 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.