When I compile my work in progress, I’m receiving the following error sporadically:
Can’t open index file
Offending filename: <C:…\Inform\Projects\Five and Five.inform\Index\Details\0_A.html>
Compiler finished with code 2
After receiving this error, when I try to compile the project a second time, it works just fine.
I’m also observing a failure of “say”, which is causing me some serious debug headaches. The chunk of code in question is as follows:
(I’m not sure how to get the tabs to work here. My apologies. I hope it’s legible anyway.)
Z1 is a room.
An contextual memory is a kind of thing.
50 contextual memories are in Z1.
When play begins:
prepare contextual memories.
To prepare contextual memories:
say “Preparing contextual memories.”;
say “Step 1”;
say “Step 2”;
repeat with target memory running through the contextual memories:
say “Step 3”;
let M be 1;
while M is 1:
say “Step 4”;
say “Step 5.”
This is word for word from my current work in progress. When I run it outside my work in progress, it prints
Preparing contextual memories.
Step 1Step 2Step 3Step 4Step 4Step 4Step 4Step 4Step 4Step 4…
just as I would expect.
In my current work in progress, this outputs “Preparing contextual memories.” and stops there without printing Step 1, Step 2, Step 3, or Step 4… Trying to hack down the source code to the point where I can get this exact behavior is proving very difficult - I think the error has something to do with the size of the source code. I suspect I have a MAX_SOMETHINGOROTHER too low, but without an error message to tell me what to increase, I’m stuck.
Does anyone have recommendations for how I could fix (or at least better debug) these two behaviors?