impossible fromPrimitiveWithAssert(<null>) in some cases when attempting to readall from a nonexistant file; repro attached #1650
Labels
bug
Weird outcome is probably not what the mod programmer expected.
Invoking the attached script with:
yields:
Both the full output_log and a stripped down version are attached; search for
--MARK--
to find the correct location.The ultimate cause appears to be on line 446:
LOCAL data IS vol:open(file):readall().
when
file
does not exist.It looks like it may be reducible to a one-liner, but not always:
Also, I'm fully aware that the sample .ks attached is a) ridiculous and b) buggy. a) is half the reason for doing it. (Why not implement a kOS parser/dependency scanner/code optimizer/minifier/installer in... kOS)
The text was updated successfully, but these errors were encountered: