Skip to content

freshness: watch files whose extension case the parser ignores (Main.JS, Up.VUE) - #1785

Merged
swapnilpaliwal-sd merged 1 commit into
0.1.9from
loop/ja-is1771
Sep 29, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
0.1.9from
loop/ja-is1771

Conversation

@swapnilpaliwal-sd

Copy link
Copy Markdown
Contributor

The file table matched extensions exactly, while the JavaScript parser reads Main.JS / Up.VUE and the C# parser reads *.CS. Such files were parsed but never watched, so an edit left the graph "up to date".

  • ax_fresh.watched (and the source count) now fold case for exactly the extensions those parsers fold.
  • Control: .TS, .PY, .JAVA stay unwatched, as their parsers match exactly.
  • Checked: issue repro: files.json 2 → 4 files, the edit now rebuilds, impact third names both users (fixture call edges 3 → 5). A real Express app: 51 files, 2041 call edges before and after. tests/freshness.py 57/57, tests/latency.py 27 held; refresh / multi_language / refresh_races / graph_verb were still running locally.

Closes #1771

….JS, Up.VUE, Calc.CS)

The JavaScript parser matches an extension whatever its case and the C# parser
reads *.CS, but the file table matched exactly, so such a file was parsed yet
never watched: an edit to it left the graph 'up to date'. The table now folds
case for exactly the extensions those parsers fold; TypeScript, Python and Java
stay case-sensitive, as their parsers are (the control in tests/freshness.py).

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant