-
Notifications
You must be signed in to change notification settings - Fork 222
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
mdbook-admonish not found in Dev Container #3336
Comments
You don't have mdbook-amdonish installed. This is a problem with the taskfile / our dev env installation docs. |
I concur. In the Dev Container, I typed these commands and the "admonish" blocks appeared as expected.
How shall we remember to update the Dev Container to add |
It is there though! Line 27 in 92ee917
And I just tried myself, and it does seem to work on mine. But it's been there for a while, so I don't think it's likely to be an old devcontainer. Unless anyone has other ideas — suggest we wait for other repros... |
I can reproduce this. I'm using Docker Desktop 4.22.0 on macOS 12.6.8. I used Docker Desktop to remove all containers, images, and volumes on the machine. I then opened VS Code, and started the Dev Container. I saw a bunch of messages fly by as it downloaded the images, etc. and built the container. I then typed In the Dev Container, I then typed |
Thanks a lot for reproducing @richb-hanover . What do you get under I get:
And if I run |
After rebuilding the dev container, I had to use
My Macbook says:
Also - I get the same error messages all the time when I use
What other info could I provide? Thanks. |
Is it an ARM vs Intel thing? On the latest image on ARM, it's there: $ docker run -it ghcr.io/prql/prql-devcontainer-base@sha256:c025e31765a3b3b8c2ecb7d0839250ef522fea323aea03a579c4abdf27c04596 bash -c "which mdbook-admonish"
/usr/local/cargo/bin/mdbook-admonish And that is indeed the latest image: $ docker pull ghcr.io/prql/prql-devcontainer-base:latest
latest: Pulling from prql/prql-devcontainer-base
Digest: sha256:c025e31765a3b3b8c2ecb7d0839250ef522fea323aea03a579c4abdf27c04596
Status: Image is up to date for ghcr.io/prql/prql-devcontainer-base:latest
ghcr.io/prql/prql-devcontainer-base:latest I see |
Let's run these two commands: $ docker run -it --pull=always --platform=linux/amd64 ghcr.io/prql/prql-devcontainer-base bash -c "which mdbook-admonish"
latest: Pulling from prql/prql-devcontainer-base
Digest: sha256:c025e31765a3b3b8c2ecb7d0839250ef522fea323aea03a579c4abdf27c04596
Status: Image is up to date for ghcr.io/prql/prql-devcontainer-base:latest
/usr/local/cargo/bin/mdbook-admonish
$ docker run -it --pull=always --platform=linux/arm64 ghcr.io/prql/prql-devcontainer-base bash -c "which mdbook-admonish"
latest: Pulling from prql/prql-devcontainer-base
Digest: sha256:c025e31765a3b3b8c2ecb7d0839250ef522fea323aea03a579c4abdf27c04596
Status: Downloaded newer image for ghcr.io/prql/prql-devcontainer-base:latest
/usr/local/cargo/bin/mdbook-admonish |
More info:
|
Perhaps installed gnu instead of musl? The release page does not have a binary for linux arm64, so I assume it was built from source on the arm64 platform and is working correctly. |
Very good analysis! So the parent container doesn't have an up-to-date libc, and cargo-binstall doesn't install the musl version, which is probably should prefer — is that correct?
They're slightly different in the So I could imagine a couple of options here:
|
I think so, but I'm just guessing from the log, so I don't know if it's correct. |
What other information could I provide? Thanks. |
cargo-bins/cargo-binstall#19 (comment)
|
I found the issue about this rust-lang/mdBook#1954 This is why the mdBook binaries are built on Ubuntu 20.04 and not Ubuntu 22.04. In contrast, mdbook-admonish is built on Ubuntu 22.04. Also, the Docker build log shows that it took 2 hours to build mdbook-admonish. Perhaps by fixing up the mdbook-admonish repository and adding builds for arm64 we can benefit.... |
@eitsupi - What an incredibly complex problem. Good sleuthing! Thanks for investigating |
This has been resolved via upstream. |
What happened?
Solution: Install
mdbook-admonish
(see steps below.)Since around the 0.9.0 timeframe,I have noticed that themd-admonish
notes are not being displayed properly in the documentation under development.Things look OK in the production documentation: for example, the Literals page (https://prql-lang.org/book/reference/syntax/literals.html) shows the blue heading for an
adminish note
as expected.But the same page rendered by
task run-book
in the Dev Container shows the same text rendered in monospace font, with no special header.What other information can I provide to troubleshoot this? Thanks.
PRQL input
SQL output
N/A
Expected SQL output
No response
MVCE confirmation
Anything else?
No response
The text was updated successfully, but these errors were encountered: