YAML error messages in the presence of parse errors are poor

Đang mở
#385 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@cscheid đang làm issue này rồi.

Từ ngày 5/3/2022.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement lint yaml-validation

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

Ngôn ngữ chính
JavaScript
Star
6k
Fork
458
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
41

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/quarto-cli

Tất cả issue của quarto-dev/quarto-cli

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.