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

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@tangentstorm ci sta già lavorando.

Dal 29/10/2026.

  • #19 di @tangentstorm — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
compilers

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
6
Fork
1
Merge medio
3m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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.

Altre issue di tangentcode/implish

Tutte le issue di tangentcode/implish

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.