redhat-developer / redhat-developer/vscode-yaml
Extension keeps crashing, the json schema doesn't show.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Extension keeps crashing, the json schema doesn't show.
I am trying to set-up autocomplete for my dbt project by adding a json-schema validator in my settings. Except the JSON schema associated with my file keeps disappearing, and to make it come back I have to uninstall your YAML extension, reload the workspace and reinstall the YAML extension.
Expected Behavior
I should see the schema in my bottom-right corner.
Current Behavior
The JSON schema keeps disappearing.
Steps to Reproduce
-
In
.vscode.jsonAdd the followingyaml.schemasentry:{ "yaml.schemas": { "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/dbt_yml_files-latest.json": [ "/**/*.yml", "!profiles.yml", "!dbt_project.yml", "!packages.yml", "!selectors.yml", "!profile_template.yml", "!package-lock.yml" ], "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/dbt_project-latest.json": [ "dbt_project.yml" ], "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/selectors-latest.json": [ "selectors.yml" ], "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/packages-latest.json": [ "packages.yml" ] }, } -
In your workspace, find a .yml file and try to autocomplete something like 'freshness'
-
It works, the schema shows, but it will occasionally disappear.
P.S the file association may say "Jinja YAML", but it also happens when the file association is set to "YAML"...
Environment
- WSL, Ubuntu 22.04 on windows 11 Pro.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the disappearing schema with the provided yaml.schemas settings in a VS Code workspace, using the listed WSL and Ubuntu 22.04 environment. Compare the behavior with YAML and Jinja YAML associations; done means identifying and fixing the intermittent schema disappearance or crash and confirming autocomplete remains available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100