Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Lexer errors print no source excerpt or caret (parser errors do)

Open Beginner friendly
#1,371 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
86/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c

Research direction

Start by comparing the lexer error path with the parser error path, focusing on the existing eigs_print_caret_src call. Update tests/test_lint.sh for lexer errors on space-indented and tab-indented lines, then run the lint tests; done means both cases pin the expected excerpt and caret under --lint and a normal run.

Written by the indexing model from the issue text.

Description

area:lint-tooling enhancement

Found by the builder on #1368. x is @ prints only Syntax error line 2: unexpected character '@', under both --lint and a normal run, with no N | line excerpt and no caret. Parser errors print both.

Done when

  • A lexer error prints the same excerpt-and-caret pair as a parser error, through eigs_print_caret_src.
  • A test in tests/test_lint.sh pins the excerpt and caret for a lexer error on a space-indented line and on a tab-indented line.
Dominant language
C
Stars
3
Forks
7
Avg merge
4h 5m
Merged PRs (30d)
116

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InauguralSystems/EigenScript

All issues in InauguralSystems/EigenScript

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.