quarto-dev / quarto-dev/quarto-cli

difficult error with typo in var

Open
#8,765 4 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Feb 17, 2024.

bug
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Describe your proposed improvement and the problem it solves.

I happened to have a typo in my var {{< var country>}} (no space between y and >)

This unfortunately causes a cryptical error:

Error running Lua:
/opt/quarto/share/pandoc/datadir/lpegshortcode.lua:112: attempt to concatenate a nil value
stack traceback:
        [C]: in function 'lpeg.match'
        /opt/quarto/share/pandoc/datadir/readqmd.lua:129: in function 'readqmd.readqmd'
        /opt/quarto/share/filters/qmd-reader.lua:13: in function 'Reader'

i could only locate by removing paragraph by paragraph from the file.

Is it somehow possible to list the line-number of the error?

Describe alternatives you've considered.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.