redhat-developer / redhat-developer/vscode-xml

error message refers {the schema}

Open
#649 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

{
	"resource": "/tmp/file.xml",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": "cvc-complex-type.2.4.b",
	"severity": 8,
	"message": "Child elements are missing from element:\n - field\n\nThe following elements are expected:\n - field_owners\n - field_name\n\nError indicated by\n {the schema}\nwith code:",
	"source": "xml",
	"startLineNumber": 1598,
	"startColumn": 14,
	"endLineNumber": 1598,
	"endColumn": 18
}

I guess that {the schema} should contain the actual schemaname, possibly as a link?

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

No source file or test is named. Reproduce the XML diagnostic from the example and trace where the message containing {the schema} is assembled; done means the diagnostic reports the actual schema name, optionally as a link, instead of the placeholder.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.