Contents of node_modules folder not showing in IntelliJ IDEA 2018.2
I have a node_modules subdirectory "@mobi" that is showing empty in IntelliJ Project Files window i.e. has no expander triangle to the left of it.. in windows explorer there are subdirectories to "node_modules/@mobi" folder.
Please sign in to leave a comment.
Please can you attach screenshots from both IntelliJ Project Files window and Windows explorer?
And in "Webstorm" 2018.2 for the same project:
Can you see the subdirs if you switch the Project tool window mode to Project?
Yep..
So there's a bug with the "Project Files" view, I guess..
well... Normally Project Files scope view wouldn't show your node_modules folders at all, as they are marked excluded, and thus don't belong to Project Files scope. But they are now visible partially due to https://youtrack.jetbrains.com/issue/IDEA-196319
Partially in the sense of folder showing but not contents or folder plus some sub-directories showing and other sub-directories not?
for me, it shows all folders/files. there must be smth special in your setup, but I can hardly help unless you provide a sample project I can use to recreate the issue
I faced the same issue today on IntelliJ (on a node/TypeScript project).
I was fiddling around "Showing excluded files" and other visibility options (cant remember exactly!) and suddenly I can see ONLY FOLDERS in my excluded ones, but NO FILES.
This includes node_modules and my other excluded folders.
I tried other projects, closing/opening IntelliJ again, same result.
This sucks, please fix it!
>I tried other projects
is it the same in other projects? Did you try invalidating caches?
FIRST OF ALL - FIX YOUR https://intellij-support.jetbrains.com/ I JUST LOST 10 MINUTES OF EDIT CAUSE I DARED TO PASTE AN IMAGE.
I TRIED PASTING AGAIN, A SMALLER SIZE OF THE BELOW AND LATEST CHROME KEPT CRASHING. ABSOLUTELY RIDICULOUS **ON YOUR SUPPORT FORUM** TO CRASH THE BROWSER ON PASTING IMAGES!
Now to the matter:
> is it the same in other projects? Did you try invalidating caches?
I tried a lot of things, I finally got a workaround. First I tried UNSUCCESSFULLY:
- different projects
- deleting .idea
- renaming .IntelliJIdea2019.3 to .IntelliJIdea2019.3_OLD and reimporting from it at startup
- a combination of the above
- fiddled with all settings in https://photos.app.goo.gl/PbQPADZiNVqBpdar6 (i.e the image that crashes the browser on this support forum!)
The only thing that worked:
- export settings, ALL except "UI settings" etc.
- rename/delete .IntelliJIdea2019.3 and then start fresh and import the previous one.