Opened 16 years ago

Last modified 11 years ago

#259 closed defect

Parsing Failure on TestLcl.thy — at Version 2

Reported by: Graham Dutton Owned by: Graham Dutton
Priority: major Milestone:
Component: 1:pg-eclipse Keywords:
Cc:

Description (last modified by Graham Dutton)

Parsing a file with no trailing whitespace fails.

For example: TestLcl.thy in test repository fails at the final lines. PG parses the final two lines:

 end
end

as a single unit:

 end[newline]en

(where [newline] is an actual newline), discarding the final character.

A functionally identical file TestLocale.thy with trailing whitespace will not exhibit this behaviour.

Change History (3)

comment:1 Changed 16 years ago by Graham Dutton

This of course results in broken prover interaction:

PGIP:

<pgip tag="PG-Eclipse" class="pa" id="/grape//6129632130384117" seq="107"><closetheory>end
en</closetheory></pgip>

Response:

Outer syntax error: command expected,
but identifier en was found

comment:2 Changed 16 years ago by Graham Dutton

Description: modified (diff)
Owner: changed from David Aspinall to Graham Dutton
Status: newassigned

Actually appears to be an out-by-one error: can recreate on any thy file by trimming all trailing whitespace.

Changed 16 years ago by Graham Dutton

a partial solution: the line in question

Note: See TracTickets for help on using tickets.