Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone have Edamagit working on cursor? #313

Open
imcnanie opened this issue Nov 4, 2024 · 4 comments
Open

Anyone have Edamagit working on cursor? #313

imcnanie opened this issue Nov 4, 2024 · 4 comments

Comments

@imcnanie
Copy link

imcnanie commented Nov 4, 2024

I get "there was a problem with the editor" maybe a simple fix?

[run] git log --format=format:%H origin/main..main -n 51
[run] git log --format=format:%H main..origin/main -n 51
[0] git add -u
[run] git log --format=format:%H origin/main..main -n 51
[run] git log --format=format:%H main..origin/main -n 51
[1] git commit
"code" --wait: line 1: code: command not found
error: There was a problem with the editor '"code" --wait'.
Please supply the message using either -m or -F option.

[run] git log --format=format:%H origin/main..main -n 51
[run] git log --format=format:%H main..origin/main -n 51
[1] git commit
"code" --wait: line 1: code: command not found
error: There was a problem with the editor '"code" --wait'.
Please supply the message using either -m or -F option.

[run] git log --format=format:%H origin/main..main -n 51
[run] git log --format=format:%H main..origin/main -n 51
[run] git log --format=format:%H origin/main..main -n 51
[run] git log --format=format:%H main..origin/main -n 51
[1] git commit
"code" --wait: line 1: code: command not found
error: There was a problem with the editor '"code" --wait'.
Please supply the message using either -m or -F option.

[run] git log --format=format:%H origin/main..main -n 51
[run] git log --format=format:%H main..origin/main -n 51

@dc6c
Copy link

dc6c commented Nov 21, 2024

Can you clarify "working on cursor"? I'll try to reproduce if you give me the exact actions that cause this.

@EdwinMiranda2701
Copy link

Had the same issue. In my case I am using the Cursor AppImage from their website. Nothing is "installed" per say, so nothing is added to the $PATH. The code keyword isn't in my path which is what causes "code" --wait: line 1: code: command not found.

In whatever way you choose, add Cursor to the $PATH. but with the name "code".
In my case I ran ln -s ~/Applications/cursor.AppImage ~/.local/bin/code.

I don't know how vscode extensions work but it might be worth to allow the user to set the path through the settings. Then inside the findCodePath function checking for that value and if not just continue with the code there.

@jasobrown-rs
Copy link

@.EdwinMiranda2701's workaround worked for me

@EdwinMiranda2701
Copy link

As it turns out setting the path is already an option. In the preferences ui just search for code-path. It will be there as Magit: Code-path This issue should probably be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants