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

NoSuchFileException for Globs with {} at the end #756

Open
vorburger opened this issue Jun 28, 2024 · 0 comments
Open

NoSuchFileException for Globs with {} at the end #756

vorburger opened this issue Jun 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vorburger
Copy link
Member

With #730 fixed, this works:

./enola -vvv docgen --load=file:"docs/models/**.{ttl,owl,rdf}" --output=file://"$PWD"/docs/models/

but this does not:

$ ./enola -vvvvv validate --load="file:models/{enola.dev,schema.org,purl.org,www.w3.org}/**.ttl"
2024-06-28 02:31:46 SEVERE dev.enola.cli.Lifecycle start Hi! 👋 I'm https://Enola.dev 796a3b28. 👽 Resistance 👾 is futile. We are ONE. What's your goal, today?

java.io.UncheckedIOException: Failed to process 'globbed' IRI: file:models/{enola.dev,schema.org,purl.org,www.w3.org}/**.ttl
        at dev.enola.common.io.resource.stream.FileGlobResourceProvider.get(FileGlobResourceProvider.java:78)
        at dev.enola.common.io.resource.stream.GlobResourceProviders.get(GlobResourceProviders.java:37)
        at dev.enola.cli.CommandWithModel.run(CommandWithModel.java:99)
        at dev.enola.common.function.CheckedRunnable.call(CheckedRunnable.java:25)
        at dev.enola.common.function.CheckedRunnable.call(CheckedRunnable.java:22)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at dev.enola.cli.LoggingMixin.executionStrategy(LoggingMixin.java:68)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at dev.enola.cli.CLI.execute(CLI.java:78)
        at dev.enola.cli.EnolaCLI.main(EnolaCLI.java:70)
Caused by: java.nio.file.NoSuchFileException: models/{enola.dev,schema.org,purl.org,www.w3.org}
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
        at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:171)
        at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
        at java.base/java.nio.file.Files.readAttributes(Files.java:1853)
        at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:226)
        at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:277)
        at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:323)
        at java.base/java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:71)
        at java.base/java.nio.file.Files.walk(Files.java:3898)
        at java.base/java.nio.file.Files.walk(Files.java:3953)
        at dev.enola.common.io.resource.stream.FileGlobPathWalker.walk(FileGlobPathWalker.java:48)
        at dev.enola.common.io.resource.stream.FileGlobResourceProvider.get(FileGlobResourceProvider.java:68)
        ... 15 more

Note how in models/{enola.dev,schema.org,purl.org,www.w3.org} the trailing **.ttl got lost...

@vorburger vorburger self-assigned this Jun 28, 2024
@vorburger vorburger added the bug Something isn't working label Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant