curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1943] [Mantis 1979] Phrase definition with numbers bracketing colon rejected #141

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : dfremont

Description :

A phrase definition with numbers on both sides of the colon leads to the generic "can't find a verb" error.

Presumably this has the same underlying cause as #0000110. The issue is so easy to work around, and unlikely to come up in the first place, that it's probably fine if this code is declared illegal. But if so, it would be helpful for the Problem message to make a more specific suggestion when the sentence includes something of the form "N: M".

Steps to reproduce :

Foo is a room.
To (X - a number) be praised!: say X.
To recite a hymn to 3: 3 be praised!

Additional information :

The Problem message:

Problem. In the sentence 'To recite a hymn to 3: 3 be praised !' , I can't find a verb that I know how to deal with.

imported from: [Mantis 1979] Phrase definition with numbers bracketing colon rejected
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-12T08:39:38+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

61eedb62875fc10070240916:

FIxed via this commit: https://github.com/ganelson/inform/commit/76ae1a9083216ae87fd93c28c60aa7f2af3a2a22

Comment by Graham Nelson:

It's actually working correctly, but the problem message could be a lot more helpful about why and what to do about it. There's now a special-case problem message for this.