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

eigenlsp: definition/symbol range for a function covers 'define', not the name

Chiusa
#1,369 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start in src/eigenlsp.c around lines 1209, 1261, 1339, and 1725, tracing how a symbol's col is used for definition, documentSymbol, workspaceSymbol, reference, and rename ranges. Add or update coverage in tests/test_lsp.py for definition, documentSymbol, and references on a define, then run that test and confirm ranges use the helper name rather than define.

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

Descrizione

area:lint-tooling kind:silent-wrong

Found by the builder on #1368.

textDocument/definition on a call to helper returns {start:{0,0}, end:{0,6}} for define helper(a) as:. That range covers the define keyword. s->col is the define STATEMENT's column, and the end is computed as col + strlen(name). This happens with space indentation too. The same s->col feeds documentSymbol, workspaceSymbol and the symbol-sourced reference and rename ranges (src/eigenlsp.c around lines 1209, 1261, 1339, 1725). Any edit built from those ranges would rewrite define.

Done when

  • definition of helper returns {0,7}..{0,13} (the name's bytes). A test in tests/test_lsp.py covers definition, documentSymbol and references on a define.
  • Every range built from a symbol's col is audited, and each one either uses the name's column or states why the statement column is right.
Lingua principale
C
Stelle
3
Fork
7
Merge medio
8h 44m
PR unite (30g)
252

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 InauguralSystems/EigenScript

Tutte le issue di InauguralSystems/EigenScript

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.