-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POM Editor randomly report invalid errors (synchronisation issue?) #474
Comments
I am also having this issue. I am using this version (M2E - Maven Integration for Eclipse (includes Incubating components) 1.19.0.20211116-0804) I can recreate simply by converting an existing java project to the Maven nature. It will create a default pom.xml. If I then open up the pom.xml in Eclipse and paste in a couple of dependencies (apache commons, etc), I can save the file without issue. Then if I rebuild or update maven, after a while I will get this error. The pom.xml has been validated successfully using other XML editors. I have checked for control characters and found nothing. |
Indeed, it looks like either some events were not sent to the LemMinX language server, or that LemMinX failed at processing some of them. Can you please enable "log to file" for LemMinX in the preferences > Language Servers > Logs, and then share the end of this file whenever such sync issue happens? |
I don't know if I can share (work related stuff). The file is a JNLP file and I get this error:
Of course, the file is correct. I think in the case of POM it stick longer (I know that when you close all editor, normally the XML Language Server closes, but I do remember doing so last time I had the problem and it did not fix anything. |
Just to say the problem is still present in Eclipse 2024-12. |
I am using the latest Eclipse 2021.12 with "M2E - POM Editor using LemMinX language server (includes Incubating components) " 1.18.3.20211116-0804 on Windows 10.
When I edit an XML document, the editor triggers validation using Lemminx and there I have those kind of problems which randomly spawn.
The pom.xml is valid and there is errors in it using another XML editor (jedit, ...).
</pro ject>
), the previous errors stick.I activated the language server logs (I can't provide the pom.xml) and had this exception:
I don't think it is related, and it does not get reported in Eclipse error log.
The log entry after correspond to the two error that shows in the Problem view.
Notes
The text was updated successfully, but these errors were encountered: