Error and multi-line string values don't show as loadable text

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

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

Từ ngày 29/10/2026.

  • #19 của @tangentstorm — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
compilers

Hướng nghiên cứu

Start by reading the ImpWriter show cases for ERR and MLS, then inspect the loader’s handling of those values. Use the issue’s match[x; value show x] check to assess whether each value round-trips with its type preserved. Done means every producible value round-trips, or the unsupported type is no longer exposed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

approved follow-up

Follow-up from #11 / #15 (found by the show → load → show survey there).

ImpWriter has show cases for ERR and MLS values that don't produce text the loader can read back:

  • ERR: shown as ?"message" (q() quotes any message with spaces or punctuation). The loader's error token is ? plus non-space characters with no quote handling, so ?"failed to read: unclosed delimiters: [" reads as a broken symbol plus extra tokens. Error values made by the loader (load "[1") also can't be used at all: type? load "[1" gives Error: [wordClass] invalid argument:ERR,,failed to read: .... And ?oops loads as a SYM of kind ERR, not an ERR value, so even a simple error doesn't round-trip by type.
  • MLS: shown as a backtick fence with a trailing newline, but the loader has no multi-line string syntax (unmatched input: ```...```), and nothing creates MLS` values today.

Expected: show of any value the language can produce reads back as the same value (match[x; value show x] is 1), or that value type isn't exposed.

Same on main; not caused by #15.

Ngôn ngữ chính
TypeScript
Star
6
Fork
1
Merge trung bình
3 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 tangentcode/implish

Tất cả issue của tangentcode/implish

Issue tương tự

Thêm issue về TypeScript

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.