[MacRuby-devel] [MacRuby] #406: Can't load gem grit.
MacRuby
ruby-noreply at macosforge.org
Mon May 3 18:30:23 PDT 2010
#406: Can't load gem grit.
---------------------------------------+------------------------------------
Reporter: hungerandthirst@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords: rubygems, grit, gems
---------------------------------------+------------------------------------
Comment(by kayla.rosebud@…):
Replying to [comment:1 kayla.rosebud@…]:
> Cc Me!
I recently upgraded to MacRuby 0.6 hoping it would fix this issue.
When I attempt to load the grit gem in macirb:[[BR]]
{{{
$ require "rubygems"
$ require "grit"
}}}
Results in:
{{{
"no such file to load -- grit"
}}}
but if I
{{{
$ require "grit"
}}}
again, I get:
{{{
unknown: warning: already initialized constant VERSION
unknown: warning: already initialized constant MEDIA_TYPE_RE
unknown: warning: already initialized constant UNREG_RE
unknown: warning: already initialized constant ENCODING_RE
unknown: warning: already initialized constant PLATFORM_RE
unknown: warning: already initialized constant SIGNATURES
unknown: warning: already initialized constant IANA_URL
unknown: warning: already initialized constant RFC_URL
unknown: warning: already initialized constant DRAFT_URL
unknown: warning: already initialized constant LTSW_URL
unknown: warning: already initialized constant CONTACT_URL
unknown: warning: already initialized constant VERSION
/usr/local/lib/ruby/gems/1.9.1/gems/grit-2.0.0/lib/grit/git-
ruby/internal/loose.rb:45: regexp `\0 'compilation error:
U_REGEX_BAD_ESCAPE_SEQUENCE
SyntaxError: compile error
from /Developer/Examples/Ruby/MacRuby/(irb):3:in `<main>'
}}}
And if I try to require grit in a MacRuby project I get the same:
{{{
undefined method `[]' for nil:NilClass (NoMethodError)
}}}
Possibly related?:
http://www.mail-archive.com/macruby-
devel at lists.macosforge.org/msg01855.html
{{{
$macgem env
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.9.0 (2008-06-03 patchlevel 0) [universal-darwin10.0]
- INSTALLATION DIRECTORY:
/usr/local/lib/ruby/gems/1.9.1:/opt/local/lib/ruby/gems/1.9.1
- RUBYGEMS PREFIX: /Developer/Examples/Ruby/MacRuby
- RUBY EXECUTABLE:
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/bin/macruby
- EXECUTABLE DIRECTORY:
/usr/local/lib/ruby/gems/1.9.1:/opt/local/lib/ruby/gems/1.9.1/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-10
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.9.1:/opt/local/lib/ruby/gems/1.9.1
- /usr/local/lib/ruby/gems/1.9.1
- /opt/local/lib/ruby/gems/1.9.1
- /Users/RoseDev/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/",
"http://gems.github.com/", "http://gems.github.com/"]
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- http://gems.github.com/
- http://gems.github.com/
}}}
Any tips on how I might go about debugging this? It's driving me crazy.
--
Ticket URL: <http://www.macruby.org/trac/ticket/406#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list