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
Error: Gitflow is not installed #7
Comments
Can you please paste the content of your project's .git/config file? |
|
Hmm... very strange! This sounds like some sort of $PATH issue. Maybe your PHPStorm points to one instance of git in the settings and the $PATH variable points to another in the terminals? |
yeah I thought that may be the issue, running |
Which OS\PHPStorm versions are you running? I'll try to replicate your environment over the weekend and see if I can reproduce the problem |
Sure, Thanks for taking a look at this! It's not a deal breaker as ALT-TAB into terminal isn't too much of a pain ;) |
Well the idea behind this plugin is that you don't have to go into terminal, so alt-tabbing kind of defies the point :) In the meantime perhaps can you try and reinstall gitflow? Maybe that'll help (Don't worry I won't ask you to turn it off and on again :P ) |
I've got the same issue with WebStorm 7 on Mac OS X 10.8.5....git flow works fine from the command line (and SourceTree FWIW), but WebStorm/gitflow plugin isn't finding it and reports: 12:02:57 PM Error: Gitflow is not installed 12:02:57 PM Error |
Looks like it's Mac OS specific then. I'll don't own a Mac, but I'll try to get a hold of one to debug this. |
Unfortunately I am having the same issue ;) I quickly took a look at the source and if I am correct you wrap the origin git4idea command to become "git flow" instead of "git". If that is the case this might cause the issue as Mac OS' underlying linux implementation is very strict and "simple" (i.e. the default But then I only took a very short glance at the source and didn't dig into git4idea that much, so I could be completly wrong as well. |
@joetjen Thank you for that insight! I'm not a Mac guy and that is super helpful to me. It sounds like a very probable culprit. I'll have a go at tackling this next week. Can you volunteer to test once I have something up? :) If so let me know at opherv@gmail.com |
For Mac from the terminal in a project run "git flow init" and then restart pycharm and everything will work. |
Funny thing, I just forked gitflow4idea, set up the project and ran it in a test environment (with only git4idea and gitflow4idea plugins enabled) and it worked just perfect, even on EAP 13. I am trying to find out if it's some other plugin that might cause the problems. |
any head way on this? |
I am currently trying to rewrite some parts to use the |
Thing is on Windows there is no git-flow executable, and I have no Mac to test this on. I'm afraid I'll need the help of someone with a Mac to debug this |
I have no Windows to check if there is not I will continue to play with it once I have the time. Maybe - hopefully - I can come up with a solution. |
OpherV, I'm seeing this on MacOS 10.9 with git 1.8.3.4 and git flow 0.4.1. I could provide remote debugging support. And by this, I mean that when I try to run a git flow command in phpStorm I get the following message:
|
I'm getting the same error in intellij 13 on Mac OS X 10.7.5 using git 1.7.9.6 and git flow 0.4.2-pre 15:49:26.496: git flow feature start scv-1068 |
Joining the thread with the same error. 16:08:38.014: git flow feature start test |
I'm getting the same error. Mac OSX: 10.7.5 Error seems to occur and not in the same directory hierarchy path of git-flow path and probably git.
Best regards |
That didn't exactly do it for me. My git has the same path as the above but my git-flow is placed at /opt/local/bin/git-flow and making symlinks to all the git-flow files from /usr/bin/ (/usr/bin/git-flow -> /usr/bin/local/git-flow) did it. |
@yuppi0412 and @hrmoller thanks for your insight! It seems that git and git-flow files need to live together for the extension to work. I sym-linked my git-flow files into /usr/bin. Thanks for being tenacious and curious on this issue! |
Awesome work guys! :) @Leenug, @sheaphillips, @renekoch, @adkirk25 I'll be sure to add this to the wiki\readme page :) |
I experienced the same problem on OSX. I was using the system git and the homebrew installation of git-flow. Installing git from homebrew solved the problem easily without having to hack with the OSX directories. |
I solved this problem by changing the "Path to Git executable" to /usr/local/bin/git instead of /usr/bin/git in PHP Storm GIT preferences. |
I can confirm the resolution by subnauez does work of changing the path to git to /usr/local/bin/git |
Just posting this solution in case anyone comes across with the same problem as I did in Max OSX 10.9.2. My solutions was this: I executed this command:
I left my PhpStorm's path to git executable as it was (e.g. /usr/bin/git), and made a symbolic link to git-flow to point to /usr/bin/ since my git executable lives in /usr/bin/:
Adding symbolic links for git executable to /usr/local/bin/ didn't work. I also try to adding symbolic links to /opt/local/bin/ and that didn't work also. Hopefully this will help someone. |
@OpherV Maybe this should be added to the ReadMe file for those Mac users who will be installing the plug-in? |
@adonix 👍 I'll definitely do that |
I had the same issue on Mac OS X 10.9.5. Changing Git's path in IDE Preferences didn't help because there's no git executable in
Therefore, the solution:
Hope it helps someone. |
@plugn it worked for me. Many many thanks. |
@plugn it works ! |
@plugn - worked for me too on Windows 7 with Cygwin |
Following article helped me to get it working on Windows server with msysgit https://github.com/nvie/gitflow/wiki/Windows |
The @plugn solution stopped to work on El Capitan. El Capitan now protects certain system directories in "rootless" mode (a.k.a. System Integrity Protection). If you run these commands you'll see that the directories and files under there are now marked as "restricted. You can disable rootless mode like this:
When you're done, it is highly recommended that you re-enable SIP by following the same steps, but using csrutil enable in step 3. |
|
Anther update from Mac El capitan. Please refer here http://stackoverflow.com/questions/32659348/operation-not-permitted-when-on-root-el-capitan-rootless-disabled if you got "operation not permit" issue when try running "sudo ln -s /usr/local/bin/git-flow /usr/bin/git-flow". |
+1 to @serdem420 |
Has anyone made this work without changing the root permissions on El Capitan? I reset the symlink to my git and I'm still getting -> "git: 'flow' is not a git command. See 'git --help'. Both my git and git-flow are in the usr/local/bin directory. Any help is appreciated. Thanks! |
I know this is old but wanted to share my experience on MacOs High Sierra. I solved it by running |
i became the same error on windows 10 |
On arch linux could be installed through yaourt
|
Solved my problem in MacOS Catalina with |
|
|
When trying to start a new hotfix, feature or release the following error is returned in the event log:
Gitflow is installed and works as expected from both my external terminal and PHP Storms built in terminal.
The text was updated successfully, but these errors were encountered: