I have typst version 0.12 installed locally on a machine running Linux Ubuntu 22.04.5. I am using VSCodium 1.96.0 plus the typst LSP Extension for my “typsting”. However, if I want to use the fletcher package to draw a diagram, the code won’t be executed and no pdf can be rendered.
I suspect this is the problem. Typst LSP is outdated, you should switch to tinymist. Since these extensions bundle the compiler and don’t use whatever you have installed separately, you are likely not actually using 0.12 when working in VSCodium.
Just a quick follow-up question. When I try using the fletcher package locally with the Tinymyst extention, the script won’t execute. Instead, VSCodium tells me
package requires typst 0.12.0 or newer (current version is 0.11.0)
But when I check the typst version, I get
$ typst --version
typst 0.12.0 (737895d7)
Do you have any clue, why VSCodium uses typst 0.11.0?
The version that is relevant is that of the extension, not of what you see for the separately installed executable. (to be clear, the extension version number would still not necessarily be 0.12, but if you look into the code of that version of the extension, you could find out the compiler version)