quarto-dev / quarto-dev/quarto-cli

YAML error messages in the presence of parse errors are poor

Aperta
#385 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@cscheid ci sta già lavorando.

Dal 5/3/2022.

enhancement lint yaml-validation
Lingua principale
JavaScript
Stelle
6k
Fork
458
Merge medio
1g 9h
PR unite (30g)
41

Descrizione

Consider this:

---
name:"mello"
title: "hello"
---

The YAML parsing fails, and hence we can't give the error message we would if instead we had

---
name:"mello"
---

I'm not sure how to fix this in general outside of writing a better YAML parser, and I really don't want to do that. We have a linting pass, and we could search for colons that don't have a space after them. But that might yield false positives, which are similarly annoying

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.