Project

Profile

Help

Bug #5407

closed

XX compiler outputs its own location on an error

Added by Michael Kay almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XX compiler
Sprint/Milestone:
-
Start date:
2022-03-18
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2, Trunk
Fix Committed on JS Branch:
2, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

When the XX compiler detects an error, typical output might be

Compiling stylesheet /Users/mike/GitHub/saxon-js-enterprise/src/test/testdriver/testdriverNodeJS.xsl
Failed to compile stylesheet: No binding for variable Q{}message-level
Error XPST0008 at static.xsl#1057
    Failed to compile stylesheet:
Error XPST0008 at static.xsl#1057
    No binding for variable Q{}message-level

Several problems here:

(a) there's no indication of where we are in the stylesheet being compiled

(b) We don't need to know the location in the compiler where the error was detected (static.xsl#1057)

(c) We certainly don't need to be told twice.

Note: the actual error was a static variable being referenced before the declaration.

Please register to edit this issue

Also available in: Atom PDF Tracking page