Repository navigation
Description
Bug description
I am trying to install an extension with
quarto install extension juliantao/qletter
I get errors (log is enclosed).
When I do this on my second machine, things work.
I have no idea what I need to change on my main machine to make things work.
(base) Maxwell:pisa_data neuwirth$ quarto install extension juliantao/qletter
⚠️ The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.
Platform: macos aarch64
Version: 1.42.4
Args: ["/Applications/quarto/bin/tools/aarch64/deno", "run", "--unstable", "--no-config", "--allow-read", "--allow-write", "--allow-run", "--allow-env", "--allow-net", "--allow-ffi", "--no-check", "--importmap=/Applications/quarto/bin/vendor/import_map.json", "/Applications/quarto/bin/quarto.js", "install", "extension", "juliantao/qletter"]
thread 'main' panicked at cli/args/mod.rs:632:14:
Failed to add platform cert to root cert store: InvalidCertificate(BadEncoding)
stack backtrace:
0: 0x1017e430c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0aa20ca08aeb683c
1: 0x1009fbf24 - core::fmt::write::h168dbafcf35bac68
2: 0x1017b7f3c - std::io::Write::write_fmt::hdb0dd3f09dcf2281
3: 0x1017e6448 - std::sys_common::backtrace::print::h57b289e4b951ee17
4: 0x1017e6174 - std::panicking::default_hook::{{closure}}::h783b6c512154ec65
5: 0x1017e5d34 - std::panicking::default_hook::hcdfa9e1e0f234a4f
6: 0x1008abdf0 - deno::setup_panic_hook::{{closure}}::hb96a6dc4fa15e542
7: 0x1017e6ddc - std::panicking::rust_panic_with_hook::h9aea678ca49d64cf
8: 0x1017e6b9c - std::panicking::begin_panic_handler::{{closure}}::ha16c3377e66deceb
9: 0x1017e6b00 - std::sys_common::backtrace::__rust_end_short_backtrace::hea8fdda1ea8a4c0e
10: 0x1017e6af4 - _rust_begin_unwind
11: 0x1009fa2cc - core::panicking::panic_fmt::h1cb43b60f5788132
12: 0x100a00d08 - core::result::unwrap_failed::h71a35eff74d84b68
13: 0x100748c3c - deno::args::get_root_cert_store::h0efade9267b8b059
14: 0x10071eea4 - once_cell::imp::OnceCell<T>::initialize::{{closure}}::h253e39bcb72f7d73
15: 0x101685978 - once_cell::imp::initialize_or_wait::h0b9b987411522c9d
16: 0x100747db0 - <deno::args::CliRootCertStoreProvider as deno_tls::RootCertStoreProvider>::get_or_try_init::h927b39ac8b4fbace
17: 0x100c7adb8 - deno_fetch::Options::root_cert_store::hd2819423ef29bd68
18: 0x100c7b59c - deno_fetch::get_or_create_client_from_state::h1b0ab323ee5377d3
19: 0x101356748 - deno_fetch::op_fetch::op_fetch<FP>::v8_fn_ptr::h2a9907d86e41fa08
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Your environment
RStudio Version 2023.12.1+402 (2023.12.1+402)
macOS Sonoma 14.4.1
Quarto check output
Quarto 1.4.553
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.42.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.553
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /Library/TeX/texbin
Version: 2024
Deno.dlopen API was used with --unstable flag. The --unstable flag is deprecated and will be removed in Deno 2.0. Use granular --unstable-ffi instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.14 (Conda)
Path: /Users/neuwirth/Library/r-miniconda-arm64/bin/python
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with conda install jupyter
[✓] Checking R installation...........OK
Version: 4.3.3
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Users/neuwirth/Library/R/arm64/4.3/library
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.46
rmarkdown: 2.26
[✓] Checking Knitr engine render......OK
Activity
mcanouil commentedon Apr 24, 2024
That's not how to install an extension.
The correct command is
quarto add ....See

