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

.jrubyrc not picked up from current directory #1482

Closed
jrhorn424 opened this issue Feb 5, 2014 · 2 comments
Closed

.jrubyrc not picked up from current directory #1482

jrhorn424 opened this issue Feb 5, 2014 · 2 comments

Comments

@jrhorn424
Copy link

In order to get 1.7.9 to pickup ruby 1.9.3, I put the following in my project directory:

# .jrubyrc
compat.version=1.9

Invoking jruby -v reported ruby 2.0, whereas copying the same file to the $HOME directory resutls in jruby -v reporting 1.9.

@BanzaiMan
Copy link
Member

1.7.9 does not ever default to the 2.0 mode, so something else must be setting it. Could you review your environment? If you are using Ruby manager (RVM, rbenv, chruby), it might be reading some other file to set it, too.

$ unset JRUBY_OPTS
$ cd $TMPDIR
$ ls .jrubyrc
ls: .jrubyrc: No such file or directory
$ cat > .jrubyrc
compat.version=2.0
$ jruby -v
jruby 1.7.10 (2.0.0p195) 2014-01-09 c4ecd6b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_51-b13 [darwin-x86_64]
$ cat > .jrubyrc
compat.version=1.9
$ jruby -v      
jruby 1.7.10 (1.9.3p392) 2014-01-09 c4ecd6b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_51-b13 [darwin-x86_64]

@kares
Copy link
Member

kares commented May 23, 2017

closing this JRuby 1.7.x report as there's been no response in a long time

@kares kares closed this as completed May 23, 2017
@kares kares added this to the Invalid or Duplicate milestone May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants