-
Notifications
You must be signed in to change notification settings - Fork 4
Error: Unexpected close tag Line: 3 Column: 6 Char: > #48
Comments
I have tried to open you xml file with the same version and I get one marker with:
That looks like the expected output to me. Since the xml file is not wellformed the linter should / does not even trigger the sax parser ( linter-xmllint/lib/init.coffee Lines 53 to 56 in 899d212
Can you please run the following commands on your command line and post the output:
|
So I get a crash the moment i start typing a tag and no validation.
|
Your I don't have any better idea then the following to troubleshoot:
|
Here is the gist before I re-installed. https://gist.github.com/jgrodskiy-donlen/9c2c377557cec97dc68f I re-installed the linter package and the linter-xmlint package. Issue still persists. If you need some additional information, I can try doing some local investigation but no knowledge of coffeescript |
Yeah, since I can't reproduce it but it happens repeatably on your machine it would be great to try some debugging. My guess is that despite Please add the following debug statements (you can easily uninstall / reinstall the package afterwards):
Restart atom, edit your xml file as before and then open |
But what is the message count? Please make sure you put the debug message in the right line and be aware that the line numbers change when inserting the other message. |
Sorry, forgot to follow up. I see it go in to the method but not into the regex forEach. Here is what I added below to to mine.
|
Actually, |
Can you please try to remove the brackets around the newline matching part(
|
And that did it :-). Should it be validating against the schema also? Or just basic xml syntax. |
As long as the content is not well conformed it can only check for that. Simply because it requires valid xml to perform validation. Once it is well conformed xml it will also run the validation against the dtd / xsd/ relax / schematron. I created #49 with the patch described. |
Alright so going back to the schema I sent above. If you put tags It becomes a well-formed but not valid by the provided xsd standards. (You will have to change the location of the schema possibly to test locally). |
The fix is available in the new released version 1.3.3. Thanks for helping to debug this on Windows. |
Using a relative location for the schema (e.g. |
I get a marker behind the opening tag saying:
Have you installed the new version? Can you please try to add debug messages in the code to trace if the xsd validation is triggered, what the output is and then why no messages are matched? Some pointers to relevant locations are:
|
Follow up: #50. |
test_xml.zip
Atom Version: 1.5.3
System: Microsoft Windows 8.1 Enterprise
Thrown From: linter-xmllint package, v1.3.2
Stack Trace
Uncaught Error: Unexpected close tag
Line: 3
Column: 6
Char: >
The text was updated successfully, but these errors were encountered: