ajaxorg/ace

XML Syntax Error Indication on a Wrong Line

Open

#3479 aperta il 11 dic 2017

Vedi su GitHub
 (11 commenti) (0 reazioni) (0 assegnatari)JavaScript (5252 fork)batch import
bugclosing-sooneffort/smallgood first issuep2

Metriche repository

Star
 (26.357 star)
Metriche merge PR
 (Merge medio 29g 17h) (4 PR mergiate in 30 g)

Descrizione

Tested Browsers / Devices

Windows 10

  • FAIL:
    • Chrome 63.0.3239.84
    • Edge 41.16299.15.0
    • IE 11
    • Firefox 57.0.1
  • OK: n/a

URL Minimal Example

https://ace.c9.io/build/kitchen-sink.html?doc=XML

Steps to Reproduce the Problem

  1. Open an XML document to edit
  2. Optional: If it's not already the case, separate a single-lined XML tag into multiple LOC
  3. Add a syntax error intentionally e.g. a character right after an attribute value: "..."s.

What Is the Expected Result?

ace editor xml expected error indication placement The error / warning indication is on the same line as where the error actually placed.

What Happens Instead?

ace editor xml wrong error indication placement

Any other information?

Even with an XML tag which has all the attributes in a single line, the indication is placed somewhere else which is weird. ace editor xml wrong error indication placement even with a single line I had a case where I made such a syntax error and didn't know where it was until I had to scroll down.

Guida contributor