-
Notifications
You must be signed in to change notification settings - Fork 82
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
Extension is not running and validating .xml file #856
Comments
I cannot reproduce it It seems that it is a problem from https://github.com/eclipse/lsp4j We need to investigate how we can reproduce this issue. |
We could make video call ? |
Could you share your xml trace please. See https://github.com/redhat-developer/vscode-xml/blob/main/docs/Troubleshooting.md#no-support-on-xml-file |
I don't know if it is related to your path Could you please copy/paste your |
Assuming you're able to hit this issue consistently, @MarcelGeo , can you try the following to see if it resolves the issue : Under settings, for |
Thanks for answers. I will try it on monday. |
@angelozerr Moving file to C caused the same error: [Error - 8:51:19] jan 16, 2023 08:51:19 org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireError() " " @rgrunber The same error after changing vmargs to: "xml.server.vmargs": "-Xmx128M -Xlog:disable" This is initial log for XML extension after open first XML file (maybe this will be problem): [Info - 8:56:08] jan 16, 2023 08:56:08 org.eclipse.lemminx.XMLLanguageServer initialize()
|
Could you try to force use of binary with adding in your settings.json |
Could you share your trace server please by activating binary. Thanks |
Could you share your settings.json please. Thanks |
Could you create a simple xml like <foo It should show you an error. |
One thing I noticed is that your @angelozerr seems this is kind of similar to eclipse-lsp4j/lsp4j#616 ? |
Hi guys. I dont now. After update VSCode to version 1.74.3 problem is NOT OCCURED . Sorry for your time. |
Hi @MarcelGeo Glad to see that your issue is fixed now by updating vscode. I suspect that it was problem with encoding, but now if it is working, that's great. Hope you will enjoy with vscode-xml. |
I'm not really seeing anything in microsoft/vscode@1.74.2...1.74.3 that would have fixed this :\ but perhaps it's some kind of encoding issue on the client side ? Also see microsoft/vscode-languageserver-node#917 . |
VSCODE:
version: 1.74.2
EXTENSION:
version: 0.23.0
Error:
[Error - 13:01:35] jan 12, 2023 01:01:35 org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireError()
Message: Missing header Content-Length in input "{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"file:///c%3A/Users/marcel.kocisek/OneDrive%20-%20stengl%20a.s/Documents/Reporting2018/fhrm.xml","version":6},"contentChanges":[{"range":{"start":{"line":4,"character":20},"end":{"line":5,"character":4}},"rangeLength":6,"text":""}]}}Content-Length: 180
"
java.lang.IllegalStateException: Missing header Content-Length in input "{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"file:///c%3A/Users/marcel.kocisek/OneDrive%20-%20stengl%20a.s/Documents/Reporting2018/fhrm.xml","version":6},"contentChanges":[{"range":{"start":{"line":4,"character":20},"end":{"line":5,"character":4}},"rangeLength":6,"text":""}]}}Content-Length: 180
"
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:91)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
File:
The text was updated successfully, but these errors were encountered: