-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix IntelliJ cleanup logic for macOs #301
Fix IntelliJ cleanup logic for macOs #301
Conversation
if (OS.Current == OS.Mac && root.name == "Contents") | ||
root.getParent.delete() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we want to delete whole IntelliJ instance directory, not only Contents/
(which is a subdirectory)
@@ -56,8 +56,9 @@ final class SingleRunFixtureTest extends IdeProbeFixture with WorkspaceFixture w | |||
|
|||
@Test | |||
def removesDirectoriesEvenAfterFailureToRunIntelliJ(): Unit = { | |||
val intellijLauncher = if (OS.Current == OS.Mac) "idea" else "idea.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, what's the type of this idea
file on Mac (type in the sense of e.g. file command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me paste the output of the file
command:
lkontowski@lkontowski-MacBook-Pro /Applications/IntelliJ IDEA CE.app/Contents/MacOS
% file idea
idea: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64
- Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64
- Mach-O 64-bit executable arm64]
idea (for architecture x86_64): Mach-O 64-bit executable x86_64
idea (for architecture arm64): Mach-O 64-bit executable arm64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay... so not a script (idea.sh
), as on Linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is an objective c app that reads some stuff from plist, modifies vmoptions and starts IJ
Related to #238 (but does not close it).
Fixes IntelliJ cleanup logic for macOs and makes
SingleRunFixtureTest
tests succeed on macOs if.dmg
extension is used asprobe.intellij.version.ext
.