Project

Profile

Help

Bug #4905

closed

Messages over 1000 characters are truncated

Added by Michael Kay about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2021-02-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:

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.

Actions #1

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.

Actions #2

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.

Actions #3

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

Also available in: Atom PDF