IntelliJ ignoring a Javascript file as if it weren't in the project
I shut my project down on Friday, everything being normal. This morning I open the project back up, and my single and only JS file isn't being properly highlighted. No JS keywords, no errors, no syntax, nothing. I tried a couple solutions I found on this forum, including checking Highlighting Level, Power Saving Mode, and Invalidating the Cache, but to no avail. Finally, I created a new file 'foo.js', copied all the contents (and immediately got highlighting), then deleted the original and renamed foo to replace it. The highlighting remained... almost.
Now, even though I have JS highlighting, it's acting like the file isn't part of the project. 'todo' isn't being highlighted anymore. 'Find Usages' reports none of the functions being used (even though they are).
Any ideas?
Please sign in to leave a comment.
Nevermind. I just deleted the entire .idea folder and started again. Now everything is normal.