-
Notifications
You must be signed in to change notification settings - Fork 298
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
IntelliJ: BUGFIX: Fix launcher script execution #10228
IntelliJ: BUGFIX: Fix launcher script execution #10228
Conversation
This rings a bell, but can't remember where/when. |
@korli I'll try that |
@korli I tried this and honestly expected it to work. I can't see any reason why it wouldn't. However, it doesn't actually launch. Not sure what is happening, but with this change what I see happening now is basicallly nothing. It no longer launches a bash process which pegs a core at 100%, it just seems like it immediately terminates instead. I tried the following:
Which doesn't seem to work. So I added the following just above that line for debug purposes which of course had no effect, but I then ran it from the terminal to see if any errors were being generated (or a bad path):
And the output was:
The rest is output from the JVM as the app launches. The background exec method is still working. But for reasons I don't understand, this method is not. Thoughts? |
I've no better idea than your fix ATM. |
@korli Fair enough. I discarded my changes and I'll leave this PR as-is. This same fix is working for PyCharm too, so I'll get a PR opened for that shortly. Thanks! |
Newer version is available according to Repology, 2023.3.6, maybe bump it while you are at it? :) |
@Begasus I'll certainly give it a shot! |
@Begasus Done. Works well so far! |
Observation: When launching IntelliJ, "idea.sh" appears in the DeskBar. The 'bash' process executes and immediately pegs a core at 100%, and remains that way indefinitely. The JVM never executes and therefore, IntelliJ never launches.
Manually executing the launcher script ('idea.sh') from the Terminal succeeds. It appears (as discussed with @augiedoggie) the launcher script doesn't like being executed via a symlink in Tracker/DeskBar.
This PR modifies the execution to launch background which seems to work fine. This same issue also applies to PyCharm (I intend to open a separate PR for that). This is not an ideal solution, but is at least one that seems to work fine. Certainly open to suggestions if anyone has a better idea.