-
Notifications
You must be signed in to change notification settings - Fork 294
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
Can't import std lib module for example Deno script #3723
Comments
There's a different place where the stdlib caching for (That doesn't mean this isn't a bug, I'm just giving context.) |
I can't currently reproduce this on my Mac either, unfortunately. I added a
|
Makes sense! I upgraded over the top, so I might do a clean install and see what happens 😊 |
@jimjam-slam Just checking in on this. Our upgrade should have happened cleanly, but I'm wondering if it's a different bug. |
Sorry, @cscheid! I swanned off on holiday and forgot all about it 😅 I'll see what I can do! |
@jimjam-slam no hurry! I'm technically out as well :) I just wanted to make I hadn't dropped the ball somewhere either. |
I had a crack at "clean installing" by deleting the quarto folder at (note:
project:
output-dir: _output
toc: true
number-sections: true
bibliography: references.bib
format:
html:
css: styles.css
html-math-method: katex
pdf:
documentclass: report
margin-left: 30mm
margin-right: 30mm
import { parse } from "https://deno.land/std/encoding/yaml.ts";
const config = parse(Deno.readTextFileSync("_quarto.yml"));
console.log(JSON.stringify(config, null, 2)); Command: $ quarto run snel.ts
error: Module not found "file:///Users/[username]/Applications/quarto/vendor/deno.land/std@0.166.0/encoding/yaml.ts".
at file:///Users/[username]/Code/svelte/testscript/snel.ts:1:23
$ which quarto
/Users/[username]/Applications/quarto/bin/quarto |
Oh! I deleted the quarto folder again and reinstalled Quarto 1.3.78 with an all-user install (putting it in Looks like this might something to do with the single user install! |
Apologies—this has cropped up for me again as I've attempted to move up to Quarto 1.3.107. I've deleted With a fresh terminal, I can see the symlink again pointing to
(The offending line is |
I should note that if I downgrade to 1.2.313, I no longer get this error (even if I install it in the same way, using the |
I'm pretty sure what's happening is that we're letting deno create a cache somewhere, and then when you upgrade to a new quarto version, we have a new stdlib (which needs a new cache) but we're resolving to the wrong cache. You're seeing that problem because we need to upgrade deno stdlibs when we upgrade deno version, and I bet deno doesn't version its internal caches (as I would argue it should) |
Let me know if there's anything I can do on my side to help you isolate it! |
@cscheid I believe quarto-ext/shinylive#8 is now about the same issue than here. OP there is in a state where this happens so could be helpful to help debug this if we need more information. |
I think this should be fixed as of 87ae6fc |
I confirmed that quarto-ext/shinylive#8 is now fixed using very latest 1.3 |
@jimjam-slam I'm going to go ahead and close this one. If the latest prerelease continues to give you trouble, please feel free to reopen this! |
Bug description
I'm trying to run the example Deno script code inside a Quarto project (that does have a
_quarto.yml
).Here's my script,
snel.ts
:When I ran this on Quarto 1.3.21, I got an error:
I understand that Quarto's Deno can't download modules, but I would assume that this module is one of the cached ones.
I've now upgraded to Quarto 1.3.56, but I'm getting a similar-sounding error:
Having a look at the contents of the newly installed Quarto, it looks like the path relative to the Quarto installation should probably be
/bin/vendor/deno-land
rather than/vendor/deno.land
, although I can't seeencoding/yaml.ts
in any of the cachedstd@[version]
directories:Does Quarto manage filling this cache on demand, or should the full standard library be there on install?
Checklist
The text was updated successfully, but these errors were encountered: