Stream: shorthand
Topic: sushi beta error
Eric Haas (Oct 19 2020 at 18:45):
I get this error that shuts down my bash script prematurely...
=================================================================
start sushi ......................................................
info Running SUSHI v1.0.0-beta.2 (implements FHIR Shorthand specification v1.0.0)
info Arguments:
info --out /Users/ehaas/Documents/FHIR/US-Core-R4
info /Users/ehaas/Documents/FHIR/US-Core-R4/fsh
info Using configuration file: /Users/ehaas/Documents/FHIR/US-Core-R4/sushi-config.yaml
info Importing FSH text...
info Preprocessed 1 documents with 0 aliases.
info Imported 0 definitions and 0 instances.
info Checking local cache for hl7.fhir.r4.core#4.0.1...
info Found hl7.fhir.r4.core#4.0.1 in local cache.
info Loaded package hl7.fhir.r4.core#4.0.1
error Invalid file detected in directory input/resources. Input FHIR definitions must be JSON or XML.
error Invalid file detected in directory input/examples. Input FHIR definitions must be JSON or XML.
info Converting FSH to FHIR resources...
info Exporting FHIR resources as JSON...
info Exported 0 FHIR resources as JSON.
info Assembling Implementation Guide sources...
info Generated ImplementationGuide-hl7.fhir.us.core.json
info Assembled Implementation Guide sources; ready for IG Publisher.
info The sample-ig located at https://github.com/FHIR/sample-ig contains scripts useful for downloading and running the IG Publisher.
╔════════════════════════ SUSHI RESULTS ══════════════════════════╗
║ ╭──────────┬────────────┬───────────┬─────────────┬───────────╮ ║
║ │ Profiles │ Extensions │ ValueSets │ CodeSystems │ Instances │ ║
║ ├──────────┼────────────┼───────────┼─────────────┼───────────┤ ║
║ │ 0 │ 0 │ 0 │ 0 │ 0 │ ║
║ ╰──────────┴────────────┴───────────┴─────────────┴───────────╯ ║
║ ║
╠═════════════════════════════════════════════════════════════════╣
║ Something went eely wrong there. 2 Errors 0 Warnings ║
╚═════════════════════════════════════════════════════════════════╝
ERICS-AIR-2:US-Core-R4 ehaas$
David Pyke (Oct 19 2020 at 18:47):
The error message is straightforward. Only JSON or XML files can be in those directories.
Eric Haas (Oct 19 2020 at 18:47):
Is the a way to turn it off? I have README.md files in these folders as well as subfolders with source files in other formats
Eric Haas (Oct 19 2020 at 18:47):
@DavidPyke That is not needed for Sushi
Eric Haas (Oct 19 2020 at 18:48):
And I am able to manage these files just fine without being told what they are.
Eric Haas (Oct 19 2020 at 18:49):
It is a minor annoyance and I think unnecessary for sushi
David Pyke (Oct 19 2020 at 18:50):
I would agree @Chris Moesel ?
Chris Moesel (Oct 19 2020 at 19:06):
Yes, I agree. In hindsight, that seems a bit over-prescriptive for SUSHI. At one point, I think it made more sense -- but things have evolved since then and it is probably no longer appropriate. Thanks for reporting it -- we'll try to fix it for beta.3.
Chris Moesel (Oct 19 2020 at 19:08):
Thanks for working through these issue w/ us, @Eric Haas. I apologize for the inconvenience to you, but thank you for helping us make SUSHI/FSH better.
Last updated: Apr 12 2022 at 19:14 UTC