Sub module file status goes "yellow" (ignored)

Answered

I have a PHP project with an extra module in it that is actually a nested library within the main project structure. The overall project and the library have their own git roots. When I try to edit a file in the module the file status turns "yellow" which I believe means to ignore it. And I can't see any of the VCS file changes like you normally would (inserts, deletes, new files, etc). I've done this same setup before in other projects but for some reason I get this 'ignored' file status on this one. Attached are some screenshots of my project setup.

In pic3 below, notice how "composer.json" is yellow? that's because I tried to edit it and instead of going "blue" (since git see's it modified) it goes yellow. And yes, the git root is registered.



0
3 comments

Make sure the VCS roots are mapped correctly for every directory above .git. If you have multiple roots, add all of them.

2
Avatar
Permanently deleted user

There's only 2 roots. The main project and my personal library within the vendor directory.  Both are registered. The odd thing is, when I do attempt to edit one of those files in the library module it will show for a fraction of a section the changed line in the file (ie: the line # is marked with a blue highlight on the left of the window pane) before the whole file is marked 'yellow' and ignored.

0
Avatar
Permanently deleted user

I figured it out. Under Settings -> Version Control -> Ignored Files. The "vendors/" directory was specified. As soon as I removed that the module shows file changes normally.

In my other projects where this worked the "vendors" directly isn't specified there, instead the individual library paths are. So I'm not sure why this project was different. 

In any case... now I know. Thanks.

0

Please sign in to leave a comment.