de-jcup / eclipse-yaml-editor

Eclipse YAML editor
https://marketplace.eclipse.org/content/yaml-editor
Apache License 2.0
34 stars 10 forks source link

Incorrect type. Expected array - for valid Yaml #101

Closed guw closed 3 years ago

guw commented 3 years ago

I started playing with Antora. It requires defining the following yaml:

# $(npm bin)/antora --clean --fetch antora-playbook.yml
site:
  title: My Documentation
  url: https://www.mycooldocs.com/
  start_page: home::index.adoc

# see https://docs.antora.org/antora/2.3/playbook/configure-runtime/
runtime:
  cache_dir: ./.cache/antora
output:
  dir: ./public

content:
  sources:
  - url: .
    branches: HEAD
    start_path: home

ui:
  bundle:
    url: ./ui/build/ui-bundle.zip
    snapshot: true

Opening the Yaml underlines everything read with the error:

Incorrect type. Expected "array".

I tried two online Yaml validators and they all agree - this is valid Yaml.

guw commented 3 years ago

A restart of Eclipse made the issue go away.