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] File.realpath error #2717

Closed
bjfish opened this issue Mar 17, 2015 · 2 comments
Closed

[Truffle] File.realpath error #2717

bjfish opened this issue Mar 17, 2015 · 2 comments
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented Mar 17, 2015

I'm not sure why this method is missing. It looks like it is defined in FileNodes

puts File.realpath('../', __FILE__)

Expected (ruby-2.1):

/Users/brandonfish/Documents/jruby-patches

Actual

in `method_missing': undefined method `realpath' for Class (NoMethodError)
    from rang.rb:2:in `<main>'
@nirvdrum
Copy link
Contributor

nirvdrum commented Apr 2, 2015

It looks like it's working on master:

> bin/jruby -X+T -v
jruby 9.0.0.0-SNAPSHOT (2.2.1) 2015-04-02 4ee44e4 Java HotSpot(TM) 64-Bit Server VM 24.76-b04 on 1.7.0_76-b13 +jit [linux-amd64]

> bin/jruby -X+T -e 'p File.realpath("../", __FILE__)'
"/opt/jruby"

@bjfish
Copy link
Contributor Author

bjfish commented Apr 2, 2015

@nirvdrum Yes, it looks good.

@bjfish bjfish closed this as completed Apr 2, 2015
@chrisseaton chrisseaton added this to the truffle-dev milestone Apr 17, 2015
@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

4 participants