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

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store