Comments (8)
Please provide your OS, ruby version and any errors that occurred.
Thanks,
Gazler.
from githug.
I was using windows, on Linux everything is running quite fine.
from githug.
Hi,
I have neglected to do any testing on Windows due to lack of a Windows machine. I'll update the README to reflect this and leave the issue open for now.
from githug.
This was fixed when Windows support was added in the 0.2.0 release of the gem.
from githug.
I'm sorry, I ran into an error that sounds just like the one, that has been closed here. It's on Win7 (64-bit) with Ruby 2.0.0.
The errors are the following (It's from a reset, but moving from Level 1 to Level 2 showed the same output.):
Githug *
resetting level
C:/Ruby200-x64/lib/ruby/2.0.0/open3.rb:211:in `spawn': No such file or directory
- git init "." (Errno::ENOENT)
from C:/Ruby200-x64/lib/ruby/2.0.0/open3.rb:211:inpopen_run' from C:/Ruby200-x64/lib/ruby/2.0.0/open3.rb:99:in
popen3'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git.rb:
258:insh' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git.rb: 250:in
run'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git.rb:
221:inmethod_missing' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git-rub y.rb:17:in
init'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/repo.rb
:76:ininit' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/rep ository.rb:36:in
init'
from (eval):6:inblock in setup' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/lev el.rb:84:in
call'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/lev
el.rb:84:insetup_level' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/cli .rb:48:in
reset'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/task.r
b:22:inrun' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/invoca tion.rb:118:in
invoke_task'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor.rb:263
:indispatch' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/base.r b:389:in
start'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/bin/githug:4:i
n<top (required)>' from C:/Ruby200-x64/bin/githug:23:in
load'
from C:/Ruby200-x64/bin/githug:23:in `'
Any suggestions?
from githug.
@kultprok I haven't tried githug on Windows for quite some time, I'll install ruby on my windows VM over the weekend and try to see what is happening.
from githug.
Thanks.
from githug.
Sorry it took so long for me to check.
The following is the output from a fresh install of ruby using http://railsinstaller.org I tested the first few levels and everything seems fine. Can you see any obvious differences between our configurations?
C:\Sites>gem install githug
Fetching: diff-lcs-1.2.4.gem (100%)
Successfully installed diff-lcs-1.2.4
Fetching: grit-2.3.0.gem (100%)
Successfully installed grit-2.3.0
Fetching: thor-0.14.6.gem (100%)
Successfully installed thor-0.14.6
Fetching: githug-0.3.0.gem (100%)
Successfully installed githug-0.3.0
Parsing documentation for diff-lcs-1.2.4
Installing ri documentation for diff-lcs-1.2.4
Parsing documentation for grit-2.3.0
Installing ri documentation for grit-2.3.0
Parsing documentation for thor-0.14.6
Installing ri documentation for thor-0.14.6
Parsing documentation for githug-0.3.0
Installing ri documentation for githug-0.3.0
4 gems installed
C:\Sites>ls
todo
C:\Sites>githug
********************************************************************************
* Githug *
********************************************************************************
No githug directory found, do you wish to create one? [yn] y
Welcome to Githug
Level: 1
Difficulty: *
A new directory, git_hug, has been created; initialize an empty repository in it
C:\Sites>cd git_hug
C:\Sites\git_hug>vi
'vi' is not recognized as an internal or external command,
operable program or batch file.
C:\Sites\git_hug>ls
C:\Sites\git_hug>githug
********************************************************************************
* Githug *
********************************************************************************
Sorry, this solution is not quite right!
Level: 1
Difficulty: *
A new directory, git_hug, has been created; initialize an empty repository in it
C:\Sites\git_hug>git init
Initialized empty Git repository in C:/Sites/git_hug/.git/
C:\Sites\git_hug>githug
********************************************************************************
* Githug *
********************************************************************************
Congratulations, you have solved the level
Level: 2
Difficulty: *
There is a file in your folder called README, you should add it to your staging
Note: You start each level with a new repo. Don't look for files from the previo
C:\Sites\git_hug>git add README
C:\Sites\git_hug>githug
********************************************************************************
* Githug *
********************************************************************************
Congratulations, you have solved the level
Level: 3
Difficulty: *
The README file has been added to your staging area, now commit it.
C:\Sites\git_hug>ls
README
C:\Sites\git_hug>ruby -v
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
C:\Sites\git_hug>gem list | grep githug
githug (0.3.0)
C:\Sites\git_hug>githug reset
********************************************************************************
* Githug *
********************************************************************************
resetting level
Level: 3
Difficulty: *
The README file has been added to your staging area, now commit it.
C:\Sites\git_hug>ls
README
C:\Sites\git_hug>githug
********************************************************************************
* Githug *
********************************************************************************
Sorry, this solution is not quite right!
Level: 3
Difficulty: *
The README file has been added to your staging area, now commit it.
from githug.
Related Issues (20)
- bisect solution seems wrong HOT 1
- Unhelpful hint in level 20 HOT 1
- a litte Dockerfile to play githug without installing anything
- Level 10 wrong number off files to be committed
- Can I switch to a specific level? HOT 1
- Scoop安装失败 HOT 1
- GitHug gem on rubygems.org is extremely outdated!
- Several levels don't recognize default branch not named `master` HOT 1
- Level 28, behaving not as expected
- Stage 14 not accepting the answer even though it's presumably correct HOT 2
- Change delete branch hint
- Level 4 not working as expected in Ubuntu 18.04 HOT 4
- Support using GitHug in the classroom HOT 1
- DISCUSSION: New level-set branch based on Git Immersion by Jim Weirich HOT 1
- Enhance Dockerfile classroom functionality
- Potential issue in checkout_tag.rb (level 34)
- Issu in levels 4, 16 and so: what you should do HOT 3
- Problem in level 37
- Githug doesnt work HOT 3
- level 28 cannot pass HOT 2
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 githug.