quarto --helpor the documentation at https://quarto.org/docs/extensions/managing.html#installationThe readme of https://github.com/juliantao/qletter is outdated, please report there.
neuwirthe commentedon Apr 24, 2024
mcanouil commentedon Apr 24, 2024
Hum, I missed the error message which i don't believe should ever happen as Quarto 1.5 uses Deno
1.41.0, but in your environment it says Deno2.0.How did you install Quarto?
This is the real issue here, not the failed installation of extensions.
You already have a message/error in the
quarto checkoutput.PS: when replying by email, do not include the previous messages. Thank you!
neuwirthe commentedon Apr 24, 2024
mcanouil commentedon Apr 24, 2024
I don't think installing 1.5 will change something here, but go to "Release notes and more downloads" on the same page then the tab "pre-release".
You should not see this message.
Do you use a proxy/VPN or something like that?
That's the Deno release from last week, so here Quarto seems to use a system version of Deno instead of the one embedded.
For instance Quarto 1.5 uses Deno 1.41.0.
I suggest to take the following steps:
QUARTO_*quarto checkshould not display a message (and the wrong Deno version) as you shared.neuwirthe commentedon Apr 24, 2024
neuwirthe commentedon Apr 24, 2024
14 remaining items
mcanouil commentedon Apr 24, 2024
None of these should be in your PATH, so no.
And from your
quarto checkoutput, now Quarto is using the right version (the internal Deno).cscheid commentedon Apr 24, 2024
☝️ I really don't understand how that could have happened. That's very strange.
neuwirthe commentedon Apr 24, 2024
Some more information.
I removed
/Applications/quartoand
/Applications/RStudioThen, I installed
Rstudio 2023.12.1-402and not yet
quarto.RStudio brings its own version of
quartoin/Applications/RStudio.app/Contents/Resources/app/quarto/binqmdfiles will be rendered, butquarto --versionentered in RStudio Terminal window producesSimilarly
Ath this point, I notice that
bashis being called despite the fact that MaxOS now useszshas default shell.Rstudio also brings its own versions of
denoinLike calling
quarto --versioncalllingdeno --versioncannot finddeno.Installing quarto from
quarto-1.4.553-macos.pkgcreates a link to quarto in/usr/local/binto/Applications/quarto/bin/quarto, thereforequartois on the path.However, this install does not create a link for
denoin/usr/local/bin, thereforedenois not in the path and cannot be called from the command line.Executing
sudo ln -s /Applications/quarto/bin/tools/aarch64/deno .in/usr/local/bincreates a link and then deno can be run from the command line,but the
InvalidCertificateerror persists.mcanouil commentedon Apr 24, 2024
Deno is only for internal use inside Quarto. That is intended behaviour.
There are no reasons for you to use it.
You had an installation issue where Quarto was not using its Deno but another one from your environment.
Here you are messing up your installation.
Do not touch anything inside
/Applications/quartounless you know what you are doing!Please read carefully and completely our previous replies.
neuwirthe commentedon Apr 24, 2024
The only thing I added was the link to
denoin/usrlocal/bin. I removed it afterwards.You told me to try and tun
deno --version. To be able to test that, I created the link.In my previous post I describe that RStudio also also installs a version of
quarto.Perhaps there is some interaction between the native quarto installation and the one from RStudio.
mcanouil commentedon Apr 24, 2024
I only said to test it, not to make it work by any means necessary.
Again, Quarto was not using its own version of Deno but another one which had to come from your environment.
deno --versionwould have show 1.42.4 being used wrongly by Quarto.You had in your Quarto check output:
instead of:
As already stated in #9466 (comment).
This is one issue.
And again, regarding the certificate issue, see previous replies such as #9466 (comment).
mcanouil commentedon Apr 24, 2024
To summarise:
neuwirthe commentedon Apr 24, 2024
I can run quarto, that is not the issue. The certificate issue was there before I "played", and it is still there.
mcanouil commentedon Apr 24, 2024
It seems we might be going in circles, and I believe it would be beneficial for us for you to take a step back and carefully review the previous messages.
There are two key issues in your original report:
Quarto Installation: There is a factual issue with your Quarto installation. This isn’t a question but rather something that needs attention from you. Please do carefully review the previous messages about this. As stated before, this seemed solved before you played with your installation. Please do check that
quarto checkoutput for Quarto 1.4.553 is reportingDeno version 1.37.2: OK.Certificate Issue: As stated several times, this is an upstream issue that cannot be solved in Quarto and is already reported ('quarto publish confluence' throws 'Failed to add platform cert to root cert store' #7292).
To ensure we make progress, could you please re-examine our earlier correspondence?
Thank you for your understanding and cooperation.
As a workaround, you can install extension from an archive as described in https://quarto.org/docs/extensions/distributing.html#archive-distribution.
neuwirthe commentedon Apr 24, 2024
I think I followed all your instructions, and this is what I get
with
quarto checkI can render quarto files without problems.
My workaround for getting extensions is installing them on my other machine - where
quarto add ...works - and copying them to my main machine.cscheid commentedon Oct 2, 2024
This is fixed on 1.6.19.