subesokun / atom-tree-view-git-status

Shows the Git repository status in the Atom tree-view
MIT License
24 stars 2 forks source link

Nothing is appearing? #43

Closed mikeerickson closed 7 years ago

mikeerickson commented 7 years ago

I have the plugin installed and configured, but nothing is displaying?

image

image

mikeerickson commented 7 years ago

I have this same plugin installed on work machine and all is groovy there? Am I missing something here?

mikeerickson commented 7 years ago

Here is another project (so it is not associated to the above project specifically)

image

mikeerickson commented 7 years ago

Theme: Seti Classic (this is the same theme I use at work and no issues)

image

userlerueda commented 7 years ago

@mikeerickson I had the same problem, but mine was that the top level project directory I added was not the top level directory for the git repository, I found out they both had to match for anything to be highlighted, is this your case?

mikeerickson commented 7 years ago

@userlerueda So far as I can tell, they are both at the "top level" (which is my project root).

mikeerickson commented 7 years ago

@userlerueda Here is what is bizarre

  1. project is tree does not have current branch
  2. using the git-status package, it correctly shows branch (see bottom right)

image

subesokun commented 7 years ago

Sorry for the late answer! I'll try to analyze this issue by this weekend.

subesokun commented 7 years ago

Hi @mikeerickson, I've installed now Seti-Classic theme + syntax as well and the git status gets correctly displayed in my case. Hence the theme itself seems to be compatible with the tree-view-git-status package.

@userlerueda Regarding the top level directory issue, this has been already solved in some previous release so you can add the top level directory or any other sub directory of the project and the git status should be still displayed :)

The reason why the git-status package is able to show the git status is most likely because it doesn't rely on Atom's API to retrieve the git status information, instead it uses the git client of the host system directly to retrieve these information.

So it sound to me that for some reason Atom is not able to recognize your project as a git project. If you open your project and open a file of it which is under version control do you see in the bottom right corner of Atom the git branch icon + branch name?

Btw. is this top level Pane folder in your tree view provided by some package? It doesn't look like a standard project folder. Not sure if this one doesn't play so well together with the tree-view-git-status package.

userlerueda commented 7 years ago

Hi @subesokun I guess I didn´t explain myself correctly, what I meant is say I have a parent folder called GitHub, I place all my repositories inside as folders, I wish to be able to add the GitHub main folder and have the option to see the individual folders (repositories) and once I clic on them for them to show me which branch is being used, etc. Not sure if it makes sense, maybe it doesn't.

subesokun commented 7 years ago

I see, yes indeed Atom is not indented to use that way. Atom won't recognize a folder as a Git repository if the current project folder is not the root Git folder itself (or any subfolder of it). Instead of your GitHub folder you should add each repository folder separately as a project to Atom. If you've troubles to add all repos to your Atom upon a restart you can also use the project-manager package to store and restore them.

Closing this issue for now but feel free to comment :)