Closed Binary-Eater closed 5 years ago
I don’t use orgmode, but a quick Google search suggests you may need to specify a language for that source block.
@Kwpolska noticed that too and thanks for the update.
If I specify the language, I can compile my org file but run into this error in the html render.
zsh:1: command not found: pygmentize
Also, I was hoping not to need to specify a language for blocks that would have things like directory structures. The above snippet isn't my actual org file I am writing but one that reproduces the error.
zsh:1: command not found: pygmentize
Make sure pygmentize
is available on $PATH. It comes from the pygments
pip package.
Also, I was hoping not to need to specify a language for blocks that would have things like directory structures. The above snippet isn't my actual org file I am writing but one that reproduces the error.
Pygments supports a text
language, but I don’t know if org-mode doesn’t do any filtering before the language name reaches Pygments.
@Kwpolska you are right. The language specifier is mandatory.
Mandatory for live code blocks. It is the identifier of the source code language in the block. See Languages, for identifiers of supported languages.
https://orgmode.org/manual/Structure-of-code-blocks.html#Structure-of-code-blocks
New to org myself. Would be nice to see if the org-mode
plugin can throw a nicer exception for this error.
which pygmentize
/usr/bin/pygmentize
Installed pygmentize as an Arch package and /usr/bin
should be referable?
Just tested on another setup though and seems to be working fine with pygmentize
. Going to close this issue since this seems to be more of an environment setup related issue. Thanks again @Kwpolska
Here is the output I am getting when trying to run
nikola auto
.Additional trace:
Org file that produced the error above.
Using
emacs
version 26.2 and tried using 25.1.org
version 9.2.3 used.