SpyglassMC / Spyglass

Development tools for vanilla Minecraft: Java Edition data pack developers.
https://spyglassmc.com
MIT License
302 stars 31 forks source link

Chokidar file watcher fails when projectRoot is "complex" #1601

Closed misode closed 1 week ago

misode commented 1 week ago

When the project root is something like file:///c%3A/Users/User/Documents/sandbox/Foo%20Bar%20%5Bv1.310%5D/, this is converted to c:\\Users\\User\\Documents\\sandbox\\Foo Bar [v1.310]\\ before being passed to Chokidar.

misode commented 1 week ago

It seems like https://github.com/paulmillr/chokidar/issues/699 has the solution. We should add disableGlobbing: true to the chokidar options.