viash-io / viash

script + metadata = standalone component
https://viash.io
GNU General Public License v3.0
39 stars 2 forks source link

Spaces in path to config file results in java.net.URISyntaxException #32

Closed BlackDragonBE closed 2 years ago

BlackDragonBE commented 3 years ago

Error:

Exception in thread "main" java.net.URISyntaxException: Illegal character in path at index 34: file:///home/ericvdkerckhove/viash tests/hello_world/config.vsh.yaml
    at java.base/java.net.URI$Parser.fail(URI.java:2913)
    at java.base/java.net.URI$Parser.checkChars(URI.java:3084)
    at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3166)
    at java.base/java.net.URI$Parser.parse(URI.java:3114)
    at java.base/java.net.URI.<init>(URI.java:600)
    at com.dataintuitive.viash.helpers.IO$.uri(IO.scala:51)
    at com.dataintuitive.viash.config.Config$.read(Config.scala:71)
    at com.dataintuitive.viash.Main$.readConfig(Main.scala:87)
    at com.dataintuitive.viash.Main$.main(Main.scala:47)
    at com.dataintuitive.viash.Main.main(Main.scala)

Steps to reproduce:

  1. Copy the "hello world" example folder locally to a folder with a space in it: https://github.com/data-intuitive/viash_docs/tree/master/examples/hello_world
  2. Do a viash run targeting the config.vsh.yaml file. E.g.: viash run '/home/ericvdkerckhove/viash tests/hello_world/config.vsh.yaml'
Grifs commented 2 years ago

solved in v0.5.12