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

Git editor is always set to pycharm, even when running through vscode #18792

Closed
HughMacdonald opened this issue Sep 25, 2023 · 5 comments
Closed
Labels
meta: stale This issue/PR is stale and will be closed soon team: team-experience type: bug Something isn't working

Comments

@HughMacdonald
Copy link

Bug description

In trying to do a "git rebase -i", it said that it was waiting for the editor to close, but never gave me an editor.

Steps to reproduce

While using VSCode in GitPod, run any git command that requires an editor (git rebase -i main), and it will not show anything

Workspace affected

No response

Expected behavior

It should open some kind of editor (vim, nano, in VSCode) to allow you to edit the commit message/rebase/etc

Example repository

No response

Anything else?

I tried setting core.editor to a few different things (nano, "code --wait"), and nothing worked. I did figure out that the VSCode executable was called "gitpod-code", so set it to "gitpod-code --wait", but still no luck.

I eventually realised that $GIT_EDITOR was set to /ide-desktop/pycharm/bin/idea-cli open --wait
Running unset GIT_EDITOR meant that it use the config value properly.

I would suggest, as a fix, ensuring that $GIT_EDITOR is properly set to use the same IDE that the user is using

@HughMacdonald HughMacdonald added the type: bug Something isn't working label Sep 25, 2023
@mustard-mh
Copy link
Contributor

Hey @HughMacdonald 👋 , did you start your workspace with PyCharm?

@HughMacdonald
Copy link
Author

I was actually helping out @mkmacd with his workspace, so he'd be better able to answer that question

@mkmacd
Copy link

mkmacd commented Sep 25, 2023

I think I might have done originally but never used pycharm with it and have since changed my preference to use VS Code (which for some reason it still tries to default opening with pycharm.
Not sure if there's a preference somewhere withing GitPod because the dashboard doesn't fix it.

image

@mustard-mh
Copy link
Contributor

mustard-mh commented Sep 25, 2023

@mkmacd I see, your Editor of workspaces could be affected by Autostart option, you can try to reset it on your preferences page, see images below 👇

And if it's not your case, could you share your workspace ID? (copy your incorrect GIT_EDITOR workspace's URL)

Autostart Reset
image image

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the meta: stale This issue/PR is stale and will be closed soon label May 23, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon team: team-experience type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants