Project

Profile

Help

Bug #4905

Messages over 1000 characters are truncated

Added by Michael Kay 14 days ago. Updated 14 days ago.

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

0%

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

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.

History

#1 Updated by Michael Kay 14 days 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.

Please register to edit this issue

Also available in: Atom PDF