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] Correct File.read error for missing file needed for MRI Excludes. #2836

Closed
bjfish opened this issue Apr 16, 2015 · 3 comments
Closed
Assignees

Comments

@bjfish
Copy link
Contributor

bjfish commented Apr 16, 2015

Expected Errno:ENOENT :

ruby -e 'File.read("test/ThisFileDoesNotExist.rb")'
-e:1:in `read': No such file or directory @ rb_sysopen - test/ThisFileDoesNotExist.rb (Errno::ENOENT)
    from -e:1:in `<main>'

Actual

 ./bin/jruby -X+T -e 'File.read("test/ThisFileDoesNotExist.rb")'
-e:1:in `read': internal implementation error - RuntimeException java.nio.file.NoSuchFileException: test/ThisFileDoesNotExist.rb org.jruby.truffle.runtime.util.FileUtils$1.block(FileUtils.java:39) (RubyTruffleError)
    from -e:1:in `<main>'
@chrisseaton chrisseaton added this to the truffle-dev milestone Apr 17, 2015
@chrisseaton
Copy link
Contributor

I'm working on this but it's going to take me a while (few days) to build up the whole File stack to get to the point of implementing File.read.

@chrisseaton chrisseaton self-assigned this Apr 17, 2015
@bjfish
Copy link
Contributor Author

bjfish commented Apr 17, 2015

@chrisseaton Thanks for letting me know, I'm using a workaround locally in the meantime.

@chrisseaton
Copy link
Contributor

Fixed in #2866

@enebo enebo added this to the Invalid or Duplicate 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

3 participants