Phpstorm marked a project folder as excluded and cannot find the way to restore
I all, after an npm install phpstorm reindexed the whole project and just "decided" to mark a folder (more than one actually, but i care about one) as excluded.
Going to settings->directories and trying to restore the folder to its previous state does not work.
Already tried to invalidate cache with no results.
Is there something i can do (other than recreate the project)?
Thanks
P.S.
Phpstorm latest version on windows 10
Please sign in to leave a comment.
Hi there,
Please post some screenshots.
Is that PHP code or JS?
>Going to settings->directories and trying to restore the folder to its previous state does not work.
What exactly does not work? You cannot click some buttons ... or it gets reverted back after some time?
Need more info. Right now it could be anything... (but so far I have not heard any "whole project exclusion" complaints here on forum).
P.S.
>Phpstorm latest version on windows 10
Be specific please. By latest version you mean latest stable (2017.3.x) .. or latest EAP (2018.1 EAP build) ?
It' php code
The cpanel folder is excluded and there's no way to "uncheck" the Excluded tab (it just doesn't work)
PhpStorm 2017.3.4
Build #PS-173.4548.32, built on January 30, 2018
JRE: 1.8.0_152-release-1024-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Do you have package.json / node packages in your project?
That's only thing that comes right now into my mind that has such "cannot un-exclude folder" wording (but then -- it usually about "node_modules" folder).
Double check that direction.
P.S. Anything interesting in idea.log (Help | Show Log in XX)?
>Do you have package.json / node packages in your project?
Yes i have, but that doesn't help me (my fault, i know)
>P.S. Anything interesting in idea.log (Help | Show Log in XX)?
I did not understand, sorry, where do i find this log?
[EDIT]
I found the log, but nothing helpful in it
>I did not understand, sorry, where do i find this log?
"Main menu | Help | Show Log in ..." <-- there
P.S. Other than that: I'm not JS person and do not have "node_modules" or alike in my projects ... so even if I'm correct in my assumption I do not know how to bypass it. But JB support should know -- they will see this post at some point later.
P.P.S. Why not re-create project from scratch: delete .idea folder while IDE is closed (backup first if desired) and then use "Open" and point to the project root folder to create new project from existing files. Then just re-configure it (some stuff can be recovered from backup, like inspection profiles, dictionaries, scopes and some other stuff)