-
Notifications
You must be signed in to change notification settings - Fork 431
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
Could not load main pom file content, see example #2325
Comments
I can't reproduce the issue. |
Just tried, I can sometimes reproduce this issue with a simple spring boot project. On opening vscode, symbols are correctly shown, and during Java extension activation, it triggered a refresh of the Outline view, and sometimes it keeps loading forever. But I'm wondering which extension provides this "outline" view of pom.xml. @zhouxinghong Do you also have XML extension installed? |
This outline is filled by vscode-xml (with LSP). The issue is for vscode-xml or LemMinX. Badly I cannot reproduce it with spring boot sample -( @zhouxinghong could you enable xml trace https://github.com/redhat-developer/vscode-xml/blob/master/docs/Troubleshooting.md#no-support-on-xml-file and share your trace please |
@zhouxinghong as I explained you I cannot reproduce it with your sample project. So please share your trace in order to I try and guess the problem. |
@snjeza @Eskibear is there any chance that you share trace please https://github.com/redhat-developer/vscode-xml/blob/master/docs/Troubleshooting.md#no-support-on-xml-file |
@angelozerr I can't reproduce the issue on Fedora 35 and Windows 10 project https://github.com/redhat-developer/vscode-java/files/8105487/myspringboot.zip |
@snjeza thanks for your feedback. I have the similar trace than you, in other words I cannot reproduce it.
it seems it's easy for you to reproduce it, so @zhouxinghong please share your trace. |
I managed to reproduce it, and sometimes another "no symbols found in document" error also occurs, as below: xml-outline.mp4Corresponding logs attached below, where I don't see any problem, as documentSymbols responses are correctly received. You can see in above video, at first the symbols are there in outline view. Once Java language server was ready, the outline was cleared. BTW, if I've installed Java Extension Pack and Spring Extension Pack. If I disable vscode-java and all its dependencies, the problem is gone. I'm thinking the culprit might be some conflicts between one of the Java extensions and the XML extension? Who else also contributes to outline view for .xml files? |
cc @jdneo @CsCherrYY see if Project Manager for Java has any relationship with it. |
I tried re-enabling those extensions one by one (Java Extension, Project Manager, Spring Boot Tools), and after Spring Boot Tools extension is enabled, the problem is back. And I find if you are patient enough to wait longer time, like 1 min, the symbols would eventually show in outline view. AFAIK, Spring Boot Tools also provides outline information. I'm wondering if it's because both extension has outline provider, but for pom.xml Spring extension's request is stuck on somewhere, and vscode only render the view after Spring extension's request is timeout. I'll invite @BoykoAlex to take a look. |
@Eskibear thanks so much for your feedback. After installing Spring Boot Tools, I can reproduce the problem easily. As you said, the XML support provides the proper symbols. I have the impression that Spring Boot Tools contribute to the LSP Outline with symbols. Here my Spring trace:
I have several exception with :
I supsect it's the problem. I have the impression that Spring Boot Toos compute symbols on background and when it try to get symbols for the pom.xml file it throw an error. But this error is for any XML file. You can create a @BoykoAlex hope my feedback will help you to discover the problem.
https://github.com/redhat-developer/vscode-xml/blob/master/docs/Troubleshooting.md#no-support-on-xml-file cannot help you? If you need some other informations please tell me and I will update the doc. |
@angelozerr I have pushed 3f6e23ae5a7b06e7fb1ecdf79eff3ab2d5df8cc4 - should help with this issue |
Closing as it's a Spring Boot Tools issue, nothing else to do here. |
Deprecated. . .
The text was updated successfully, but these errors were encountered: