Skip to content

Feature/jit backtrace#7

Merged
aleksisch merged 1 commit into
masterfrom
feature/jit-backtrace
Feb 24, 2026
Merged

Feature/jit backtrace#7
aleksisch merged 1 commit into
masterfrom
feature/jit-backtrace

Conversation

@aleksisch
Copy link
Copy Markdown
Owner

No description provided.

@aleksisch aleksisch force-pushed the feature/jit-backtrace branch 6 times, most recently from 76317a9 to c31d60e Compare February 17, 2026 09:19
Now stackwalk() in JIT is able to print function names. To do so
`jit_emit_prologue` should be set in CodeOfPolicies.

But it won't print argument values. Since now it's pure binary
code and there isn't much sense in converting all values back to das
representation.
@aleksisch aleksisch force-pushed the feature/jit-backtrace branch from c31d60e to 28d7408 Compare February 17, 2026 10:08
@aleksisch aleksisch merged commit 1f46e48 into master Feb 24, 2026
24 of 25 checks passed
aleksisch pushed a commit that referenced this pull request Apr 29, 2026
Fixes 7 review comments in one push:

* MCP stdio safety (#1, #5): read_import and compile_and_collect both
  print warnings/failures to stdout, which corrupts the JSON-RPC
  protocol stream when called from the MCP server. Add `quiet : bool
  = false` to both helpers (default preserves CLI behavior); MCP
  find_duplicates passes true and surfaces failure counts via the
  returned envelope.

* Test portability (#2, #3): replace hard-coded /tmp/... corpus path in
  test_find_duplicates_corpus_not_found with create_temp_file_result +
  immediate remove() — guaranteed-nonexistent path that works on
  Windows runners.

* Newline-delimited paths (#4): MCP do_find_duplicates now normalizes
  \n to , before parse_file_list, matching the README's
  documented "git diff --name-only | …" pipeline use case.

* Project (.das_project) plumbing (#6): add `project` to the
  find_duplicates schema, dispatch, and handler signature; thread
  through to compile_and_collect, which now takes
  `project : string = ""` and uses make_file_access(project) instead of
  the previous hardcoded "" — matching the convention used by
  compile_check / lint / find_symbol.

* Deterministic compile order (#7): both the MCP tool and CLI main.das
  build a sorted array<string> from `keys(against_files)` and iterate
  that, instead of the unspecified-order table-key iteration. Makes
  per-candidate report ordering and --check exit behavior reproducible
  across runs.

Drive-by: PERF006 fix in resolve_against_files (reserve before push
loop).

All test suites still green: 6987 in tests/, 54 find_dupes, 181 MCP
(includes 5 updated find_duplicates tests for new signature). MCP
end-to-end smoke confirms newline-delimited paths and project
parameter both reach the handler.

Co-Authored-By: Claude Opus 4.7 (1M context) <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