Problem
The test test_include_allows_modifying_parent_mutable_variables in tests/include_preserves_constness_test.rs is currently marked with #[ignore] due to nondeterministic include/path handling issues.
Root Cause
Include statements are not resolving paths relative to the including file, causing the test to fail when using temporary directories.
Required Fix
- Fix include resolution so includes are resolved relative to the including file (rather than current working directory)
- Update the parser/loader used by
Parser::new / Analyzer::analyze / Interpreter::interpret
- Ensure the include loader accepts a base path (the path of the main file) and joins it with the included file path before reading
- Make file reads deterministic in the test by passing the resolved path into the parser/interpreter
- Remove the
#[ignore] attribute so the test runs in CI
Test Location
tests/include_preserves_constness_test.rs, lines 70-118
Backlinks
Problem
The test
test_include_allows_modifying_parent_mutable_variablesintests/include_preserves_constness_test.rsis currently marked with#[ignore]due to nondeterministic include/path handling issues.Root Cause
Include statements are not resolving paths relative to the including file, causing the test to fail when using temporary directories.
Required Fix
Parser::new/Analyzer::analyze/Interpreter::interpret#[ignore]attribute so the test runs in CITest Location
tests/include_preserves_constness_test.rs, lines 70-118Backlinks