Bug #4905
closedMessages over 1000 characters are truncated
100%
Description
If a node matches two very complex patterns, the ambiguity warning reporting the two patterns that are matched can exceed 1000 characters, but StandardDiagnostics.wordWrap truncates it to 1000. This is exactly the situation where you need to see exactly what went wrong. The unfortunate thing is that the information you really want is the line numbers of the two patterns, and this is the part that is lost; if we're going to truncate anything, it should be the pattern text.
Updated by Michael Kay about 3 years ago
As a step in the right direction, SimpleMode.showPattern()
should use pattern.toShortString()
rather than pattern.toString()
. I've made this change on the development branch.
Updated by Michael Kay about 3 years ago
- Status changed from New to Resolved
- Applies to branch 10, trunk added
- Fix Committed on Branch 10, trunk added
I have increased the max message length to 2000, and patterns are now displayed using toShortStriing()
, which abbreviates long namespace URIs etc.
Updated by O'Neil Delpratt almost 3 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 10.5 added
Bug fix applied to Saxon 10.5 maintenance release.
Please register to edit this issue