-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno compile code cache seems not working when error thrown during module loading #26976
Comments
I think what's happening here is its using a code cache from a previous build, but I'll add the code cache path to the debug logs. |
Oh ok, indeed, if I try a working command, code cache seems to be working: ❯ ./pkgx --sync 2>&1 | grep cache
DEBUG RS - denort::cache::cache_db:170 - Opening cache /home/felipecrs/.cache/deno/node_analysis_cache_v2...
DEBUG RS - denort::standalone::code_cache:45 - Loaded 216 code cache entries |
Yeah, it doesn't save the code cache if it errors during module loading. Perhaps there could be a partial save done in some cases, but I'm not sure it's worth the effort. |
Yeah, probably not worth it. Feel free to close this issue then. |
Version: Deno 2.1.0
Reproduction:
The text was updated successfully, but these errors were encountered: