Doesn't provide correct completion suggestion for web.xml
See original GitHub issueGiven the following web.xml file with the content
<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
</web-app>
I don’t get the full set of element completions for web-app schema with lemminx editor, even though the correct completions are shown in old Web Tools xml editor in Eclipse
Issue Analytics
- State:
- Created a year ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Content assist in web.xml - java - Stack Overflow
xml, just the XML editor whose content assist is driven by the schema. This means no content assist for Java type values. There...
Read more >Code assist not working in XML file · Issue #415 - GitHub
So, it seems like some kind of triggering is performed, but 0 completions are returned. In fact, I get no suggestions at all...
Read more >Using XML Schema for code autocomplete in editor?
Hi,. it would be great if I could somehow have an autocomplete function for my XML tags, attributes etc. using the schema in...
Read more >Web Projects - Genuitec
Web project structure and preferences; Web development productivity tools; JSP code completion and validation. This feature is available in MyEclipse. Download ...
Read more >DTD based code XML completion not working properly.
Steps: 1. Open an XML file that uses DTD based completion in the editor (sun-???.xml, web.xml for Servlet 2.3 only, any struts xml...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

As a workaround, you can copy the contents of https://www.jboss.org/j2ee/schema/j2ee_web_services_client_1_1.xsd into your ~/.lemminx/cache/http/www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd
@angelozerr told you we needed to embed a cached catalog 😉
I close this issue because the issue should be fixed (completion should work now) when lemminx uses the WTP XML catalog. This issue should be fixed with https://github.com/eclipse/lemminx/issues/1199.
When XML catalog is not used there are a problem with some download (it is for some web-app XSD version). I created the issue for taht at https://github.com/eclipse/lemminx/issues/1207