Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add #CALC! error type for Excel compatibility

Aperta
#1,647 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Inizia da SequencePlugin.ts, quindi leggi src/Cell.ts, src/error-message.ts e CellValueExporter per tracciare come vengono definiti, notificati ed esportati i tipi di errore. Individua le altre funzioni array che attualmente restituiscono #NUM! per le condizioni elencate, aggiorna i test pertinenti e verifica che per questi casi venga emesso #CALC! senza modificare gli altri comportamenti relativi agli errori.

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

Descrizione

Feature Impact: Low To Be Discussed

Severity: Low (backlog)

HyperFormula's ErrorType enum does not include CALC. Excel uses #CALC! for several conditions:

  • Zero dimensions in array functions (=SEQUENCE(0), =SEQUENCE(1,0))
  • Empty array results
  • Certain spill-related errors (separate from #SPILL!)

Currently these are mapped to ErrorType.NUM (#NUM!), which is the closest semantic match but diverges from Excel.

Known affected locations

  • SequencePlugin.ts — zero dimension check returns #NUM! instead of #CALC!
  • Potentially other array functions

Scope

Adding ErrorType.CALC would require:

  • New enum value in src/Cell.ts
  • New error message in src/error-message.ts
  • Export handling in CellValueExporter
  • Updates to functions currently returning #NUM! where #CALC! is correct
  • Test updates

Impact

Cosmetic divergence from Excel. Does not affect functionality — formulas still error correctly, just with a different error type. Low priority unless Excel compatibility audit (2026 roadmap) prioritizes exact error type matching.

Found during SEQUENCE implementation (PR #1645).

Lingua principale
TypeScript
Stelle
2.8k
Fork
174
Merge medio
2g 16h
PR unite (30g)
9

Preparare l'ambiente

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 handsontable/hyperformula

Tutte le issue di handsontable/hyperformula

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.