broadinstitute / wdl-ide

Rich IDE support for Workflow Description Language
BSD 3-Clause "New" or "Revised" License
40 stars 8 forks source link

`Object` type not support now (v0.0.77) #20

Closed songmingl closed 2 years ago

songmingl commented 2 years ago

Hello, nice work! but a small question. I'm coding under v1.0 specification, but it seems that currently Object type is not supported. image Is it or just something went wrong with me?

dinvlad commented 2 years ago

We rely on MiniWDL for WDL parsing, so I'd recommend checking with them if it's supported now or not. I remember this came up a while ago as not supported, but worth checking again. I haven't updated MiniWDL dependency in a while, so if it improved support let me know.

For now though, I'd recommend switching to a custom type instead of a generic Object, if you have control over this WDL. IIRC the WDL developers wanted to phase out Objects in favor of those in the next spec.

songmingl commented 2 years ago

Thanks for your reply. I use Object since I want to read a tsv file, but I just found another way:

Arraay[Map[String, String]] sampleArray = read_objects(sampleList)

This works fine!