Skip to content

Request textDocument/hover failed with message: no schema with key or ref "https://json-schema.org/draft-07/schema" #1023

@mjarmijo

Description

@mjarmijo

Describe the bug

Developer logs reports a significant number of Request textDocument/hover failed with message: no schema with key or ref "https://json-schema.org/draft-07/schema"
In vscode while using the YAML extension on hover, as activated by ctrl+spacebar.

Without using the keyboard shortcut no hover message appears.

Hover works as expected with JSON extension, for example.

Expected Behavior

Hover should show hints as expected without error.

Current Behavior

Hover does not work at all

Steps to Reproduce

  1. Install yaml extension in vscode
  2. Reference the following yaml.schemas in vscode settings.json:
    "yaml.schemas": {
        "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
    },
  1. Create mkdocs.yml
site_name: My Docs
site_url: https://example.com
theme:
  name: material
  1. Test if hover works as expected
  2. Test with ctrl+spacebar while cursor is on a key

Environment

  • Windows

  • Mac

  • Linux
    Ubuntu="Ubuntu 24.04.1 LTS"
    VScode= 1.88.1
    redhat.vscode-yaml=1.16.0

  • other (please specify)

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions