question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't provide correct completion suggestion for web.xml

See original GitHub issue

Given 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:closed
  • Created a year ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
fbriconcommented, Apr 22, 2022

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 😉

0reactions
angelozerrcommented, Jun 2, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found