Stream: IG creation
Topic: macOS .DS_Store leads to Fatal error
Alexander Henket (Feb 07 2020 at 04:07):
macOS leaves a .DS_Store in any folder you enter with the Finder. This trips up the IG Publisher. Any way to ignore those files?
[Fatal Error] :1:1: Content is not allowed in prolog. Content is not allowed in prolog. at line 0 col 0 loading /Users/ahenket/Development/GitHub/Nictiz/sample-ig-master/input/examples/.DS_Store (00:19.0152) Error parsing JSON source: Unexpected char '' in json stream at Line 1 (path=[null]) loading /Users/ahenket/Development/GitHub/Nictiz/sample-ig-master/input/examples/.DS_Store (00:19.0155) Syntax Error parsing Turtle on line 1 col 2: unexpected lexer char loading /Users/ahenket/Development/GitHub/Nictiz/sample-ig-master/input/examples/.DS_Store (00:19.0162)
Grahame Grieve (Feb 07 2020 at 04:27):
I can't debug this - can you debug it - are these called from SimpleFetcher.fetch(path) ?
Alexander Henket (Feb 07 2020 at 05:02):
I don't have more out than this. Not sure how to debug this. Attached is a zipped folder with that file. Presumably unzipping that could lead to reproduction on your end? resources.zip
Rob Hausam (Feb 08 2020 at 13:23):
Have had the same issue - it's annoying, for sure.
Eric Haas (Feb 11 2020 at 00:12):
just scrub them in your bash script something like...
echo getting rid of .DS_Store files since they gum up the igpublisher.... find . -name '.DS_Store' -type f -delete
Grahame Grieve (Feb 11 2020 at 00:24):
well, I'm guessing, since I can't reproduce this, but I think the ig publisher will ignore them from now on
Rob Hausam (Feb 11 2020 at 05:36):
@Eric Haas Yes, that works, and is what I do - but you have to keep remembering to do it.
Alexander Henket (Feb 11 2020 at 12:17):
@Rob Hausam I added these lines to my genonce.sh until the fix is released:
echo Deleting .DS_Store files find . -name ".DS_Store" -delete
Jose Costa Teixeira (Feb 11 2020 at 12:44):
should this fix be on the template? Seems simpler - just adding these 2 lines to the .sh
Alexander Henket (Feb 11 2020 at 12:50):
Grahame sent word he already implemented a fix. Not sure if that fix was released yet
Eric Haas (Feb 11 2020 at 17:17):
The shell fix is easy. Bash is handy to clean up these things and a heck of a lot easier to fathom than some ant script.
Last updated: Apr 12 2022 at 19:14 UTC