Comments (6)
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.
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.
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.
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.
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.
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)
- The future of GitFlow is unsure HOT 13
- GitFlow for VS2022 HOT 5
- Issue running install in Visual Studio 2019 HOT 10
- Visual Studio 2022 Support HOT 1
- Timeout and Reload message in VS2019
- How to change the remote name 'origin' to a different one?
- Multiple repo
- VS 2017 An exception was thrown while initializing part "GitFlowVS.Extension.GitFlowActionSection" HOT 3
- support vs 2019 HOT 5
- GitFlow not preserved as a tab HOT 1
- No error notification if there's a failure when creating a release HOT 3
- Tests do not work anymore after finishing a feature.
- Support for Visual Studio 2019 HOT 2
- Upgrade GitFlow scripts from AVH repo HOT 2
- Consider implementing GVFS Protocol so extension will be compatible with VFS for Git HOT 1
- GitFlow button not appearing HOT 4
- Problem create new feature with subfolder HOT 5
- Visual Studio 16.8 has a new Git tool windows. GitFlow should be moved out of Team Explorer window. HOT 1
- Plugin not installed or initialize does nothing
- Giflow button click throws an error. Could not load an assembly. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitflow.vs.