gpoore / minted

minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
1.73k stars 125 forks source link

Didn't receive error message that fvextra was not installed #364

Closed kjshen closed 1 year ago

kjshen commented 1 year ago

Same as #347, using inline code led to an error message saying: Environment Verbatim undefined.

After finding #347, I checked and found that fvextra was not installed on my system. Installing it solved the issue.

It would be helpful if a more suitable error message could be displayed in this case.

muzimuzhi commented 1 year ago

Without fvextra installed, you should get an error

! LaTeX Error: File `fvextra.sty' not found.

If not, try executing kpsewhich -a fvextra.sty to see if there exists another fvextrs.sty file which is erroneous.

Note the problem in #347 is really about the incompatibility between "latest" minted and relative outdated fvextra, not an uninstalled fvextra.

kjshen commented 1 year ago

After I found the metioned issue I opened MikTex, which didn't display fvextra as installed. I didn't check otherwise and installed it via MikTex.

It might have been another problem on my end then.