-
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 load any GitLens features or UI #477
Comments
GitLens doesn't need to search upwards in the same way as downward, since git can provide that information directly (using Can you try running |
I’m out at the moment but I did try that and it showed the repo correctly.
…On Thu, 16 Aug 2018 at 05:56, Eric Amodio ***@***.***> wrote:
GitLens doesn't need to search upwards in the same way as downward, since
git can provide that information directly (using git rev-parse
--show-toplevel). But for some reason that seems to be failing.
Can you try running git rev-parse --show-toplevel from inside the
/Users/joe_bloggs/Source/MyProject/FeatureTests folder? Also is the
casing of that path correct?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#477 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAmfSdijBF-1fhGU7z-QHs5c4ZUT0dQaks5uRPuQgaJpZM4V-GSp>
.
|
@eamodio I've ran that command and got the following:
I notice in the head of the Gitlens logs:
That it executes that command to find the repo root, and then the next message is |
Hrm, and if you run The activation log message just marks the end of GitLens searching for repositories. |
Can set |
Yes Git version Debug output seems the same when
|
It's worth noting the vscode workspace resides in a sub-directory of the repo root |
With it set to |
Thanks for the tip, here is the output:
|
If I run these commands above in the VSCode Terminal panel they work as expected. Also the output from VSCode Git logs is:
Which I believe is doing exactly the same thing your extension is doing and is working and finding the repo. |
Ok I've fixed it by adding the following to my settings:
Essentially telling Gitlens to use the same Git executable as VSCode. I'm not sure why it wouldn't do that by default, to be honest. So might be a bug there but this workaround works for me. |
Thanks for your help on this. |
@cameroncooke I think I know why this isn't working. GitLens does try to get the git path from vscode, but it wasn't apparently waiting correctly if the Git extension hadn't loaded yet (which never seemed to happen in the past, but is now). I've got a fix for that -- can you try out this private build? Remove the |
@eamodio I've removed the I can report the private version does indeed fix the issue and everything now works without having to explicitly define the git path. 🎉 |
Sweet! I'll get a new version out tonight with the fix -- thank you for the help! |
@eamodio I had a similar issue. Gitlens was not found, the pre-release worked. |
Error still persists, getting |
@yashLadha Can you open a new issue with more details and logs about what you are experiencing? From |
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. |
So I've just installed GitLens but can't get any of the features or UI to activate. I've tried restarting VSCode and this has had no effect.
My workspace is in a sub-directory of the repo root. My workspace is at
MyProject/FeatureTests/
and the repo root as atMyProject/
. It appears GitLens can't find the repo because it doesn't search upwards only downwards. Code's own Git features work and can see the repo just fine.Steps to Reproduce:
verbose
logs, see errors.Logs
The text was updated successfully, but these errors were encountered: