Stream: shorthand
Topic: invalid path to FSH definition folder
Nathan Davis (Sep 25 2020 at 19:26):
I'm getting an error when I run sushi _genonce . It states "Invalid path to FSH definition folder". When I run sushi without the _genonce everything is fine; no errors no warnings. How do I fix this error? Thx
Chris Moesel (Sep 25 2020 at 19:30):
That seems... odd. Are your fish files in a fsh
subfolder at the root of the project?
Nathan Davis (Sep 25 2020 at 19:31):
Yes, they are. Another weird thing, I get the sane error when I try _updatePublisher.
Nathan Davis (Sep 25 2020 at 19:31):
same error
Chris Moesel (Sep 25 2020 at 19:32):
But _updatePublisher
shouldn't even be looking for fsh files...
Nathan Davis (Sep 25 2020 at 19:32):
I know
Nathan Davis (Sep 25 2020 at 19:32):
Like I said, weird.
Nathan Davis (Sep 25 2020 at 19:34):
If you want to see the repo it's at https://github.com/HL7/cimi-pain-assessment
Chris Moesel (Sep 25 2020 at 19:35):
I'm looking at the code that produces that error in SUSHI... I can't see any obvious reasons that error would be triggered. Basically it look's like it's only triggered if SUSHI has trouble accessing the file or folders at the input path. No weird file permissions, symlinks, or anything like that, right? Do you know if your files are encoded with something that's not UTF8?
Nathan Davis (Sep 25 2020 at 19:36):
no weird permissions. I'll have to check the encoding but I'm pretty sure it's UTF8.
Chris Moesel (Sep 25 2020 at 19:37):
I can take a quick look at that repo, but honestly, don't have a lot of time to look at it right this moment.
Nathan Davis (Sep 25 2020 at 19:38):
No big hurry. I do need to have a working IG in a couple of weeks tho. Thank you!
Chris Moesel (Sep 25 2020 at 19:42):
So I just did a fresh clone of the repo and was able to run _updatePublisher
and _genonce
successfully. OK, not 100% successfully. _genonce
crashed when trying to load a template -- but it definitely got past the SUSHI/FSH part.
Nathan Davis (Sep 25 2020 at 19:43):
Ugh. That means it's something local for me. Now to figure it out. Thanks!
Chris Moesel (Sep 25 2020 at 19:43):
I noticed you don't have _updatePublisher
or _genonce
checked in. Are you running those from the root of your project? (i.e., the parent folder of fsh
)?
Nathan Davis (Sep 25 2020 at 19:45):
Well, that's the issue then. Are these .bat files (or similar)? There isn't anything in the setup documentation about these on the FSHSchool.org site
Chris Moesel (Sep 25 2020 at 19:48):
I'm looking at the docs now. We actually say a little something about it, but the way we say it is actually kind of misleading: https://fshschool.org/docs/sushi/running/#downloading-the-ig-publisher
Chris Moesel (Sep 25 2020 at 19:50):
It says to put them in "the output directory that SUSHI writes to" -- which in your case is actually the root folder (which I think is a little confusing).
Chris Moesel (Sep 25 2020 at 19:50):
Just to ensure I understand, it sounds like you were running sushi _updatePublisher
and sushi _genonce
? If so, that would explain it.
Chris Moesel (Sep 25 2020 at 19:51):
Sorry that it's not as clear as it should be.
Chris Moesel (Sep 25 2020 at 19:52):
For future reference, if you run sushi --init
to start a project, then it will create a boilerplate project for you with these files in it. But I think maybe you should just download them from the sample-ig for now, because I think the files packaged in SUSHI are not the latest versions. (This is something we're fixing in the next version of SUSHI).
Nathan Davis (Sep 25 2020 at 19:54):
No worries. This is very helpful! I overlooked downloading the publisher since I already have it for other, non-FSH IGs that I edit. I didn't realize the download included all of those other files.
Chris Moesel (Sep 25 2020 at 19:56):
If you already have your own way of running the publisher, then you can use that. _updatePublisher
and _genonce
scripts are mainly conveniences that were developed as part of the new template-based publishing effort. But under the hood, _genonce
is just running the publisher jar.
Nathan Davis (Sep 25 2020 at 19:58):
Okay. Thank you for your help! I'll work on getting all of the files I need and let you know how it goes.
Nathan Davis (Sep 29 2020 at 15:14):
@Chris Moesel Thank you for your help last week. I now have things working.
Chris Moesel (Sep 29 2020 at 15:34):
Excellent!
Last updated: Apr 12 2022 at 19:14 UTC