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

Error carets pad multi-byte UTF-8 byte-for-byte, so the ^ lands right of the token on a terminal

オープン 初心者向け
#1,373 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

eigs_print_caret_src から始め、バイト列番号からどのように caret プレフィックスを構築しているかを確認します。次に、マルチバイト文字を含む runtime-error と parse-error のケースを追加して tests/test_lint.sh を実行または拡張します。caret 行が空白バイトを保持し、caret がトークンと揃えば完了です。

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

説明

area:lint-tooling kind:silent-wrong

Found by the blind critic on #1368.

eigs_print_caret_src pads the caret line with one space per BYTE before the column. After a non-ASCII character, each multi-byte sequence adds extra cells, so on a terminal the ^ appears to the right of the token. Example: on \ts is "éé" + nope it lands 2 cells right. The byte column is correct (the LSP contract is bytes, #881); only the human-facing display is off.

Done when

  • The caret prefix copies whitespace bytes as-is (tabs are already handled) and pads one space per CHARACTER (UTF-8 lead byte) for everything else.
  • A test in tests/test_lint.sh pins the caret line for a runtime error and a parse error after multi-byte characters.
主要言語
C
スター
3
フォーク
7
平均マージ
4時間 7分
マージ済み PR(30日)
112

環境構築

Codespaces で開く

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

はじめの一歩

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

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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