curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1491] [Mantis 1527] Internal error when rulebook-scoped variable has unrecognized type #593

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : dfremont

Description :

Pretty self-explanatory - see the example below. Interestingly, Inform gives reasonable Problem messages when a thing or different kinds of value are used instead of a rulebook. Out of several things I tried, only rulebooks caused the internal error.

Steps to reproduce :

"Foo" by Bar.
Foo is a room. 
The instead rulebook has a and number called borp.

Additional information :

imported from: [Mantis 1527] Internal error when rulebook-scoped variable has unrecognized type
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T04:58:51+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by graham :
Fixed. Nothing to do with "and" - any unrecognised kind there would have produced the same. There's now a problem message for it.

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
Problem. An internal error has occurred: created variable without kind. The current sentence is 'The instead rulebook has a dfghdfg called borp' ; the error was detected at line 86 of "inform7/Chapter 10/Nonlocal Variables.w". This should never happen, and I am now halting in abject failure.

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by dfremont :
Actually, the problem seems to be that in the case of rulebook properties, Inform does not check that their kind makes sense. Replacing "a and number" with something like "a flubber" yields the same problem.