redhat-developer / redhat-developer/vscode-xml

invalid path resolution in multi-root workspace

Open
#198 3 comments 0 reactions 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

i have a multi-root workspace with the following configuration

{
  "folders": [
    {
      "path": "fondamentaux-guide"
    },
    {
      "path": "fondamentaux-code"
    }
  ],
  "settings": {
    "xml.trace.server": "messages",
    "xml.java.home": "/usr/lib/jvm/default-runtime",
    "xml.catalogs": [
      "fondamentaux-code/path/to/catalog.xml"
    ]
  }
}

The path to the catalog is resolved to 'file:///path/to/workspace/fondamentaux-guide/fondamentaux-code/path/to/catalog.xml' (note the /fondamentaux-guide/fondamentaux-code/ part) while it should be resolved to 'file:///path/to/workspace/fondamentaux-code/path/to/catalog.xml'

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

Reproduce the issue with the multi-root workspace configuration and the relative xml.catalogs path shown in the report. Trace the extension's catalog path resolution entry point and verify that the catalog resolves relative to the folder named in the path; done means the URI points to fondamentaux-code/path/to/catalog.xml rather than nesting it under fondamentaux-guide.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.