FHIR Chat · Run sushi on single file · shorthand

Stream: shorthand

Topic: Run sushi on single file


view this post on Zulip Marc de Graauw (Nov 19 2021 at 10:30):

Is there a way to run sushi on a single fsh file? The obvious sushi .\input\fsh\afishfile.fsh does not work, nor does sushi afishfile.fsh. When I'm debugging one sushi file, and the others still have errors, I'd prefer to tackle those one by one

view this post on Zulip Chris Moesel (Nov 19 2021 at 13:29):

Hi @Marc de Graauw -- no, there isn't really a way to do that. The trouble is that very often one file relies on definitions in other files. So unless your one file was completely standalone, you'd just end up with more errors related to all the things you rely on from other files. That said, we could consider adding a filter mechanism that allows you to filter logs based on a regular expression or filename or something like that. It would still process all the files but only show logs that match the filter you passed in (on the command line). Would something like that be useful?

If you really want to compile just one file, I think your best bet is to copy it to FSHOnline and run it there: https://fshschool.org/FSHOnline/#/

view this post on Zulip Marc de Graauw (Nov 19 2021 at 13:50):

Thanks @Chris Moesel, no the filter isn't necessary. I wasn't aware of Fish online though, nice


Last updated: Apr 12 2022 at 19:14 UTC