问题
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,
- Apple menu > System Preferences, click Security & Privacy, then click Privacy.
- Click the lock , then enter your administrator password.
- From the list of items on the left, select Full Disk Access.
- 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