Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] Bundle error #3782

Closed
brauliobo opened this issue Apr 6, 2016 · 7 comments
Closed

[Truffle] Bundle error #3782

brauliobo opened this issue Apr 6, 2016 · 7 comments
Milestone

Comments

@brauliobo
Copy link

I got Bundler::Dsl::DSLError (nothing more, no stack trace) when trying to run jruby truffle with bundle exec: JAVACMD=/home/braulio/Projects/GraalVM-0.10/jre/bin/javao bundle exec jruby.bash -X+T ./bin/benchmark components/pos_tagger_bench.rb. It works without -X+T

@brauliobo
Copy link
Author

the error can be reproduced with a very simple Gemfile:

source 'http://rubygems.org'

gem 'httpclient'

and then run JAVACMD=/home/braulio/Projects/GraalVM-0.10/jre/bin/javao bundle exec jruby.bash -X+T -e 'puts Truffle.graal?'

@chrisseaton
Copy link
Contributor

In general we don't support Bundler at the moment, however I think @bjfish has been trying it and I think he said we were nearly there.

@pitr-ch
Copy link
Member

pitr-ch commented Apr 6, 2016

@brauliobo to get around bundler we currently use different tool, please have look at https://github.com/jruby/jruby/tree/master/lib/ruby/truffle/jruby%2Btruffle. If you run into trouble I'll help.

@bjfish
Copy link
Contributor

bjfish commented Apr 6, 2016

Last time I tried rubygems and Bundler it was working very well for me. I think this was the patch I was using:
https://gist.github.com/bjfish/840c11b171450642bdab

I remember I was setting a custom GEM_HOME and using a different ruby to fetch the dependencies like this:

GEM_HOME=/path/to/gem/home gem install sinatra # using ruby 2
GEM_HOME=/path/to/gem/home ruby sinatra_app.rb # using truffle

@brauliobo
Copy link
Author

cool @bjfish! could you create a PR?

@pitr-ch
Copy link
Member

pitr-ch commented Apr 7, 2016

I've tried the gist changes, but it does not work at the moment because rubygems versions differ in JRuby stdlib and JRuby+Truffle stdlib. Generated gem bins are not running with older rubygems. The tool is fine.

@chrisseaton
Copy link
Contributor

Thanks for the issue, but I'll close now that we are moving repository. Bundler still isn't quite ready yet in general so we don't expect it to work.

@enebo enebo modified the milestone: truffle-dev Feb 10, 2017
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants