quarto-journals / acs

Quarto template for the American Chemical Society
MIT License
4 stars 2 forks source link

Error running filter #2

Open aeggers opened 1 year ago

aeggers commented 1 year ago

I tried to compile the default document and got an error message:

Error running filter {LONG_PATH}/_extensions/quarto-journals/acs/_extensions/quarto-ext/latex-environment/latex-environment.lua:

cannot open {LONG_PATH}/_extensions/quarto-journals/acs/_extensions/quarto-ext/latex-environment/latex-environment.lua:
No such file or directory

The {LONG_PATH} part has duplication in it that is causing the problem, I think. Basically it is:

[path-from-root-to-extension]/_extensions/quarto-journals/acs/_extensions/quarto-ext/latex-environment/[path-from-root-again-to-extension]/_extensions/quarto-journals/acs/_extensions/quarto-ext/latex-environment/latex-environment.lua

dragonstyle commented 1 year ago

What version of Quarto are you using? If not the latest 1.3 version could you update and give that a try?

aeggers commented 1 year ago

I can confirm that I get the above error with 1.2.335 but it compiles fine with 1.3.340. I hope that's useful to know -- if not sorry for taking your time. Thanks for your help.

dragonstyle commented 1 year ago

It's good to have the confirmation- thank you! We did fix a number of path related issues in Quarto 1.3 so this is good!

dfolio commented 1 year ago

I tried to compile the default template "quarto-acs.qmd" with quarto 1.4.429, and the quarto render quarto-acs.qmd fails with the following message:

WARNING (/opt/quarto-1.4.429/share/filters/main.lua:16055) Shortcode 'latex' not found
Error running filter /opt/quarto-1.4.429/share/filters/main.lua:
string expected, got nil
    while retrieving function argument text
    while retrieving arguments for function RawInline
stack traceback:
    /opt/quarto-1.4.429/share/filters/main.lua:16056: in function 'shortcodeResultAsInlines'
    (...tail calls...)
    /opt/quarto-1.4.429/share/filters/main.lua:243: in function </opt/quarto-1.4.429/share/filters/main.lua:233>
    (...tail calls...)
    [C]: in ?
    [C]: in method 'walk'
    /opt/quarto-1.4.429/share/filters/main.lua:165: in function </opt/quarto-1.4.429/share/filters/main.lua:155>
    (...tail calls...)
    /opt/quarto-1.4.429/share/filters/main.lua:15996: in field 'Pandoc'
    /opt/quarto-1.4.429/share/filters/main.lua:176: in function 'run_emulated_filter'
    /opt/quarto-1.4.429/share/filters/main.lua:803: in local 'callback'
    /opt/quarto-1.4.429/share/filters/main.lua:817: in upvalue 'run_emulated_filter_chain'
    /opt/quarto-1.4.429/share/filters/main.lua:852: in function </opt/quarto-1.4.429/share/filters/main.lua:849>
stack traceback:
    /opt/quarto-1.4.429/share/filters/main.lua:165: in function </opt/quarto-1.4.429/share/filters/main.lua:155>
    (...tail calls...)
    /opt/quarto-1.4.429/share/filters/main.lua:15996: in field 'Pandoc'
    /opt/quarto-1.4.429/share/filters/main.lua:176: in function 'run_emulated_filter'
    /opt/quarto-1.4.429/share/filters/main.lua:803: in local 'callback'
    /opt/quarto-1.4.429/share/filters/main.lua:817: in upvalue 'run_emulated_filter_chain'
    /opt/quarto-1.4.429/share/filters/main.lua:852: in function </opt/quarto-1.4.429/share/filters/main.lua:849>

My quarto check install

Quarto 1.4.429
[✓] Checking Quarto installation......OK
      Version: 1.4.429
      Path: /opt/quarto-1.4.429/bin

[✓] Checking tools....................OK
      TinyTeX: v2023.10
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/dfolio/.TinyTeX/bin/x86_64-linux
      Version: 2023

[✓] Checking basic markdown render....OK