PhpStorm 2022.2.2 cannot re-open existing project-dir
已回答
I have a strange problem running PhpStorm 2022.2.2 on Linux I cannot re-open existing project-dir. I already tried deleting the .idea-folder in the project dir, but even trying to create a new project from existing files doesn't open a new project-window! I already have two open projects but there's no additional window appearing and no message telling what's wrong as well.
Is there some cache/state file in ~/.PhpStorm2019.3/config/ which may be broken? I don't want to delete all my settings to start from scratch :-(
请先登录再写评论。
Additional note:
I also tried deleting this cache-files (having phpstorm exit before). After starting phpstorm the problem isn't resolved at all.
rm -rf ~/.cache/JetBrains/*
Trying to reopen the project-dir which doesn't open, a new .idea folder is created but there is no project-windor appearing by phpstorm.
I checked the idea.log after trying to open the project multiple times now and got this:
2022-09-20 12:27:28,230 [ 302673] WARN - Bash Cmd - get data from [/var/www/my-project-dir/bash_cmd_plugin/personal/bash_cmd_toolbar.json] is error: java.io.FileNotFoundException: /var/www/my-project-dir/bash_cmd_plugin/personal/bash_cmd_toolbar.json (Datei oder Verzeichnis nicht gefunden)
What's wrong?!
I also tried uninstalling bash-cmd plugin. Also not working after that.
But fun-fact... opening the project parent-dir (which in that case is the customer-root for my customer's projects) works!
Opening the project-dir underneath doesn't work and phpstorm simply doesn't react or show a new project after asking me to open it in current window or a new one dialog.
Hello,
Please try to delete "window.state.xml" file from "<configuration>_dir\options": https://intellij-support.jetbrains.com/hc/en-us/articles/206544519
If the issue is still there after that, then please try remove the workspace.xml from the project folder.
@... thanks for the hint. Tried that, but it did not work. I have this issue now over multiple phpstorm versions actually running PhpStorm IDE 2024.2 (PS-242.2024.361) and still this problem happens without any notice by the IDE.
I actually have 5 projects open due to multiple customers/projects I work/support on switching my tasks. I wanted to open another one for a small bugfix, but PhpStorm silently decides to ignore my demand. It makes no difference if I delete .idea/ folder in the existing project. There's also no difference trying to open the project-folder vs. choosing it from recent projects.
Sometimes it seems to work closing another open project to make PhpStorm open the other one. Sometimes it doesn't. If there is any limit in open project/windows or a memory-ressource problem, PhpStorm should notice the user about the reason for not opening the project.
I tried increasing memory (max. head size) to 8192 MB. It makes no difference after restarting PhpStorm it still refuses to open more than 5 projects. Some of us have multiple customers and have to switch work often even for small tasks to open one more project. If there is a reason for PhpStorm IDE to refuse opening another project the IDE should at least give a notice about that and why.
Just to give a small update. I tried to increase memory/heap to 16384 MB. Its now 2x more than before and no difference. PhpStorm asks to open in current or new window for the new project and still silently refuses to open it.
Choosing “this window” instead of new window worked (at least this time). But it's annoying if there is no notification or reason.
Hi GKN
Memory shouldn't be the issue here. It sounds like a portion of project configs or IDE settings got corrupted somehow.
A few things to try:
If it doesn't help, please go to Help | Show Log in… and upload the idea.log file to our server (privately) at https://uploads.jetbrains.com. I will search for exceptions and check your system environment settings.
Make sure to provide the id of the upload so that I can find it.