#9752 closed defect (worksforme)
Loading of JOSM cryptic preset debug/error message
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | Cc: |
Description
During loading of JOSM, I get this error message, obviously something not right in a home-made preset, but I can't identify what is wrong, so I don't know what to search for, the file is more than 6000 lines, so without a more understandable error message it is like searching for a needle in a haystack
(would be an improvement if debugging messages for presets and map paints gave a line number for the error)
Attachments (1)
Change History (4)
by , 11 years ago
Attachment: | JOSM Error.png added |
---|
comment:1 by , 11 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
There's a "&B" somewhere in the XML file. You probably want to write "&B". See http://en.m.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references for details.
comment:2 by , 11 years ago
If the error message had given me a line number I would have found it by myself, "&B" didn't say me much by itself, but had I gotten the line number than I would have realised the error very easily. I had other (though more searchable) errors as well, such as keyword without =
I don't think adding line number to error messages would be too difficult to code - should be put on a todo list (some errors handle it already)
comment:3 by , 11 years ago
It is more difficult than you think as parsing errors are raised by Java's parser and we have no control on error messages contents. Entities are an important notion in HTML/XML. Everyone writing XML should know about them.
JOSM error message