Giter Club home page Giter Club logo

Comments (6)

jakobehn avatar jakobehn commented on August 15, 2024

Thank for posting this. Actually, the code checks several different items, including the path so it is strange that it didn't find the correct path for your installation (see https://github.com/jakobehn/GitFlow.VS/blob/master/GitFlow.VS/GitHelper.cs)

I need to add some more checks in that code, I have another issue posted as well on a similar problem

from gitflow.vs.

thebooleanfrog avatar thebooleanfrog commented on August 15, 2024

Hi. Had the same issue just now. Assuming the git install hasn't setup environment variables and modified the registry, the problem is that Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) will return "C:\Program Files (x86)" on a 64-bit machine when running a 32-bit app (which presumably is the case for the vs extension). You could add this check to fix the problem:
if (Environment.Is64BitOperatingSystem) { var pfd = Microsoft.Win32.RegistryKey.OpenBaseKey( Microsoft.Win32.RegistryHive.LocalMachine, Microsoft.Win32.RegistryView.Registry64) .OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion").GetValue("ProgramFilesDir") as string; if (pfd != null) { gitPath = Path.Combine(pfd, "git"); if (Directory.Exists(gitPath)) return gitPath.TrimEnd('\\'); } }

...but my preferred option would be to be able to select the directory where git is installed :)

In the meantime I created a symlink between "C:\Program Files\Git" and "C:\Program Files (x86)\Git" to allow me to init my gitflow. Love the vs extension. Thanks.

from gitflow.vs.

Pitterling avatar Pitterling commented on August 15, 2024

There is already an issue open - #23. I still believe the problem is, that your are running within VS, which is still a 32bit application. check my last comment.

from gitflow.vs.

jakobehn avatar jakobehn commented on August 15, 2024

This issues should be fixed with the latest version (1.0.3.0) that I just uploaded. I now check the reg key that is created with msysgit 2.6.1+

from gitflow.vs.

WesleyWaffles avatar WesleyWaffles commented on August 15, 2024

This seems to have become a problem again. The extension is not detecting the gitflow binaries even though they are installed. I can use the gitflow commands from powershell, but the extension still thinks gitflow isn't installed. My previous fix no longer works. Are there logs I can look at or troubleshooting steps I can take?

from gitflow.vs.

Jojoshua avatar Jojoshua commented on August 15, 2024

I just got this as well. Using the latest version of visual studio and the extension. Is there a workaround?

from gitflow.vs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.