curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1734] [Mantis 1770] Mistyping a custom rule name gives a misleading error message #350

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : ASchultz

Description :

If the text in parentheses doesn't contain "rule" at the end, Inform throws an error that misled me for a bit. This was largely me flaking, but it would be nice to tweak if possible.

Inform indicates that the problem is in the text before the parentheses and not in the parentheses (e.g. bad rule name).

Steps to reproduce :

"rool" by Andrew Schultz

r1 is a room.

check examining when player is in r1 (this is the rule named improperly causes odd compiler error ruel):
    do nothing;

Additional information :

The error text is below.

Problem. You wrote 'check examining when player is in r1 (this is the run property checks at the start of play ruel)' : but I don't understand the 'when/while' clause, which should name activities or conditions.

Tested with 6G95 and 6L38.

imported from: [Mantis 1770] Mistyping a custom rule name gives a misleading error message
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T05:00:35+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

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

Comment by graham :
A human can see that "ruel" should be "rule", but it would be dangerous to let Inform try to make guesses like that. This is a reasonable problem message, I think.