trogdoro / xiki

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

'google images' error: uninitialized constant GoogleImages::Firefox #11

Closed fhemberger closed 3 years ago

fhemberger commented 11 years ago

I just started giving xiki a shot. When using the google images command from the introduction, I get the following message:

google images/foo/
  - tried to run: GoogleImages.menu "foo"
  - error: uninitialized constant GoogleImages::Firefox
  - backtrace:
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/google_images.rb:9:in `menu'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/code.rb:210:in `eval'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/code.rb:210:in `instance_eval'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/code.rb:210:in `eval'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/launcher.rb:936:in `invoke'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/launcher.rb:152:in `block in add_menu'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/tree.rb:1370:in `call'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/tree.rb:1370:in `output_and_search'
    /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/launcher.rb:450:in `try_menu_launchers'

Firefox is installed on my machine (but not the default browser)

trogdoro commented 11 years ago

I think if you go to Window -> Issues Loading Xiki it will tell you some plugins the Firefox class needs to load. Will work on making that more clear (or maybe just add them to the bundle).

--Craig

On Thu, Sep 13, 2012 at 6:16 AM, Frederic Hemberger < notifications@github.com> wrote:

I just started giving xiki a shot. When using the google images command from the introduction, I get the following message:

google images/foo/

  • tried to run: GoogleImages.menu "foo"
  • error: uninitialized constant GoogleImages::Firefox
  • backtrace: /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/google_images.rb:9:in menu' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/code.rb:210:ineval' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/code.rb:210:in instance_eval' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/code.rb:210:ineval' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/launcher.rb:936:in invoke' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/launcher.rb:152:inblock in add_menu' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/tree.rb:1370:in call' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/tree.rb:1370:inoutput_and_search' /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib/xiki/launcher.rb:450:in `try_menu_launchers'

Firefox is installed on my machine (but not the default browser)

— Reply to this email directly or view it on GitHubhttps://github.com/trogdoro/xiki/issues/11.

fhemberger commented 11 years ago

That's all what's in that window:

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/cassandra_db.rb wants to use the 'cassandra' gem.
% gem install cassandra

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/couch.rb wants to use the 'couchrest' gem.
% gem install couchrest

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/firefox.rb wants to use the 'simple-tidy' gem.
% gem install simple-tidy

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/markdown.rb wants to use the 'redcarpet' gem.
% gem install redcarpet

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/memcache.rb wants to use the 'memcached' gem.
% gem install memcached

Xiki optionally uses the 'unimidi' gem.
% gem install unimidi

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/riak_tree.rb wants to use the 'json' gem.
% gem install json

After installing simple-tidy, firefox.rb asks for nokogiri-pretty … If all of this stuff is optional, there should be a possibility to install those command-packages (cassandra, couch, firefox, markdown, memcache, …) via bundler.

It would be nice to have a list of additional packages in xiki, where I can see whether those dependencies needed are already installed (or giving me an option to install them from xiki right away). At the moment, this is quite an usability hindrance.

trogdoro commented 11 years ago

Yeah, I should probably just add them as dependencies. Only takes a few extra seconds for them to install.

--Craig

On Fri, Sep 14, 2012 at 1:09 AM, Frederic Hemberger < notifications@github.com> wrote:

That's all what's in that window:

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/cassandra_db.rb wants to use the 'cassandra' gem. % gem install cassandra

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/couch.rb wants to use the 'couchrest' gem. % gem install couchrest

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/firefox.rb wants to use the 'simple-tidy' gem. % gem install simple-tidy

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/markdown.rb wants to use the 'redcarpet' gem. % gem install redcarpet

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/memcache.rb wants to use the 'memcached' gem. % gem install memcached

Xiki optionally uses the 'unimidi' gem. % gem install unimidi

The file /Users/frederic/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/menu/riak_tree.rb wants to use the 'json' gem. % gem install json

After installing simple-tidy, firefox.rb asks for nokogiri-pretty … If all of this stuff is optional, there should be a possibility to install those command-packages (cassandra, couch, firefox, markdown, memcache, …) via bundler.

It would be nice to have a list of additional packages in xiki, where I can see whether those dependencies needed are already installed (or giving me an option to install them from xiki right away). At the moment, this is quite an usability hindrance.

— Reply to this email directly or view it on GitHubhttps://github.com/trogdoro/xiki/issues/11#issuecomment-8554310.

fhemberger commented 11 years ago

Personally, I don't use cassandra, couch or memcache, so I don't know if all those dependencies should be installed by default. With all the sub-dependencies it might be quite a bunch of gems required.

trogdoro commented 11 years ago

I meant just make the browser-related ones install by default. Mostly as a short-term fix.

--Craig

On Fri, Sep 14, 2012 at 5:30 AM, Frederic Hemberger < notifications@github.com> wrote:

Personally, I don't use cassandra, couch or memcache, so I don't know if all those dependencies should be installed by default. With all the sub-dependencies it might be quite a bunch of gems required.

— Reply to this email directly or view it on GitHubhttps://github.com/trogdoro/xiki/issues/11#issuecomment-8559582.