-
Notifications
You must be signed in to change notification settings - Fork 361
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
Files.walkFileTree
silently swallows NoSuchFileException
#3879
Comments
lihaoyi Thank you for reporting this and providing the reproducer. Sorry that this defect took your time. I used the reproducer to evoke the presenting problem on my development system. A good first step. Progress to date: I think the "silently swallows JVM seems to "visit" the Path, as a file, before any "PreVisitDirectory". The recursive call in
Scala Native processes the contents of a directory, doing the appropriate "preVisit" and "postVisit". To me, the JVM "visit"-as-file-preVisit-as-directory" seems somewhere between astonishing and just The JVM doc provides no "de jure" description of the to-me odd visitation order, so we are left with Next steps: I am not sure of how much sand I have in my glass before I go offline again for a few weeks. Is this blocking you or have you been able to bypass it, now that you have found it? The next step is to figure out if the visit-as-file-then-pre-visit-as-directory (then visit again as content of This means writing and executing some study programs. Your reproducer has already sped up |
|
PR #3889 was merged awhile (weeks?) ago. I believe this PR can be closed. lihaoyi |
This fails loudly on Scala-JVM (stacktrace bellow), silently completes on Scala-Native without error. Normal
Exception
s don't seem to get swallowed, so must be something specific tojava.nio.file.NoSuchFileException
Found while trying to get com-lihaoyi/os-lib#257 working
The text was updated successfully, but these errors were encountered: