Git Product home page Git Product logo

Comments (8)

Gazler avatar Gazler commented on August 16, 2024

Please provide your OS, ruby version and any errors that occurred.

Thanks,
Gazler.

from githug.

triplem avatar triplem commented on August 16, 2024

I was using windows, on Linux everything is running quite fine.

from githug.

Gazler avatar Gazler commented on August 16, 2024

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.

Gazler avatar Gazler commented on August 16, 2024

This was fixed when Windows support was added in the 0.2.0 release of the gem.

from githug.

kultprok avatar kultprok commented on August 16, 2024

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:in popen_run' from C:/Ruby200-x64/lib/ruby/2.0.0/open3.rb:99:inpopen3'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git.rb:
    258:in sh' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git.rb: 250:inrun'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git.rb:
    221:in method_missing' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/git-rub y.rb:17:ininit'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grit-2.3.0/lib/grit/repo.rb
    :76:in init' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/rep ository.rb:36:ininit'
    from (eval):6:in block in setup' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/lev el.rb:84:incall'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/lev
    el.rb:84:in setup_level' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/githug-0.3.0/lib/githug/cli .rb:48:inreset'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/task.r
    b:22:in run' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/invoca tion.rb:118:ininvoke_task'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor.rb:263
    :in dispatch' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/base.r b:389:instart'
    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:inload'
    from C:/Ruby200-x64/bin/githug:23:in `'

Any suggestions?

from githug.

Gazler avatar Gazler commented on August 16, 2024

@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.

kultprok avatar kultprok commented on August 16, 2024

Thanks.

from githug.

Gazler avatar Gazler commented on August 16, 2024

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)

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.