IntelliJ IDEA Reopen Project "The path <insert temp path here> does not exist" error - intellij-idea

Here's a fun one. I did search for this issue but didn't seem to find anything that helped, including the following questions which seemed most closely related:
Why am I getting "Local path does not exist" from my Android project in IntelliJ IDEA?
IntelliJ IDEA: Project SDK Settings is not retained after reopenning IDE
Version info:
MacBook Pro mid-2014 (Intel), Big Sur 11.2.1
IntelliJ IDEA 2021.2.2 (Community Edition)
Build #IC-212.5284.40, built on September 13, 2021
Runtime version: 11.0.12+7-b1504.28 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.2.1
Kotlin: 212-1.5.10-release-IJ5284.40
Issue description: On opening an existing project, importing the related module, and selecting the SDK, everything works fine. However, the recent projects list shows what appears to be a random, temporary path to the project IML:
The path you see in the screenshot is not the path that leads to the IML. Not even by a long shot. This is created when opening the project initially but, on exiting IDEA, it seemingly disappears and I have to reimport the project all over again. I am stumped here. I spent a couple of days digging through SO, and the internet in general but can't seem to find anything related to this specific error or anything that has helped at all. Any input would be great. This is on a fresh installation of IDEA, and I have cleared the caches with no observable effect.

Try to close the project and the IDE, open the project root directory in the OS file explorer, delete all.iml files and the .idea directory, and reimport the project from existing sources

You can try "open" button on the IDE welcome page, I made it.

Related

Intellij Idea won't start Windows 10

I downloaded Intellij Idea and was using it just fine for a while. I don't know what happened between the time it was working and when it started to not work. When I would click the shortcut, my mouse would give me the loading wheel and then nothing would happen. In task manager, there is a task called "IntelliJ Idea" running. I uninstalled and reinstalled twice, and then installed it with the JetBrains toolbox, but this is still happening. I saw another thread about this from 4 years ago, but none of the solutions worked for me.
Other thread: Intellij IDEA won't start
I thought I would post this since I recently came across a similar issue with IntelliJ IDE Community Edition but for MacOS and it seems like the same issue could potentially happen on Windows.
I was using the JetBrains Toolbox to manage the installations and updates and after a recent update, when trying to start the app it would simply attempt to start and get killed straight away. After not having much luck with the logs I eventually found the exception that was being thrown when it attempted to start:
java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
So from this I realized that the app was trying to run with an older version of Java and I found how to change it in this post. In my case the 'idea.jdk' file was located in '/Users/user/Library/Application Support/JetBrains/IdeaIC2021.2' and for some reason was not updated after the application update.

Intellij will not start with the error: "Error: Could not find or load main class com.intellij.idea.Main"

I killed an "idea" process in terminal after Intellij had frozen. The idea.sh script was missing after I killed the process (I ran a find command and checked other directories & the trash but no luck). I have since copied my friends "idea.sh" script into its former location. Now when I run ./idea.sh I get:
"Error: Could not find or load main class com.intellij.idea.Main".
I have tried searching for this class as well but got no results. Google has no info and I'm not very informed on Intellij.
Any hints on what I might need to do to avoid reinstalling Intellij?
I had the same issue after updating the android studio. I was not able to launch it from click on Android Studio icon and after running ./studio.sh it was giving me the same error
I do this to solve my issue
I downloaded the studio and install it in the new directory.
After installation success, copy all the files & folders and paste and replace it into the old location where the studio was installed.
And it is working fine.

Intellij IDEA freezing when trying to move files into project

Whenever I try to move a file into a project I have in IDEA it freezes up after displaying the the move file dialog. I've tried searching around but haven't found anything helpful.
I had the same issue while using an EAP release version. The milestone release did not behave like that.
Here is more info on the subject from JetBrains: Please note that EAP builds are not officially supported. Please use released versions from http://www.jetbrains.com/idea/download/index.html if you want stable functioning.
Could be related to https://youtrack.jetbrains.com/issue/IDEA-145305 .
ruku, I'm not sure if the EAP build was your problem, but if you're like me and are using a stable build and cannot upgrade (compatibility issues with others on my project), I recommend the workaround of just creating a new file and pasting the file content in there. It's not very elegant, and requires manual refactoring for any files already referenced within the project, but since you're moving a file into the project you shouldn't have that issue.
Like sday, it happened to me when moving a file within the project. I am not using an EAP Build. I am using 14.1.4, build #IC-141.15.32 build on June 18, 2015. I installed on 2015-09-05 from the main JetBrains page that sday mentioned. I'm using osx 10.11.1.

