-
Notifications
You must be signed in to change notification settings - Fork 931
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
sbt fails under FreeBSD with 'java.nio.file.NoSuchFileException: <PATH>/project/target/scala-2.12/sbt-1.0/classes #3894
Comments
|
Thanks for the report @j-keck. Actually, since you are using FreeBSD, we can also add the relevant native code; it should be rather easy. In theory, we should just need to add a variant of |
|
|
Awesome! I'll prepare a patch for you to try. |
|
I tested the basic code in a VM, and it seems to work ok. @j-keck Please let us know if you can test the pull request whenever you have some time. Thanks! |
|
@cunei i currently compile sbt with your changes, and will test it later today. Thanks for your effort! |
|
The two PRs are merged, closing the ticket. |
after i create the directory by hand, sbt compiles and run's my project.
steps
To trigger the error under Linux, you need a new project and start sbt with 'sbt.io.jdktimestamps=true':
problem
For FreeBSD there is no native handling for file-timestamps (in
sbt.internal.io.Milli) so thepure Java implementation with
java.nio.files.Filesare used.The native implementations throws a
java.io.FileNotFoundExceptionwhere theJava implementation throws
java.nio.file.NoSuchFileExceptionif the given file doesn't exists.sbt.io.IO.getModifiedTimeOrZeroandsbt.io.IO.setModifiedTimeOrFalsecatch onlyjava.io.FileNotFoundException- so thejava.nio.file.NoSuchFileExceptionare propagated.expectation
sbt should work under FreeBSD without to create a directory by hand.
notes
sbt version: 1.1.0
FreeBSD 11.1-STABLE #6 r327415+2236b971aa20(stable/11): Fri Jan 19 16:58:54 CET 2018 root@main.locweb:/usr/obj/usr/src/sys/J
stacktrace
The text was updated successfully, but these errors were encountered: