Skip to content

Unable to parse YAML schema #859

@reececomo

Description

@reececomo

Describe the bug

A YAML schema fails to parse.

Unable to parse content from '[...]/_schema/configSchema.yml': Parse error at offset 0.YAML(768)

Works correctly in other IDEs, but not in VSCode/with this extension.

We would like to support our developers who use VSCode. We use extensive comments/notes in our YAML, so we prefer YAML over JSON.

Expected Behavior

YAML-defined schemas (i.e. my-schema.yaml) should work correctly.

Current Behavior

Unable to parse content from '[...]/_schema/configSchema.yml': Parse error at offset 0.YAML(768)

Steps to Reproduce

  1. Define config.yml and _schema/configSchema.yml
  2. Add # yaml-language-server: $schema=_schema/configSchema.yml to config.yml
  3. 💥

Environment

  • Windows
  • Mac
  • Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions