viash-io / viash

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

[BUG] Unclear assertion error from viash config file #674

Closed KaiWaldrant closed 7 months ago

KaiWaldrant commented 7 months ago

What happened?

An assertion error was given but it was unclear what the problem was.

After some investigation it was clear that the '' was causing the assertion error. changing these to "" fixed the error.

Steps to reproduce

Contents of config.vsh.yaml:

platforms:
  - type: docker
    image: ghcr.io/openproblems-bio/base_r:1.0.3
    setup:
      - type: apt
        packages: cmake
      - type: r
        cran: rliger
        script:
        - install.packages('RcppPlanc', repos = c(linux = 'https://welch-lab.r-universe.dev/bin/linux/jammy/4.3', sources = 'https://welch-lab.r-universe.dev', cran = https://cloud.r-project.org'))

Expected behavior

Output the reason why the assertion occured

Relevant log output

viash: Error parsing, invalid Viash Config content in file 'file:/home/kai/Documents/openproblems/openproblems-v2/src/tasks/batch_integration/methods/liger/config.vsh.yaml'.
Details:
assertion failed

Version

Possible solution

No response

Confirmation

Additional context

No response

Grifs commented 7 months ago

Fill be improved in Viash 0.9