There's an unavoidable race in Deno's expandGlobSync; some other process might change the directory between resolving the globs and stating them. We need to defend against this. Most directly, this manifests in resolvePathGlobs(), src/core/path.ts:165-187 (which is called by projectResourceFiles, which sometimes causes crashes on quarto preview inside Positron).
There's an unavoidable race in Deno's expandGlobSync; some other process might change the directory between resolving the globs and
stating them. We need to defend against this. Most directly, this manifests inresolvePathGlobs(),src/core/path.ts:165-187(which is called by projectResourceFiles, which sometimes causes crashes onquarto previewinside Positron).