redhat-developer / redhat-developer/vscode-yaml

Extension keeps crashing, the json schema doesn't show.

Open
#1,072 0 comments 0 reactions 0 assignees View on GitHub

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.
Image

Current Behavior

The JSON schema keeps disappearing.

Steps to Reproduce

  1. In .vscode.json Add the following yaml.schemas entry:

    {
    
        "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"
            ]
        },
    }
    
  2. In your workspace, find a .yml file and try to autocomplete something like 'freshness' Image

  3. It works, the schema shows, but it will occasionally disappear.
    Image
    Image

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.