Skip to content

Fix in-memory filesystem lookups on Windows - #855

Open
dkager wants to merge 1 commit into
daisy:mainfrom
dkager:fix/in-memory-shim-windows
Open

dkager wants to merge 1 commit into
daisy:mainfrom
dkager:fix/in-memory-shim-windows

Conversation

@dkager

@dkager dkager commented Oct 12, 2026

Copy link
Copy Markdown

I'm playing with the Dutch math notation (#231). To ensure everything is working I ran the tests. There is 1 failure on Windows.
Reproduce with:

cargo test --lib shim_filesystem::tests::in_memory_filesystem_shim

My skill with Rust is not (yet) sufficient to debug this, but I had help. Details are in the commit.
My focus is on YAML rule development and sparking discussions about gaps in the Dutch notation, but I wanted to share this finding while I'm at it.

add_in_memory_file stored the path exactly as given (e.g. with "/"), while
lookups go through get_in_memory_key, which rebuilds the path and uses "\"
on Windows. The keys never matched there, so
shim_filesystem::tests::in_memory_filesystem_shim always failed on Windows.
Store file and directory keys through get_in_memory_key as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@moritz-gross

moritz-gross commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

while I was working on building a tool that provides an overview of the language rules covered by which unit test, I also saw that something is off there. thanks for pointing this out.

I'd have to take some time time to read up on this in detail, as I've not worked on that area before really. @NSoiffer what do you think?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants