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

折月煮酒 提交于 2019-12-22 05:05:29

问题


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.

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.


回答1:


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.




回答2:


I can temporarily open things by dragging a folder to that window it seems, but its' not ideal.




回答3:


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!



来源:https://stackoverflow.com/questions/57361503/intellij-idea-cant-open-projects-or-add-sdk-on-macos-catalina

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!