IntelliJ "Executing pre-compile tasks...:"

I am working on a large project using IntelliJ 14.1 latest.
Recently, whenever I stop editing for a minute or so, IntelliJ freezes for several minutes with the message "Executing pre-compile tasks...:" followed by the message "All files are up-to-date".
Any idea what is causing this behavior and what I can do to prevent it?
I faced this problem and it drove me nuts for about 3 days. The existing answers did not solve it. Neither did deleting preferences, caches, re-installing IntelliJ on my machine helped. I even tried to turn my Mac off and on again
Finally, what worked for me was to delete the .idea folder (which is usually located in the root of project)
Of course I feel stupid. Hope this helps someone else because this is one of the top hits for those keywords.
IntelliJ version : IDEA 2019.2.3 (Community Edition) on macOS 10.14.6
Your problem becasue 2 things:
- In source code have pre-compile script.
- IntelliJ IDEA build project automaticaly when IDE is idle.
Solution:
Choose menu File \ Settings... or press combine keys: Ctrl+Alt+S.
Choose Build, Execution, Deployment \ Compiler , uncheck item Make project autimatically (only work while not running / debugging)
or type in search box at top-left corner, search keyword something like the above.

Intellij IDEA 13 - Can't open Project Structure dialog anymore

as already described in title, i'm not able to open the project structure dialog window in intellij anymore.
neither the shortcut (Ctrl+alt+shift+s) nor the menu element under File -> Project Structure nor the little button in the upper right corner do work.
Clarification: Menu element :
This "bug" occured suddenly as I wrote a web (vaadin/maven) project and tried to set up glassfish, where i often had to switch to the project structure dialog.
Since the first occurence i wasn't able to fix it by restarting intellij or switching projects.
This also happened on my laptop running the same intellij and windows version (Ultimate 13.0.1 Build: 133.331 on Windows 7 x64)
i appreciate any help!
This also happened to me, but removing new plugins etc didn't help.
Nor did nuking my project and rebuilding it from scratch.
In the end I deleted all caches, restarted Intellij and at last I could access the project settings again! By the way, I'm using Intellij 11.1 - mainly because I can't get 13 to start up, but that's another story
Your log shows that it is a bug in IntelliJ IDEA - they are trying to create file passing null pathname. Try to delete project files and reopen project from scratch (maybe you've lost some file) - if it won't help then you should create an issue here: http://youtrack.jetbrains.com/ - You can even copy-paste text from your question and attach stacktrace
I had the same issue...upon further inspection in the log dump...I noticed the following:
ERROR - llij.ide.plugins.PluginManager - com.intellij.openapi.fileChooser.FileChooserDescriptor.setTitle(Ljava/lang/String;)V
java.lang.NoSuchMethodError: com.intellij.openapi.fileChooser.FileChooserDescriptor.setTitle(Ljava/lang/String;)V
at com.jetbrains.python.sdk.PythonSdkType.getHomeChooserDescriptor(PythonSdkType.java:247)
Disabled the latest Python Plugin and restarted and everything is working normal again.
I remembered I had recently update my python plugin and am not using it presently so I was able to disable it without issue.
Hope this helps someone else.
This also happened to me. The comment above helped. I had just added some plugins. Disabled them and it started working again. Not sure exactly which one because I disabled all 4 -- Bean Validation Support, Bitbucket, Jelastic Cloud Platform Integration, and Quick Notes.
For me it has been resolved by switching off FindBugs plugin and restart IDEA. So Project Structure is available for me now.
One of the plugins might be causing it. To disable a plugin, go here:
You'll know for sure if a plugin is bad if you see this Exclamation picture:
Clicking on it will bring up a pop-up. To disable the plugin, click on this:
For me it got resolved just by restarting the intelliJ IDEA. I'm using intelliJ IDEA Ultimate 2018.1 edition.