т.е. даже после удаления папки проблема не лечится? Очень странно - у вас нет ни одного контентного рута в проекте, если судить по скриншотам, это может быть только проблемой с пакой `.idea`
пришлите, пожалуйста, эту папку + idea.log (Help > Show Log in ...). Разместите их на каком-нибудь файловом сервере и пришлите ссылку
Похоже это какая-то проблема с github потому что я не могу запушить коммит, просит залогиниться, я логинюсь падает ошибка что репозиторий не найден, хотя он есть и потом опять просит залогиниться
у вас в .idea отсутствуют файлы ` .iml` и `modules.xml`. WebStorm их обязательно создает при создании проекта и никогда не удаляет. По какой-то причине эти файлы у вас удаляются. Может, у вас есть какие-то утилиты, синхронизирующие содержимое диска и удаляющие "лишнее"? Или, может, файлы удаляются при апдейте проекта из репозитория?
The same issue, but i'm using windows 10 and my source code is located under wsl2 folder: \\wsl$\Ubuntu-20.04\...
And yes, the .idea had only
anton@SweetHome:~/wrk/******/.idea$ ll total 20 drwxr-xr-x 2 anton anton 4096 Sep 16 01:26 ./ drwxr-xr-x 6 anton anton 4096 Sep 15 01:17 ../ -rw-r--r-- 1 anton anton 185 Sep 15 10:49 vcs.xml -rw-r--r-- 1 anton anton 4547 Sep 16 01:26 workspace.xml
After removing the .idea folder of a project and restart WS the issue is gone, have no idea what was wrong, will monitor this.
The modules.xml file is missing from the .idea/ directory. If you add this modules.xml file to your .idea directory, replacing project.iml with the name of the .iml file in the .idea directory and then restart PHPStorm you will be good to go.
Jake Spencer and Developer2 Helped me get fixed. I had to restore/create both the modules.xml and the project.iml files as somehow they were both gone.
Then I opened the project, it started indexing from the beginning. Took time, but it worked for me. Remember the commit again when IntelliJ creates .idea files
I know this might not be the place for WebStorm comment, but maybe someone finds it useful. WebStorm → Preferences → Directories → Add the content root. Much easier that deleting the .idea folder that already has all your settings and restarting the whole WebStorm.
I was just having this issue and was able to fix it by going to File --> Repair IDE and going through the first three steps (including restarting the IDE).
After run "git clear", I get the same error. I read all the comment in this artcle. i guess the .idea file is broken, so I close the IDE, and go to the project path, remove the .idea, and open the project again, it's ok.
1. Remove an .idea folder 2. Close PyCharm project and remove your project from Recents 3. Restart PyCharm and then Open your sources (as a new project for PyCharm)
Please share screenshots of Settings | Directories and Settings | Languages & Frameworks | JavaScript | Libraries pages
Your `.idea` files are broken, either the` .iml` file or `modules.xml` are corrupted
Я удалял .idea папку, потом делал invalidate cashes с перезагрузкой ide. Так что думаю дело не в этом
т.е. даже после удаления папки проблема не лечится? Очень странно - у вас нет ни одного контентного рута в проекте, если судить по скриншотам, это может быть только проблемой с пакой `.idea`
пришлите, пожалуйста, эту папку + idea.log (Help > Show Log in ...). Разместите их на каком-нибудь файловом сервере и пришлите ссылку
Да, после удаления ничего не поменялось.
https://disk.yandex.by/d/R4EXsJhe8YBFwg?w=1
Похоже это какая-то проблема с github потому что я не могу запушить коммит, просит залогиниться, я логинюсь падает ошибка что репозиторий не найден, хотя он есть и потом опять просит залогиниться
у вас в .idea отсутствуют файлы ` .iml` и `modules.xml`. WebStorm их обязательно создает при создании проекта и никогда не удаляет. По какой-то причине эти файлы у вас удаляются. Может, у вас есть какие-то утилиты, синхронизирующие содержимое диска и удаляющие "лишнее"? Или, может, файлы удаляются при апдейте проекта из репозитория?
I have the same problem. Can you continue the discussion in English?
I had to delete the project and clone it again from git to fix the problem :(
It's really unfortunate if that's the only solution. We shouldn't have to do that.
Same problem here. Deleting AppData/Local and AppData/Roaming dirs worked for me, beware though, all pycharm settings are going to be wiped.
The same issue, but i'm using windows 10 and my source code is located under wsl2 folder: \\wsl$\Ubuntu-20.04\...
And yes, the .idea had only
After removing the .idea folder of a project and restart WS the issue is gone, have no idea what was wrong, will monitor this.
Hey, just restarting the laptop worked :D
I had the same problem. Deleting .idea folder and open the project again worked for me.
Close the project, Close webstorm. In the file explorer, delete the .idea folder. Open web storm again and open the project folder.
This worked for me.
I resolved this problem. For me it was in folder .idea. I just added to idea folder this file - modules.xml
Developer2's is spot on.
The modules.xml file is missing from the .idea/ directory. If you add this modules.xml file to your .idea directory, replacing project.iml with the name of the .iml file in the .idea directory and then restart PHPStorm you will be good to go.
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/project.iml" filepath="$PROJECT_DIR$/.idea/project.iml" />
</modules>
</component>
</project>
Jake Spencer and Developer2 Helped me get fixed. I had to restore/create both the modules.xml and the project.iml files as somehow they were both gone.
Close the project in RubyMine
`rm -rf ./idea`
`git add --all`
`git commit -m "remove rubymine configs"`
Then I opened the project, it started indexing from the beginning. Took time, but it worked for me. Remember the commit again when IntelliJ creates .idea files
Selcuktoklucu thanks man. Commit was unnecessary for me, but problem was finally resolved.
go to File -> Project structure
then go to Modules
Press at "+", choose template and add your project as module
i hope its help to all of you
This happened to me with a python project.
To fix it:
Thanks Nicholas Straw, you saved my python project!
I know this might not be the place for WebStorm comment, but maybe someone finds it useful. WebStorm → Preferences → Directories → Add the content root. Much easier that deleting the .idea folder that already has all your settings and restarting the whole WebStorm.
I was just having this issue and was able to fix it by going to File --> Repair IDE and going through the first three steps (including restarting the IDE).
Thanks Nicholas Straw, you saved me!!!!!!!!!!!!!!!!!!
Using IntelliJ, Project Settings > Modules > Adding repo path resolved my issues with this (can reaffirm and attest to Pafilippov's answer)
After run "git clear", I get the same error. I read all the comment in this artcle. i guess the .idea file is broken, so I close the IDE, and go to the project path, remove the .idea, and open the project again, it's ok.
Solution for me:
1. Remove an .idea folder
2. Close PyCharm project and remove your project from Recents
3. Restart PyCharm and then Open your sources (as a new project for PyCharm)
Done