Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001205Core InformSource text and punctuationpublic2014-03-19 11:492014-05-07 07:33
ReporterASchultz 
Assigned Tograham 
PrioritylowSeveritycosmeticReproducibilityalways
StatusclosedResolutionfixed 
Platformx86OSWindowsOS Version7
Product Version6G60 
Target VersionFixed in Version6L02 
Summary0001205: Inform detects [] but points to the wrong error line
DescriptionI had a list that contained text with "[]..." and compiled. The game pointed to an 'understand' line of code as the culprit and not the list. The full text is below.

You wrote 'understand "twiddle [any thing]" as twiddling' : but the text here contains an empty substitution '[]', which is not allowed. To say nothing - well, say nothing.
 
Minimal Source Text To Reproduce
"twiddle" by Andrew Schultz

room 1 is a room.

twiddling is an action applying to one visible thing.

understand "twiddle [any thing]" as twiddling.

greetings is a list of text variable. greetings is { "[]'Sup, dawg?", "[']Tis a fine day." 
}

carry out twiddling:
	say "Test.";
TagsNo tags attached.
Effect(cosmetic) Error message is badly worded
Attached Files

- Relationships

-  Notes
(0002577)
zarf (developer)
2014-03-19 12:56

Confirmed.

You can reduce the test case down to

The Kitchen is a room.
G is a list of text variable. G is { "[]" }.

Then the problem message comes out as

You wrote 'Understand "switch [something switched on]" as switching off' : but the text here contains an empty substitution '[]', which is not allowed.

(The last Understand line, I guess.)
(0002578)
graham (administrator)
2014-03-19 14:32

The overhaul of Inform's handling of text seems to have fixed this; it now refers to the correct line.

- Issue History
Date Modified Username Field Change
2014-03-19 11:49 ASchultz New Issue
2014-03-19 12:56 zarf Note Added: 0002577
2014-03-19 12:56 zarf Status new => confirmed
2014-03-19 14:33 graham Note Added: 0002578
2014-03-19 14:33 graham Status confirmed => resolved
2014-03-19 14:33 graham Resolution open => fixed
2014-03-19 14:33 graham Assigned To => graham
2014-05-07 07:32 jmcgrew Fixed in Version => 6L02
2014-05-07 07:33 jmcgrew Status resolved => closed


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker