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.

CodeAction for cvc-complex-type.2.4.b

See original GitHub issue

Given this XML file:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <servlet></servlet>
</web-app>

There is an error on servlet:

image

because servlet expects some content. It should be nice to provide a code action which generate the expected content.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fbriconcommented, Jul 20, 2022

@GitMensch can you please open 2 separate issues?

0reactions
GitMenschcommented, Jul 20, 2022

Done. Again: thanks for the feature - it already is helping, it just can be even better 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

cvc-complex-type-2-4-b - XMLdation Wiki
General description of the error: cvc-complex-type.2.4.b: The content of element ''{0}'' is not complete. One of ''{1}'' is expected.
Read more >
Fix CodeAction for `cvc-complex-type.2.4.a` to add ... - GitHub
The CodeAction and Diagnostic for the error is currently incorrect/unsupported, and should add the elementFormDefault="qualified" attribute to ...
Read more >
Exception: cvc-complex-type.2.4.b: The content of element ...
Iam new to XML and a learner. The error: Exception: cvc-complex-type.2.4.b: The content of element 'person' is not comple te.
Read more >
"cvc-complex-type.2.4.b" error - Oxygen XML Forum
there is a error: cvc-complex-type.2.4.b: The content of element 'root_a' is not complete. One of '{"http://a" ...
Read more >
0.21.0 | projects.eclipse.org
CodeAction for cvc-complex -type.2.4.b. ... Code action for SemicolonRequiredInReference . ... Incorrect error range for cvc-identity-constraint.4.1 .
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