Open muellerzr opened 1 year ago
What version of Quarto are you using?
The Deno stdlib does not stay still, that's for sure...
It looks like readLines
was removed from buffer.ts
in std@0.175.0
:
I believe each version of Quarto uses a specific version of Deno and Deno's stdlib, so if Quarto updated those things, it could cause that import to fail.
Assuming that's the cause of the problem, the solution would be to replace that readLines
import with whatever the new thing is -- but we also want to make sure it'll work with older versions of Quarto.
I had this error with the dev version and 1.3.340 and 1.3.433 (and installing didn't pin the versions)
@wch do you know how I can get those to install at the right versions?
@muellerzr How are you installing Quarto?
On my local computer, I've installed it by cloning the https://github.com/quarto-dev/quarto-cli repo and then running ./configure.sh
. I'm using the v1.3
branch, which is just a few commits ahead of the v1.3.433
tag. (Note that if you install this way, quarto --version
reports 99.9.9
.)
In Github Actions, it installs quarto 1.3.433 via a .deb file, and appears to be building the site just fine: https://github.com/quarto-ext/shinylive/actions/runs/5425842660/jobs/9867124521#step:3:123
By doing that when running the local dev, and dpkg -i {filename}
after wget
'ing the deb's
My only guess is that there's some weird Deno stdlib caching thing going on.
For reference, here are two old issues related to caching, but they apparently have been fixed:
Can you create a file called version_std.ts
with the following:
import { VERSION } from 'https://deno.land/std/version.ts';
console.log("Current Deno stdlib version", VERSION);
And then run it with quarto run version_std.ts
. It will actually error out on the import (I'm told that Quarto currently doesn't import std/version.ts so it won't have this available), but the error message will actually be informative. I get:
$ quarto run version_std.ts
error: Specifier not found in cache: "https://deno.land/std@0.166.0/version.ts", --cached-only is specified.
at file:///Users/winston/shinylive/shinylive-quarto/version.ts:1:25
Then create another file, version_deno.ts
:
console.log("Current Deno version", Deno.version.deno);
console.log("Current TypeScript version", Deno.version.typescript);
console.log("Current V8 version", Deno.version.v8);
And run it:
$ quarto run version_deno.ts
Current Deno version 1.28.2
Current TypeScript version 4.8.3
Current V8 version 10.9.194.1
@wch I'm running into the same error:
Following your instructions in the last post, I create and ran version_std.ts
(no error):
And version_deno.ts
:
Any thoughts?
Rolling back to Quarto 1.3.450 fixed this for me.
Sorry for taking so long to get this fixed -- installing the latest version of the shinylive Python package should make everything work.
pip install --upgrade shinylive
See #18 for more information. Please confirm that this fixes things for you!
Tried spinning up my old code to work on some parts, and when I try to render I get the following error:
shinylive
is v0.0.14, code is as follows: