Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ
#1,369 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
C
スター
3
フォーク
7
平均マージ
8時間 43分
マージ済み PR(30日)
253

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。