Using Command-line Launcher as git core.editor with IntelliJ 2020

Answered

Hi,

this question is about functionality common to all IntelliJ IDEs, so I'm posting here although I am actually using WebStorm.

I just upgraded WebStorm to version 2020.1 and I noticed that using webstorm as git editor (for e.g. rebasing) does no longer work as before.

For pre-2020 versions of WebStorm, the following steps allowed me to use webstorm as git editor:

  • Tools -> Create Command-line Launcher (/usr/local/bin/webstorm)
  • $ git config core.editor “webstorm -w” # sets webstorm commandline launcher with "wait" param as git editor

So whenever I performed an interactive git rebase from a terminal within WebStorm, a new tab would open, containing the git rebase stuff which I could edit and when done, close the tab and git would notice that the editor process is terminated and continue rebasing.

Now with WebStorm 2020.1, the git rebase stuff is opened in a new window instead of a tab and closing this window does not "terminate" the process so git waits forever for the process to finish.

What can I do to get the old behavior back?

Thanks.

1
5 comments

@... There is a ticket on YouTrack regarding such behavior:
https://youtrack.jetbrains.com/issue/IDEA-236868

As a workaround, you can disable the Registry key "light.edit.file.open.enabled".

Also, would you mind to share with us why do you prefer to use command-line git over the Rebase dialog? 

1
Avatar
Permanently deleted user

Hi Ruslan,

thanks for your response and sharing the tracking issue.

I will use atom as a workaround. I didn't find any configuration settings on how to edit registry keys (didn't find anything on Google, searching "registry" in WebStorm Preferences only shows up the Docker registry which I don't think is what you are referring to).

Actually I wasn't aware that WebStorm also has an interactive rebase dialog so I will also take a look at that one.

Thanks

0

@...

You can find Registry if you go Help | Find Action | type Registry.

Please, take a look at interactive rebase dialog and feel free to share your thoughts or get back to us with any questions.

 

 

0
Avatar
Permanently deleted user

Thank you Ruslan, changing the registry key brings back the old behavior :-)

I will also tryout the interactive rebase dialog, thanks Dmitriy for the link.

0

Please sign in to leave a comment.