Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

AbstractRepository load error

#15

Ubuntu 8.04 64bit

Attempting install a plugin, i.e.:


sashimi install http://dev.rubyonrails.com/svn/rails/plugins/continuous_builder

list plugins:


sashimi list

etc throws:


/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:276:in `load_missing_constant': uninitialized constant Sashimi::AbstractRepository (NameError)
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:in `const_missing'
        from /usr/lib/ruby/gems/1.8/gems/sashimi-0.2.0/bin/../lib/sashimi/repositories/svn_repository.rb:2
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
        from /usr/lib/ruby/gems/1.8/gems/sashimi-0.2.0/bin/../lib/sashimi/repositories.rb:1
         ... 9 levels...
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/lib/ruby/gems/1.8/gems/sashimi-0.2.0/bin/sashimi:3
        from /usr/bin/sashimi:19:in `load'
        from /usr/bin/sashimi:19

Reported by max_dev · September 26th, 2008 @ 03:51 PM

State: resolved
Milestone: 0.2.x
Assigned to: Luca Guidi Luca Guidi

Activity

  1. max_dev
    max_dev
    • Title changed from [sashimi ] to [sashimi error]

    September 26th, 2008 @ 03:52 PM

  2. Luca Guidi
    Luca Guidi
    • Title changed from [sashimi error] to AbstractRepository load error
    • Tag set to bug

    This problem is due to a strange Ruby behavior: repositories.rb tries to load all the file listed in repositories/, using Dir#[].

    The order is unpredictable, so when tries to load first git_repository.rb or svn_repository.rb, it crashes, because those two files contains AbstractRepository subclasses, but at that time that class wasn't loaded.

    It's very strange because on Mac OS X I never noticed this problem.

    September 29th, 2008 @ 11:35 AM

  3. Luca Guidi
    Luca Guidi
    • State changed from new to resolved

    (from [a81a24d52f0dd83e282f5494f40e64585b224391]) Make sure to load AbstractRepository first. [#15 AbstractRepository load error state:resolved] http://github.com/jodosha/sashim...

    September 29th, 2008 @ 11:38 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.