Open kv9898 opened 1 month ago
Note: a Windows laptop is used. The quarto extension and python library of Shinylive are up to date
The Quarto side suggests Shinylive update its script: https://github.com/quarto-dev/quarto-cli/issues/11183#issuecomment-2435662392
Quarto 1.6 does have breaking change with quarto run
: prerelease doc has the updated information https://prerelease.quarto.org/docs/projects/scripts.html#deno-scripts
Quarto 1.6 does have breaking change with
quarto run
: prerelease doc has the updated information https://prerelease.quarto.org/docs/projects/scripts.html#deno-scripts
Thanks for the information. I tried to do a quick fix to bug following the documentation by changing:
import { readLines } from "https://deno.land/std/io/mod.ts";
to:
import { readLines } from "stdlib/io";
and a new error pops up:
error: JSR package version manifest for '@std/io@0.224.9' failed to load: Specifier not found in cache: "https://jsr.io/@std/io/0.224.9_meta.json", --cached-only is specified.
at file:///C:/Users/kv989/AppData/Local/shinylive/shinylive/Cache/shinylive-0.7.0/scripts/codeblock-to-json.js:5:27
Error running filter D:/quarto/share/filters/main.lua:
Any ideas?
Something does not seem right... 🤔 I'll dig into that, as I don't think it is related to shinylive.
Edit: It seems we have an issue and this is tracked in
Thanks for reporting !
Something does not seem right... 🤔 I'll dig into that, as I don't think it is related to shinylive.
Edit: It seems we have an issue and this is tracked in
Thanks for reporting !
Thank you so much for looking into this. Good to know that both projects belong to Posit and we have someone like you who have worked on both projects.
This should be fixed in 1.6.32. You can try again with shinylive and updated scripts.
It worked! Thank you. Shall I keep this issue open for the Shinylive script to be edited? I'm hesitating to write a PR now as I fear the updated script would break support for Quarto 1.5, which is the current stable release?
I'm hesitating to write a PR now as I fear the updated script would break support for Quarto 1.5, which is the current stable release?
Yes something needs to be done regarding that... maybe it requires two scripts and use the correct one based on quarto version used ?
You could probably open a PR with ideas, otherwise we'll come with a solution soon.
I'm hesitating to write a PR now as I fear the updated script would break support for Quarto 1.5, which is the current stable release?
Yes something needs to be done regarding that... maybe it requires two scripts and use the correct one based on quarto version used ?
You could probably open a PR with ideas, otherwise we'll come with a solution soon.
It seems that the source is in a different repo: https://github.com/posit-dev/shinylive/blob/6e4933f46048f3b0d1293d31e9525570b0c4ff94/src/scripts/codeblock-to-json.ts
I opened an issue there: https://github.com/posit-dev/shinylive/issues/185
That repo does not seem very active, though. My previous issue posted 1 month ago hasn't got any replies yet.
For later versions of Quarto (1.6.19 onwards), I got an error which is not present in early versions (1.6.18 and before):
quarto check
information with the last working version of Quarto (1.6.18):