AbstractRepository load error
Reported by max_dev | September 26th, 2008 @ 03:51 PM | in 0.2.x
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
Comments and changes to this ticket
-
max_dev September 26th, 2008 @ 03:52 PM
- Title changed from [sashimi ] to [sashimi error]
-
Luca Guidi September 29th, 2008 @ 11:35 AM
- 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.
-
Luca Guidi September 29th, 2008 @ 11:38 AM
- State changed from new to resolved
(from [a81a24d52f0dd83e282f5494f40e64585b224391]) Make sure to load AbstractRepository first. [#15 state:resolved] http://github.com/jodosha/sashim...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Sashimi is a system wide repository to handle Rails plugins as gems
People watching this ticket
Tags
Referenced by
- 15 AbstractRepository load error (from [a81a24d52f0dd83e282f5494f40e64585b224391]) Make su...