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] Requiring paths with . for current directory doesn't work #3079

Closed
chrisseaton opened this Issue Jun 23, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@chrisseaton
Copy link
Contributor

commented Jun 23, 2015

$ cat a.rb 
require("./b.rb")
$ cat b.rb 
puts("hi")
$ ruby2.1 a.rb                                                                                
hi
$ ../work/jruby/bin/jruby a.rb 
hi
$ ../work/jruby/bin/jruby -X+T -J-server a.rb 
a.rb:1:in `require': cannot load such file -- ./b.rb (LoadError)
        from a.rb:1:in `<main>'

@chrisseaton chrisseaton added the truffle label Jun 23, 2015

vext01 added a commit to softdevteam/krun that referenced this issue Jun 23, 2015

@eregon

This comment has been minimized.

Copy link
Member

commented Jun 23, 2015

Quick and probably good fix would be to expand relative to CWD if it start with "./".

@eregon eregon closed this in 539baf0 Jul 6, 2015

@eregon

This comment has been minimized.

Copy link
Member

commented Jul 6, 2015

Should be good now.

@enebo enebo added this to the JRuby 9.0.0.0.rc2 milestone Jul 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.