ide
ide copied to clipboard
Cannot launch intellij on MacOS
Expected behavior
As a mac user, I want to launch IntelliJ using devon CLI so that I can start my work as a developer.
Actual behavior
devon intellij
Success: run command mkdir
Starting installation of intellij in version 2023.3.5 to /Users/hohwille/projects/ideasy/software/intellij
Trying to download intellij-2023.3.5-mac.dmg from https://download.jetbrains.com/idea/ideaIC-2023.3.5.dmg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 100 138 0 0 811 0 --:--:-- --:--:-- --:--:-- 857
100 743M 100 743M 0 0 6909k 0 0:01:50 0:01:50 --:--:-- 8467k
Download of intellij-2023.3.5-mac.dmg from https://download.jetbrains.com/idea/ideaIC-2023.3.5.dmg succeeded.
Checksum f9ac332146ea4eb01b2d3789c042d62a024c6ccedb7e15bf9b09f506ef0663ac is correct
Success: run command hdiutil
Success: run command cp
"disk2" ejected.
Success: run command hdiutil
Successfully extracted archive intellij-2023.3.5-mac.dmg to /Users/hohwille/projects/ideasy/updates/extracted/intellij
Success: run command mv
Successfully installed intellij
Creating symlink as workaround for intellij on MacOS
Success: run command rm
Success: run command mv
Success: run command ln
Success: run command cp
The software intellij has been added. You need to rerun 'devon' command without arguments or restart your terminal to update your PATH so the newly installed software will be found.
{
"name": "IntelliJ IDEA",
"version": "2023.3.5",
"buildNumber": "233.14808.21",
"productCode": "IC",
"dataDirectoryName": "IdeaIC2023.3",
Success: verify installation of intellij (cd)
No plugins to be installed
Success: Configure workspace (java)
Your workspace main has been updated
launching IntelliJ...
MacOs command /Users/hohwille/projects/ideasy/software/intellij/idea
The application /Users/hohwille/projects/ideasy/software/intellij/idea cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10811 "kLSNotAnApplicationErr: Item needs to be an application, but is not" UserInfo={_LSLine=4101, _LSFunction=_LSOpenStuffCallLocal}
Steps to reproduce (bug) / Use Case of feature request (enhancement)
-
devon intellij
Related/Dependent Issues
Comments/Hints:
Affected version:
- OS: Mac
Because of if [ "${INTELLIJ_DISABLE_OPEN_WORKSPACE}" = "true" ] intellij will not start if INTELLIJ_DISABLE_OPEN_WORKSPACE is not set to true in devon.properties.
The above mentioned workaround of @CREITZ25 requires manuell configuration of SDK for the time being.
It looks like intellij can't be run from the symlink pointing to the idea file.
When using open with an absolute path to software/macos/intellij/Intellij IDEA CE.app/Contents/MacOS/idea
it works though.
We could now adjust the script to start intellij with the symlink without using open
f.e. software/intellij/idea "workspaces/main"
, but then we need to adjust our intellij settings to set open projects in new window
by default.
Or we use open -a
or open -na
with the absolute path to the Intellij IDEA CE.app/Contents/MacOS/idea
file like: open -na /Users/username/Documents/Projects/myproject/software/macOS/intellij/Intellij IDEA CE.app/Contents/MacOS/idea "workspaces/main"
.
I am getting the same bug on my mac, the workaround mentioned by @jan-vcapgemini is not working for me either. The error I am getting is that InellijJ IDEA CE is damaged and should be deleted.
My Mac is running macOS: 14.2