POM XML formatter sometimes gets confused with normal XML and hallucinates errors
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự cố trong Eclipse EE 2023-06 với Java 17 trên Windows 10, sử dụng một POM hiện có và chuỗi thao tác chỉnh sửa được mô tả. Kiểm tra hành vi định dạng và xác thực POM của trình soạn thảo XML mới; hoàn tất khi POM không thay đổi hoặc được chỉnh sửa đúng cách không còn hiển thị các lỗi parse và element-content giả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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!
- Ngôn ngữ chính
- Java
- Star
- 203
- Fork
- 76
- Merge trung bình
- 1 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 30
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-wildwebdeveloper/wildwebdeveloper
-
Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a spaceCó thể đã có người làm @RoiSoleil đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
eclipse-wildwebdeveloper/wildwebdeveloper#2277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
eclipse-wildwebdeveloper/wildwebdeveloper#2236 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
eclipse-wildwebdeveloper/wildwebdeveloper#2177 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SQL Language serverĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
eclipse-wildwebdeveloper/wildwebdeveloper#2122 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support for marko languageĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
eclipse-wildwebdeveloper/wildwebdeveloper#2070 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-wildwebdeveloper/wildwebdeveloper
Issue tương tự
-
面渣逆袭Spring事务传播机制勘误Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
itwanger/toBeBetterJavaer#218 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
johanhaleby/occurrent#1462 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enhancing the Issue TemplateĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
SasanLabs/VulnerableApp#912 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Apicurio/apicurio-registry#11079 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
OpenAEV-Platform/openaev#9139 ·
Maintainer thường phản hồi trong vòng 1 ngày