Skip to content

RelaxNG XML attribute/node completion not working #1119

@ImBoop

Description

@ImBoop

Hello!

I'm enjoying the extension thus far, but I'm having an issue where the completion provider doesn't seem to be working.

It correctly identifies errors in attributes/etc (such as one existing where it shouldn't) however the completion doesn't seem to be working.

I attempted this on a fresh install of VScode (version below) with just the RH XML extension active.

Version: 1.107.1 (user setup)
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

Here's the debug output:

[Trace - 7:41:18 PM] Sending request 'textDocument/completion - (21)'.
Params: {
    "textDocument": {
        "uri": ".../filename.xml"
    },
    "position": {
        "line": 3,
        "character": 8
    },
    "context": {
        "triggerKind": 1
    }
}


[Trace - 7:41:18 PM] Received response 'textDocument/completion - (21)' in 2ms.
Result: {
    "isIncomplete": false,
    "items": [],
    "itemDefaults": {}
}

The document in question (I'm trying to autocomplete attributes on the record)

<?xml-model href="../../../odoo/import_xml.rng"?>
<odoo>
<record  ></record>
</odoo>

The RNG XML file in question can be found here.

I have a feeling there's something awry with Lemminx, but I don't know enough about it to dig deeper. If y'all need anything else to help reproduce it, let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions