Implement functions command in REPL#1
Open
Queenode wants to merge 48 commits into
Open
Conversation
Add RuntimeError::Timeout { elapsed_ms, limit_ms } and
RuntimeError::Cancelled { reason } variants to replace stringly-typed
timeout and cancellation errors. Include helper constructors and
predicate methods (is_timeout, is_cancelled) for ergonomic usage.
Closes Timi16#505
…ants Migrate all stringly-typed timeout and cancellation error returns in executor.rs to use the new RuntimeError::Timeout and RuntimeError::Cancelled structured variants. This enables downstream consumers to programmatically distinguish error causes.
Pattern-match on RuntimeError::Timeout and RuntimeError::Cancelled in the CLI layer to provide user-friendly messages and appropriate exit codes (124 for timeout, 130 for cancellation). Includes hint about --timeout flag for timeout errors.
Add TypeScript interfaces for TimeoutError and CancellationError, a parseRuntimeError helper to deserialize structured errors from the runtime, and formatDapError for user-friendly DAP messages. Update error response handling to use structured error parsing.
Add comprehensive tests covering: - Display formatting for Timeout and Cancelled variants - Predicate methods (is_timeout, is_cancelled) - Field extraction via pattern matching - Constructor helper methods
…rrors feat: return structured timeout and cancellation errors
feat: scenario runner support for importing shared step fragments (cl…
feat: cache compiled WASM fixtures to cut test rebuild time Timi16#541
- Timi16#508: Enrich inspect --functions output with source/debug metadata - Added has_source_debug field to JSON function listings - Added Source/Debug column to pretty-printed function table - Used SourceMap.function_has_source_mapped() for detection - Timi16#524: Add coverage metrics to symbolic execution report - Added coverage_fraction and uncovered_regions to SymbolicReportMetadata - Report now shows explored branch/function coverage percentage - Uncovered regions are highlighted when coverage < 100% - Timi16#546: Make check_manpages.sh portable beyond BSD mktemp defaults - Uses explicit mktemp template with TMPDIR support - Honours TMPDIR env variable for CI/sandbox portability - Replaced Unicode symbols with ASCII for cross-platform output - Timi16#535: Add searchable and paged storage viewer for large snapshots - Added searchStorage() and pagedStorage() to VariableStore - Added storage.search, storage.page, storage.count commands - Updated VS Code extension README with usage documentation Additional fixes: - Fixed RuntimeError missing Display impl (timeout_cancellation_tests) - Fixed scenario.rs build error (undefined variable reference) - Fixed test struct initializers for updated SymbolicReportMetadata
fix: resolve issues Timi16#508, Timi16#524, Timi16#546, Timi16#535
7fb86a4 to
87f3e37
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding Functions Command To REPL
Key Changes:
Functionsvariant toReplCommandand updated the parser to recognize thefunctionscommand.functionscommand into the help menu and command loop.display_functionsmethod to output function signatures.src/plugin/loader.rs,src/cli/commands.rs,src/cli/args.rs, andsrc/main.rsthat were preventing compilation and testing.Verification:
cargo check.