-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't activate any GitLens UI #295
Comments
Hi, can you please enable output channel logging by setting |
by the way, updated git 2.13 to 2.16 bit didn't help |
What folder are you opening in vscode? Does that folder have a repository in it? If so, is the repo at the root? Nested deeper than 1 level? |
@eamodio there is a valid repo without any nasting: I had two remotes linked to that repo but this is not the issue as it does not work on any of my repos. |
So which folder are you opening vscode to? And the repo is in |
@eamodio Wow I know what caused it, I had Git installed be Homebrew on OS X! Before it was |
GitLens does search for the git executable (similar to what vscode does). You can also use the built-in vscode setting It seems very strange to me that vscode built-in git support would work, but GitLens wouldn't. |
What is strange is that there is no message or anything, just the vacuum void filled with nothing.
|
Well that part isn't surprising -- from the first logs you posted, GitLens initialized fine, found git fine, and used git fine, but it failed to find any repositories. Which is not an uncommon scenario -- people open folders and files without repos all the time, so in that case GitLens just silently hides in the background until something changes (i.e. a repo shows up). And I'm even more confused that changing the git path would have any affect on any of that (because the version of git it found wasn't that old -- if it was you would have seen a warning about it). So the crux of the issue is why is GitLens not finding a repo in the folder you opened. That is why I was asking about what folder you are opening and exactly where the repo is inside that folder. By default GitLens only scans 2 levels -- the folder opened and 1 level down from there (it can be controlled with the So can you confirm what folder you are opening, and where the repo is located? |
@appinteractive any update on this? |
hey @eamodio I dod not did alter any git specific settings before and the It seams as if it was not setisfied with the given git version is found or did not even was aware of the git installation provided in the path variables. Could it be that you rely somehow on the build in terminal / bash instead of the one that vscode is using? Because I am using iTerm with ZSH (which I also see in vscode) where the path was set, but the build in terminal may not have the variable as they use different profile files. |
I'm encountering a similar issue. I installed GitLens three weeks ago but it stopped functioning entirely after about a week and a half. I've tried enabling, disabling, and reinstalling it and every other extension to rule out any conflicts, but saw no change.
I enabled the verbose output setting, and see this output when opening any file: |
Me, neither.
logs:Gitlens
Help me, plz! |
I was able to solve this issue on my machine by setting
|
@ninnemana Thank you savior! It's solved with setting Actually, I have legacy git with newest one, like Happy working day! |
@ninnemana @Rakk4403 were git operations in vscode (not GitLens) also failing? |
@ninnemana worked for me as well! @eamodio git operations were working fine for me before and after the fix. |
@dylankershaw so using git from vscode worked fine, but GitLens failed? |
Yes, correct.
… On Apr 6, 2018, at 12:10 AM, Eric Amodio ***@***.***> wrote:
@dylankershaw so using git from vscode worked fine, but GitLens failed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@eamodio Yes, git operation was fine. problems are,
|
Since #295 (comment) "fixed" the issue for all of you I'm going to close this. Please feel free to re-open if it comes back. |
I have no idea how this can happen. I try many ways, change git.path, I even uninstall everything, remove extensions in ~/.vscode/extensions, and install gitlens first but it does not work. Moreover, there is no message about any error or something :( I just love gitlens and now I don't know what to do more to make it works :( |
I had the same problem, removing a missing folder from my workspace solved it. |
What do you mean by removing a missing folder? Could there have been permission issues on that folder? |
I set in my |
@voppe THANK YOU! That info helped me discover a lurking problem with how GitLens searches for repos. Any missing folder, invalid permissions on a folder, or any other error during that search, GitLens dies. This will be fixed ASAP. Thanks again! |
Hi @eamodio, I'm getting the same issue where GitLens is nowhere to be found, but my log is a bit different:
Any ideas? It looks like it's failing to run |
@jeffberry Those errors are normal/expected -- my guess is you have the settings.json file open, so GitLens tries to check the path of open files for repositories to provide features, but if there isn't one that is fine. Are you opening a multi-root workspace with many folders? What is the behavior you are seeing (or not seeing)? |
@eamodio Ah, that makes sense for those errors, you're correct in that it only triggers those when settings are open. Yes, I have a workspace open that has 5 folders added to it, each of which is a git repository. GitLens has worked great for me up until about a week or two ago, and now I just don't see it anywhere; I don't get an icon in the side panel, nor do I have a "GitLens" portion on the SCM panel anymore. The only thing I can really see or access is the "Welcome" panel, even running "Toggle Git Code Lens" doesn't appear to do anything. |
@jeffberry Do you see any errors in the console if you open up the developer tools? Can you provide a full trace of startup? |
@eamodio I dug through the console and found a few errors, but they were related to an icon plugin I have installed. I uninstalled that plugin and the errors went away. While I was looking at the logs, I ended up noticing that I was in Zen mode, and the Gitlens icon does not appear in Zen mode. Disabling Zen mode got GitLens working again and I'm back in action. Thanks for the quick help, and thanks for the great plugin! |
Ah, awesome. Glad it is sorted. Now that you can have GitLens explorers in their own activity bar icon now, I probably should stop hiding them in Zen mode (at least only hide explorers that aren't in the GitLens view). Thanks! |
works on OSx, but doesnt work on Windows 7 for me :( |
@steelx can you open a new issue for that with more details and ideally logs? The issue template walks through turning on logging. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to Reproduce:
all activated but nothing shown in UI
still nothing
As a side note, I have a Case Sensitive File System
I even re-installed VSCode and disabled ALL Extensions, but still there is NO Sign of GitLens.
The text was updated successfully, but these errors were encountered: