POM XML formatter sometimes gets confused with normal XML and hallucinates errors
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne damit, das Problem in Eclipse EE 2023-06 mit Java 17 unter Windows 10 anhand eines vorhandenen POM und der beschriebenen Bearbeitungssequenz nachzustellen. Untersuche das Formatierungs- und Validierungsverhalten des POM im neuen XML-Editor; abgeschlossen ist die Untersuchung, wenn das unveränderte oder korrekt bearbeitete POM die fälschlicherweise angezeigten Parse- und Element-Content-Fehler nicht mehr zeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I'm using Eclipse EE 2023-06 with Java 17 on Windows 10.
Sometimes when I'm editing a POM, the new XML editor will get confused and show an error. The error will look like this:
Multiple markers at this line
- Non-parseable POM …/pom.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</dependency>\r\n\r\n\r\n:\r\n\r\n\t\t\t<d... @120:6)
- Element 'dependencies' cannot contain text content.
The content type is defined as element-only.
Code:
(That's all. Really. There is nothing after "Code:".)
However there is no problem in the XML file. It looks like this. (Note that I am indenting using tabs.)
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>12.2</version>
</dependency>
The error is shown on the first e of <dependency>.
This happens when I open an existing pom and do something like this:
- Paste some string, such as the artifact coordinates, on an empty line so I can use it later.
- Copy a
<dependency>section from above. - Edit the pasted section with the new coordinates.
- Delete the temporary line I added.
If I close the file and reopen it, the same error appears, but a different line is indicated; now it indicates the v of <version>.
If I delete the entire <dependency> section, then the error jumps to the section after that.
Arg, now I even did a Git "replace with HEAD" to remove all changes. When I close the file there is no error. When I open the file, it there's there is this imaginary error. Now even with the file I started with (which showed no errors) before making any changes!
Wow the only way I found around this was to exit Eclipse completely, come back in, and paste the entire section you see above. No typing allowed, because one never knows when it will start seeing imaginary errors again!
- Vorherrschende Sprache
- Java
- Sterne
- 201
- Forks
- 76
- Ø Merge
- 4 T. 7 Std.
- Gemergte PRs (30 T.)
- 21
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus eclipse-wildwebdeveloper/wildwebdeveloper
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
-
SQL Language server Offenenhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
eclipse-wildwebdeveloper/wildwebdeveloper#2122 · 2 Kommentare ·
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
eclipse-wildwebdeveloper/wildwebdeveloper#2070 · 1 Kommentar ·
-
ESLintLanguageServer and JSTSLanguageServer do not support node memory limits (--max-old-space-size) Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
eclipse-wildwebdeveloper/wildwebdeveloper#2027 · 2 Kommentare ·
-
Renaming a variable leads to entire contents of the file editor being replaced with one word- Error Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
eclipse-wildwebdeveloper/wildwebdeveloper#1974 · 5 Kommentare ·
Alle Issues in eclipse-wildwebdeveloper/wildwebdeveloper
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
bug needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 94/100
objectionary/hone-maven-plugin#1061 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
spring-projects/spring-modulith#1895 ·