Error creating project

2 views
Skip to first unread message

carlosz

unread,
Oct 21, 2007, 4:18:56 PM10/21/07
to ShatteredRuby
Hi, i just found out about ShatteredRuby and want to try it. I've
installed it through gem, but when I try to start a project this error
appears:

/usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:9:in `add_dll_paths': undefined method `+' for
nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:4:in `each'
from /usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:4:in `add_dll_paths'
from /usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:17
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/local/lib/site_ruby/1.8/rubygems.rb:229:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:228:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:228:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:66:in
`active_gem_with_options'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:59:in
`require_gem'
from /usr/bin/shatter:17

I'm using Debian testing, and "gem list --local shattered" output is:

*** LOCAL GEMS ***
shattered_ogrerb (0.5.1)
Shattered_ogrerb: Binds ogrerb to Shattered. Downloadable as a
gem.
shattered_pack (0.5.1)
Shattered Pack: The combination of model/view/controllers and the
domain specific language for each.
shattered_ruby (0.5.1)
Shattered: The main package tieing together controller, view, and
model
shattered_support (0.5.1)
Shattered Support: Allows a common derivation point for shattered
MVC.

What am i missing?

Thanks for the help

Eric Gerlach

unread,
Oct 23, 2007, 2:43:24 PM10/23/07
to ShatteredRuby
Hi Carlos,

Actually I'm just starting out with ShatteredRuby on Ubuntu (but
Debian is my true distro love) and I got the same error. I was able
to get around it by editing
/usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb (path respective to your system).

On line 8, it reads:

unless Platform.mac?

Change this to

unless (Platform.mac? or Platform.linux?)

and shatter will work.

Now, I'm still having problems beyond that, but hopefully that will
help you get started. Perhaps us Linux guys can help each other
out. :)

Cheers,

Eric

> Thanks for the helpI

Eric Gerlach

unread,
Oct 25, 2007, 8:48:35 PM10/25/07
to ShatteredRuby
Here's an actual patch:

Index: shattered_ogrerb/lib/shattered_ogrerb.rb
===================================================================
--- shattered_ogrerb/lib/shattered_ogrerb.rb (revision 280)
+++ shattered_ogrerb/lib/shattered_ogrerb.rb (working copy)
@@ -5,7 +5,7 @@
absolute_path = File.expand_path(File.dirname(__FILE__)
+"/../vendor/#{dir}/")
#TODO: This might be a ruby version issue instead of a
platform issue
# but in Mac PATH is capitalized
- unless Platform.mac?
+ unless (Platform.mac? or Platform.linux?)
ENV["path"] += ";#{absolute_path};"
else
ENV["PATH"] += ";#{absolute_path};"

Mikkel Garcia

unread,
Oct 28, 2007, 4:03:31 PM10/28/07
to shatte...@googlegroups.com
Cool - thanks for the patch.  We are ATM developing primarily in Windows (bleh) and we appreciate you helping to fill the gap.

-Mikkel
Reply all
Reply to author
Forward
0 new messages