fabric-engine/JSSceneGraph — Issue #141: The source file containing errors is incorrectly reported
Author: pzion
Created: 2012-02-15 08:16:00+00:00
State: open

There are problems in the FabricOGL.kl source file, and yet I get the following output on the Javascript console:

Error compiling operator: viewPortBeginRender in FABRIC_ROOT/SG/KL/viewPortBeginRender.kl
File:FABRIC_ROOT/SG/KL/viewPortBeginRender.kl
77:1: error: integer constant out-of-range
874:1: error: integer constant out-of-range
1386:1: error: integer constant out-of-range
2399:1: error: integer constant out-of-range
2800:1: error: integer constant out-of-range

This is an awful bug. Telling the user the wrong filename for the line of an error is worse than not telling the user the filename name at all.

I know that the core reports the filename (or, rather, the "virtual filename" provided to the operator) along with the line and column of errors; it's possible that it is somehow returning the wrong filename, but I doubt it because I'm quite sure I've seen this working correctly elsewhere. It's probably a simple bug in the code that dumps the errors; I'm guessing that it's trying to be "too smart" but not prefixing each line with the filename as every other compiler does.