You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CreateParser.create() methods in Parser.scala all take a string file path, which doesn't work for a resource file in the jar. Would be nice to have version(s) that took a URL, Source, or Stream.
Library version:
1.0.0
Expected behavior:
that I can call CreateParser[IO].create(resource) with a resource from a jar.
Actual behavior:
Right now they all take a string representing a file path, which gives a FileNotFound exception if you pass in the path of a resource, since it's inside the jar.
you get a FileNotFound exception. I can read the file successfully using normal Java file read operations if I use the URL or a stream from getResourceAsStream, but I can't read from the path itself, since it's not a normal file system path.
The text was updated successfully, but these errors were encountered:
The
CreateParser.create()
methods in Parser.scala all take a string file path, which doesn't work for a resource file in the jar. Would be nice to have version(s) that took a URL, Source, or Stream.Library version:
1.0.0
Expected behavior:
that I can call
CreateParser[IO].create(resource)
with a resource from a jar.Actual behavior:
Right now they all take a string representing a file path, which gives a FileNotFound exception if you pass in the path of a resource, since it's inside the jar.
Steps to reproduce:
referers.json
into your project's resourcesCreateParser[Id].create(getClass.getResource("/referers.json").getPath)
you get a FileNotFound exception. I can read the file successfully using normal Java file read operations if I use the URL or a stream from getResourceAsStream, but I can't read from the path itself, since it's not a normal file system path.
The text was updated successfully, but these errors were encountered: