Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA can't open projects or add SDK on macOS Catalina

If I open IntelliJ IDEA and try and import any project or open any folder containing a project, nothing happens, I'm just returned to this screen.

enter image description here

Earlier on, before I moved my project files around, I tried to set a new JDK for a project and i clicked add SDK and then selected Java 12 home and again it returned to the screen without adding anything.

Is there some permission I need to grant to IntelliJ Idea?

Seems to have started since installing MacOS Catalina.

like image 230
Wayneio Avatar asked Aug 05 '19 15:08

Wayneio


People also ask

How configure Java SDK IntelliJ Mac?

From the main menu, select File | Project Structure | Project Settings | Modules. Select the module for which you want to set an SDK and click Dependencies. If the necessary SDK is already defined in IntelliJ IDEA, select it from the Module SDK list.

How do I open an IntelliJ project on a Mac?

1) You can use the New Project Wizard to create a new Project inside IntelliJ IDEA. From the Welcome screen you can click New Project, or, if you're already inside a project, you can go to File > New > Project. If you have previously opened a project, the New Project button will be on the top bar.

Is IntelliJ compatible with Mac?

IntelliJ IDEA is a cross-platform IDE that provides consistent experience on the Windows, macOS, and Linux operating systems.

How do I fix my IntelliJ IDEA?

From the main menu, select File | Repair IDE. IntelliJ IDEA will automatically launch the first recovery step and refresh the virtual file system. IntelliJ IDEA will display a notification that you can use to continue or complete the recovery process.


2 Answers

Mac OS, Mojave or Catalina, Exit intellij first,

  1. Apple menu  > System Preferences, click Security & Privacy, then click Privacy.
  2. Click the lock , then enter your administrator password.
  3. From the list of items on the left, select Full Disk Access.
  4. Add Intellij(or other whatever app having this problem) to the apps allowed full-disk access by using the add button.

Lock and try again.

Hope this will help.

Ref from apple support of other things, but I tried, it works!

like image 53
oopsmails Avatar answered Oct 08 '22 18:10

oopsmails


It's a known issue specific to the recent macOS Catalina update. Please follow YouTrack ticket for updates.

You can also help by providing the following information in YouTrack:

Open the file chooser, select a directory (but don't open it yet), take a screenshot, then open a directory; then attach idea.log and the screenshot (a path to a project and a time of the operation are needed, too, but they should be guessable from the screenshot).

As a workaround until this issue is resolved you can add -Dide.mac.file.chooser.native=false in Help | Edit Custom VM Options and restart the IDE.

like image 38
CrazyCoder Avatar answered Oct 08 '22 19:10

CrazyCoder