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

Cannot launch intellij on MacOS #1381

Open
hohwille opened this issue Mar 18, 2024 · 5 comments
Open

Cannot launch intellij on MacOS #1381

hohwille opened this issue Mar 18, 2024 · 5 comments
Labels
bug Something isn't working intellij IntelliJ IDE from Jet-Brains macOS specific for Apple MacOS

Comments

@hohwille
Copy link
Member

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)

  1. devon intellij

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Mac
@hohwille hohwille added bug Something isn't working macOS specific for Apple MacOS intellij IntelliJ IDE from Jet-Brains labels Mar 18, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Mar 18, 2024
@CREITZ25
Copy link
Member

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.

@ndemirca
Copy link

The above mentioned workaround of @CREITZ25 requires manuell configuration of SDK for the time being.

@jan-vcapgemini
Copy link
Contributor

jan-vcapgemini commented Apr 26, 2024

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.

@ndemirca ndemirca self-assigned this May 15, 2024
@ndemirca ndemirca moved this from 🆕 New to 📋 Backlog in IDEasy board May 15, 2024
@ndemirca ndemirca moved this from 📋 Backlog to 🏗 In progress in IDEasy board May 15, 2024
@jan-vcapgemini
Copy link
Contributor

jan-vcapgemini commented May 15, 2024

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.

Image

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".

@ndemirca ndemirca moved this from 🏗 In progress to 📋 Backlog in IDEasy board May 21, 2024
@ndemirca ndemirca removed their assignment May 24, 2024
@diiinesh
Copy link
Contributor

diiinesh commented Jul 4, 2024

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.

intellij-error-mac

My Mac is running macOS: 14.2

@diiinesh diiinesh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2024
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in IDEasy board Jul 4, 2024
@diiinesh diiinesh reopened this Jul 4, 2024
@github-project-automation github-project-automation bot moved this from ✅ Done to 📋 Backlog in IDEasy board Jul 4, 2024
@diiinesh diiinesh removed their assignment Aug 7, 2024
@hohwille hohwille moved this from 📋 Backlog to 🆕 New in IDEasy board Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working intellij IntelliJ IDE from Jet-Brains macOS specific for Apple MacOS
Projects
Status: 🆕 New
Development

No branches or pull requests

5 participants