JS Filename shows Red

After renaming a .js file, now it's showing up red in Webstorm.  I verified that there is no squiggly line under that red filename which would indicate some JS errors so why is it still red?  I renamed the file, does that have anything to do with it?  This file is not used anywhere else, it's just a test file.  Why is it still red!!??

Screen Shot 2015-07-20 at 1.52.06 AM.png

4 comments
Comment actions Permalink

Hi there,

I see no red files here (I mean -- proper red). Unless, of course, you call those pinky-orange color in file names as "red".

If that's so (you talking about file names colors) .. then that's your VCS status (Settings | Editor | Colors & Fonts | File Status). Right now it could be "Unknown" or one of the "Merged with conflicts" statuses.

0
Comment actions Permalink

so is it because I have a .gitignore file?  I don't get it.  I'm not using source control through the webstorm IDE.  This is Node.js.

Does it have anything to do with the Local History option when you right click a file to see its changes?  But that's based on what, I'm not using source control so does Webstorm have its own built-in history mechanism and maybe when I renamed those 2 files that are 'pink' now, it broke the history so not that file is in conflict?  I noticed after I renamd, the history started over from scratch too.

0
Comment actions Permalink

Hmm when I go to Version Control | Git it's set to the path /usr/local/bin/git but I never set this..maybe it is a default by webstorm because that's standard for most people and it's picking up changes.  I commit to git via terminal, I dno't rely on webstorm to commit it.

0
Comment actions Permalink

thanks resolved, it is hooked into my git settings.

I had to do a git add [filename] because when I renamed it, webstorm did not perform that for me

Then I did a git commit --dry-run -a and it showed the new addition of the file and then the file in webstorm went green again, no more pink

0

Please sign in to leave a comment.