[IntelliJ IDEA][Macbook] Fail to open idea ultimate using terminal & how to fix

Ruka
Jun 7, 2022

--

Error log

The application /Applications/IntelliJ IDEA CE.app cannot be opened for an unexpected reason, error=Error Domain=NSCocoaErrorDomain Code=260 "The file “IntelliJ IDEA CE.app” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Applications/IntelliJ%20IDEA%20CE.app, NSFilePath=/Applications/IntelliJ IDEA CE.app, NSUnderlyingError=0x600001df5530 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

This occurs if you install Ultimate manually after install community version. the script try to open the old version.

How to Fix

  1. Modify the script for idea command
sudo nano /usr/local/bin/idea

And modify the run_path from IntelliJ IDEA CE.app to IntelliJ IDEA.app

--

--