Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ImadYIdrissi opened this issue Dec 9, 2024 · 0 comments
Open

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

ImadYIdrissi opened this issue Dec 9, 2024 · 0 comments

Comments

@ImadYIdrissi
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant