scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Having some issues getting up and running #240

Closed danjuggles closed 6 years ago

danjuggles commented 6 years ago

Problem

When I run any of the scm_breeze commands I am getting strange functionality..

Any help would be greatly appreciated, as I am very keen to get this working 😄

Command: gs

Note: git status works normally

The system cannot find the path specified.
C:/Users/dan.evans/.scm_breeze/lib/git/status_shortcuts.rb:29:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)
On branch master
nothing to commit, working tree clean

There were more than 150 changed files. SCM Breeze has fallen back to standard `git status` for performance reasons. 

Command: gb or git branch

 $ git branch
-e:1:in ``': No such file or directory - /mingw64/bin/git branch --color=always  (Errno::ENOENT)
        from -e:1:in `<main>'

Environment:

OS:

OS Name: Microsoft Windows 10 Pro OS Version: 10.0.14393 N/A Build 14393

Shell:

$ bash --version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys)

scm_breeze

$ git show -n 1
commit a59ace0f297402031d3a47b1b59f9bf8c776a822 (HEAD -> master, origin/master, origin/HEAD)
Author: Nathan Broadbent <ndbroadbent@users.noreply.github.com>
Date:   Tue Sep 26 02:47:48 2017 +0700

    Changed logo
danjuggles commented 6 years ago

I have this line in my .bash_profilfe

[ -s "/c/Users/dan.evans/.scm_breeze/scm_breeze.sh" ] && source "/c/Users/dan.evans/.scm_breeze/scm_breeze.sh"

ghthor commented 6 years ago

What version of ruby do you have installed?

danjuggles commented 6 years ago
ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
ghthor commented 6 years ago

Alright, I'm checking if that version of ruby breaks my local installation, caveat I'm on OSX. Which version of git do you have installed?

ghthor commented 6 years ago

Could you try this changeset to see if this fixes the issue with gb? https://github.com/scmbreeze/scm_breeze/pull/232/files

danjuggles commented 6 years ago

Thank you very much @ghthor! I have made the changes as per your link, and now scm_breeze seems to be working, I very much appreciate the help

ghthor commented 6 years ago

Fixed by #232 which still needs to be incorporated properly into mainline. Thanks @danjuggles for juggling this around!