curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-2033] [Mantis 2070] error in source text and indentation for "repeat with" causes compiler error 11 #51

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : jeremy

Description :

In the code below, I made the mistake of using "repeat" with a ; at the end and not indenting. My bad. This feels like it should be caught and returned with a normal error message, but instead it gives the "This should not happen even if your source text is gibberish, so you may have uncovered a bug in the program." error and reports compiler error 11.

Steps to reproduce :

Explaining is an action out of world applying to one topic.  Understand "explain [text]" as explaining.

Report explaining:
    let L be the topic understood;
    repeat with I running from 1 to the number of rows in the Table of Explanations;
    choose row I in the Table of Explanations;
    if there is a subject entry:
        if L is the subject entry:
            say "Explanation here."

Table of Explanations
subject (text)
"bug"

Additional information :

imported from: [Mantis 2070] error in source text and indentation for "repeat with" causes compiler error 11
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-10T04:18:39+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

61eedb62875fc10070240916:

https://github.com/ganelson/inform/commit/1987a347a8fb1a13a61542062a23c31dea1cc115

Comment by Graham Nelson:
There is now a friendly problem message, not an unfriendly crash.