Gemfile Syntax Error: #2028

Closed
steveklabnik opened this Issue Nov 18, 2012 · 3 comments

2 participants

@steveklabnik
Rubinius member

I was going to test out how fast the Rails tests work with Rubinius in the interest of getting rails/rails#6264 merged, and when I tried to bundle, I got this:

$ bundle --verbose
Gemfile syntax error:
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/dsl.rb:35:in `eval_gemfile'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/dsl.rb:7:in `evaluate'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/definition.rb:18:in `build'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler.rb:144:in `definition'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/cli.rb:228:in `install'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/vendor/thor/task.rb:27:in `run'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/vendor/thor.rb:275:in `dispatch'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/vendor/thor/base.rb:408:in `start'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/bin/bundle:14:in `__script__'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
/Users/steve/.rvm/gems/rbx-head@global/gems/bundler-1.2.2/bin/bundle:14:in `__script__'
kernel/common/kernel.rb:597:in `load'
/Users/steve/.rvm/gems/rbx-head/bin/bundle:19:in `__script__'
kernel/common/block_environment.rb:75:in `call_on_instance'
kernel/common/eval.rb:75:in `eval'
/Users/steve/.rvm/gems/rbx-head/bin/ruby_noexec_wrapper:14:in `__script__'
kernel/delta/codeloader.rb:68:in `load_script'
kernel/delta/codeloader.rb:118:in `load_script'
kernel/loader.rb:614:in `script'
kernel/loader.rb:815:in `main'

Not super helpful, I know. :/ I figured the --verbose might give me an error... let me know how I can help diagnose this further.

@steveklabnik
Rubinius member

Oh, and bundle works just fine on both MRI and JRuby.

@steveklabnik
Rubinius member

So. Turns out that we're using the 1.9 syntax in the Gemfile, but rbx still defaults to 1.8. JRuby is the ruby that defaults to 1.9 now, whoops. The bundle now completes. Sorry about that!

@jc00ke
Rubinius member

You may want to configure rbx to default to 1.9 since that's where most of the problems are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment