Problem with Atom and Vagrant


#1

I use vagrant for wordpress development, more precisely VVV or Varying Vagrant Vagrants. When I add project in editor, everything, folders and all in sidebar is grayed out


#2

The grayed out stuff are items that match a .gitignore.


#3

aha, ok, when i inspect the tree view in dev tools everyone has a class of .status-ignored?
How to fix this, my global gitignore file is empty…where is all this gitignored :smile:


#4

anyone :slight_smile: …how to solve this problem?


#5

What’s in your local .gitignore?


#6

my local .gitignore? hmm usr/local/.gitgnore, there was /* at the top of the file…i removed that, but nothing changed…


#7

No, I mean the .gitignore file that’s inside the directory you’re opening with Atom


#8

well i use vagrant and all my projects are in vagrant-local folder…there is .gitignore file


#9

What is the path of the directory that appears to be ignored in Atom?


#10

my-user-name/vagrant-local/www is where are all my project files,
usually path is like this my-user-name/vagrant-local/www/project-name/htdocs/wp-content/themes/theme-name,
if that makes sense to you :smiley:


#11

Mmm, more specifically, in your screenshots you have opened two folders: gulp_site and another one I can’t really read (seeba?)… Where is this second folder located on you disk AND relatively to your .gitignore file?


#12

gulp_site is in Sites folder, no problem with that, only with my vagrant folder and wordpress themes development…


this is my vagrant-local folder… .gitignore file is screenshot that i posted above.
I do not have that problem with Sublime Text 3.


#13

If the directory that is ignored is inside that www directory, then it’s normal. You have to remove that rule from the gitignore.


#14

Yes it is, and when i remove that rule all folders and files in sidebar are green, untracked git files or something?


#15

Exactly. Those file were never added to your git repository.
If this is not what you want, you might want to consider to move that directory out of that git repository, so that Atom won’t treat it as such, just like a normal directory.


#16

Well, I can’t move it because of vagrant, www folder must be in the vagrant-local folder.


#17

Mmm then I’m running out of ideas. Maybe you could try by making hard links or something like that…


#18

So, I’ve been following this … but I’m not really sure what the problem is at this point. It sounds ilke:

  1. It was unclear that things were gray because they were ignored
  2. Then it was unclear why they were considered ignored
  3. Now it is clear that they should be considered ignored because of your .gitignore file

So … is there still a problem and how can we help?


#19

Yes, i moved www folder outside of my vagrat folder to my home and created simlink, I think it’s ok now :smile: . Thank you @frabert and @leedohm