POM XML formatter sometimes gets confused with normal XML and hallucinates errors
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
Comece reproduzindo o problema no Eclipse EE 2023-06 com Java 17 no Windows 10, usando um POM existente e a sequência de edição descrita. Inspecione o comportamento de formatação e validação do POM do novo editor XML; considera-se concluído quando o POM inalterado ou editado corretamente não exibir mais os erros espúrios de análise e conteúdo de elemento.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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!
- Linguagem predominante
- Java
- Estrelas
- 203
- Forks
- 76
- Merge médio
- 1d 5h
- PRs com merge (30d)
- 30
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de eclipse-wildwebdeveloper/wildwebdeveloper
-
Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a spaceTalvez já em andamento @RoiSoleil assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
eclipse-wildwebdeveloper/wildwebdeveloper#2277 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
eclipse-wildwebdeveloper/wildwebdeveloper#2236 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
eclipse-wildwebdeveloper/wildwebdeveloper#2177 ·
Mantenedores costumam responder em até 1 dia
-
SQL Language serverAbertaenhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
eclipse-wildwebdeveloper/wildwebdeveloper#2122 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Support for marko languageAbertaenhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
eclipse-wildwebdeveloper/wildwebdeveloper#2070 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de eclipse-wildwebdeveloper/wildwebdeveloper
Issues semelhantes
-
面渣逆袭Spring事务传播机制勘误Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 80/100
itwanger/toBeBetterJavaer#218 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
johanhaleby/occurrent#1462 ·
Mantenedores costumam responder em até 1 dia
-
Enhancing the Issue TemplateAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
SasanLabs/VulnerableApp#912 ·
Mantenedores costumam responder em até 1 dia
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Apicurio/apicurio-registry#11079 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
OpenAEV-Platform/openaev#9139 ·
Mantenedores costumam responder em até 1 dia