Open jeffomatic opened 12 years ago
Same here.
/Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-osx-1.0.1/lib/consular/osx.rb:161:in `execute_command': undefined method `do_script' for nil:NilClass (NoMethodError) from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-osx-1.0.1/lib/consular/osx.rb:110:in `block (2 levels) in execute_window'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-osx-1.0.1/lib/consular/osx.rb:110:in `each'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-osx-1.0.1/lib/consular/osx.rb:110:in `block in execute_window'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-osx-1.0.1/lib/consular/osx.rb:95:in `each'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-osx-1.0.1/lib/consular/osx.rb:95:in `execute_window'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-osx-1.0.1/lib/consular/osx.rb:62:in `process!'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-1.0.2/lib/consular/cli.rb:35:in `block in start'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-1.0.2/lib/consular/cli.rb:255:in `call'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-1.0.2/lib/consular/cli.rb:255:in `message_unless_file'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-1.0.2/lib/consular/cli.rb:35:in `start'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/thor-0.18.0/lib/thor/command.rb:27:in `run'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/thor-0.18.0/lib/thor/invocation.rb:120:in `invoke_command'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/thor-0.18.0/lib/thor.rb:363:in `dispatch'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/thor-0.18.0/lib/thor/base.rb:427:in `start'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/gems/consular-1.0.2/bin/consular:13:in `<top (required)>'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/bin/consular:19:in `load'
from /Users/juergen/.rvm/gems/ruby-1.9.3-p194@xeer/bin/consular:19:in `<main>'
I'm using rvm on OSX Lion. I use a very simple bash script that runs a consular termfile, and I frequently encounter a NoMethodError in
consular/osx.rb
the first time I attempt to run this bash script. If I run the bash script a second time, then things proceed normally, which leads me to believe there is some kind of race condition in setting up the Ruby environment, possibly related to rvm.What's tricky is that I never have any issues running other Ruby scripts via rvm...I've only ever seen this when running a consular script after boot-up.
I don't think it's the cause of any issues, but the bash script I use looks like this:
The subsequent Ruby error and callstack is as follows: