trogdoro / xiki

A shell console with GUI features
http://xiki.org
Other
3.76k stars 207 forks source link

"xiki directory" command fail when running it inside the xiki's directory #23

Open armelbd opened 11 years ago

armelbd commented 11 years ago

Hi, I spotted a minor issue. When running the "xiki directory" command inside the xiki's directory I get this error:

fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
/Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib/bundler/definition.rb:246:in `initialize': Permission denied - /Users/bourgona/.rvm/gems/ruby-1.9.2-p320/gems/xiki-0.6.3/Gemfile.lock (Errno::EACCES)
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib/bundler/definition.rb:246:in `open'
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib/bundler/definition.rb:246:in `lock'
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib/bundler/environment.rb:39:in `lock'
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib/bundler/runtime.rb:39:in `setup'
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup'
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/rubygems-bundler-1.0.2/lib/rubygems-bundler/noexec.rb:63:in `setup'
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320@global/gems/rubygems-bundler-1.0.2/lib/rubygems-bundler/noexec.rb:75:in `<top (required)>'
    from /Users/bourgona/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /Users/bourgona/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /Users/bourgona/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /Users/bourgona/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:9:in `<main>'

Meanwhile running the command on inside my home folder works fine:

~ $ xiki directory
/Users/bourgona/.rvm/gems/ruby-1.9.2-p320/gems/xiki-0.6.3/

I am using Mac OSX 10.7.4, ruby (manage by rvm):

ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.4.0]

I have installed xiki with:

$ sudo gem install xiki
flugsio commented 11 years ago

Works here (gem install xiki). When using rvm you should probably NOT use sudo. If you need sudo, you may try rvmsudo.

ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]

with bundler 1.1.1, rvm version 1.10.2

I do not have a Gemfile.lock in xiki directory, all other files in there belongs to flugsio:flugsio