redhat-developer / redhat-developer/vscode-xml

The XML language server crashed 5 times in the last 10 minutes. The server will not be restarted.

Open
#1,067 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
328
Forks
101
Avg merge
1d 17h
Merged PRs (30d)
7

Description

The XML language server crashed 5 times in the last 10 minutes. The server will not be restarted.

As mentioned in the title I keep getting these notification errors while using the extension.

The XML language server crashed 5 times in the last 10 minutes. The server will not be restarted.
Connection to server got closed. Server will not be restarted.

Also this is what shows up in the output for extension host:

2025-03-24 12:39:32.914 [warning] [redhat.vscode-xml] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[xml]', provide the URI of a resource or 'null' for any resource.

Steps to reproduce are just having xml files opened, even when VS code is idle in the background.
I'm attaching logs:

extension_host_output.txt
xml_support_trace_log.txt

Address book xml:

<addressBook>
  <card>
    <name givenName="pera" label="pera">John Smith</name>
    <email>js@example.com</email>
  </card>
  <card>
    <name>Fred Bloggs</name>
    <email>fb@example.net</email>
  </card>
</addressBook>

Address book rng:

<element name="addressBook" xmlns="http://relaxng.org/ns/structure/1.0">
    <zeroOrMore>
        <element name="card">
            <element name="name">
                <optional>
                    <attribute name="givenName"></attribute>
                </optional>
                <optional>
                    <attribute name="label"></attribute>
                </optional>
                <text />
            </element>
            <element name="email">
                <text />
            </element>
        </element>
    </zeroOrMore>
</element>

My settings for extension as I tried to follow instruction for similar issues:

{
    "xml.colors": [],
    "xml.trace.server": "verbose",
    "xml.codeLens.enabled": true,
    "xml.server.vmargs": "Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
    "xml.server.preferBinary": true,
    "xml.symbols.filters": [
        {
            "pattern": "radio.xml",
            "expressions": [
                {
                    "xpath": "//@label"
                }
            ]
        }
    ],
    "xml.fileAssociations": [
        {
            "pattern": "adress_book.xml",
            "systemId": "D:\\webdev\\vs_code_ext\\_xml_server_test\\adress_book.rng"
        }
    ]
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing extension_host_output.txt and xml_support_trace_log.txt alongside the reported settings and sample XML/RNG files. Reproduce the failure with XML files open and use the logs to identify the condition causing repeated language-server crashes. Done means the server remains connected without recurring crash notifications in the reported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.