pandoc-csv2table
pandoc-csv2table copied to clipboard
error output on arch linux
i have installed pandoc with version 2.10.1 and compiled pandoc-csv2table with stack install.
when i tried to convert markdown file, i have got following error.
pandoc-csv2table: Error in $: Incompatible API versions: encoded with [1,21] but attempted to decode with [1,17,6,1].
CallStack (from HasCallStack):
error, called at ./Text/Pandoc/JSON.hs:122:13 in pandoc-types-1.17.6.1-8Yg10sXqtRHaIqz1Kd7Bw:Text.Pandoc.JSON
Error running filter pandoc-csv2table:
Filter returned error status 1
@muralikodali Thanks for reporting the issue. I will look into it.
@muralikodali The resolver specified in stack.yaml is old. It builds pandoc-csv2table with pandoc-types 1.17.x . pandoc-2.10.1 is using a later version of pandoc-types ?
Can you try installing pandoc-cvs2table with
$ stack install --resolver lts
i have installed pandoc-csv2table with command $ stack install --resolver lts
Afterwards i ran pandoc-csv2table with pandoc. Following is the output :
pandoc-csv2table: Error in $: Incompatible API versions: encoded with [1,21] but attempted to decode with [1,20].
CallStack (from HasCallStack):
error, called at ./Text/Pandoc/JSON.hs:123:13 in pandoc-types-1.20-KULXNW36uYq4WUNF28rDyU:Text.Pandoc.JSON
Error running filter pandoc-csv2table:
Filter returned error status 1
@muralikodali Thanks for the quick check. Arch Linux pandoc is built with a later version of pandoc-types compared to stack LTS version. Let me check if there is a workaround.
Same issue on Mac:
This is the error message I received after executing pandoc --filter pandoc-csv2table -o test.html test.md
pandoc-csv2table: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with [1,20].
CallStack (from HasCallStack):
error, called at ./Text/Pandoc/JSON.hs:123:13 in pandoc-types-1.20-B08FvHAsQpQ43eJwPP9lMO:Text.Pandoc.JSON
Error running filter pandoc-csv2table:
Filter returned error status 1
make: *** [pdf] Error 83
pandoc version :
pandoc 2.11.0.4
Compiled with pandoc-types 1.22, texmath 0.12.0.3, skylighting 0.10.0.3,
citeproc 0.1.0.3, ipynb 0.1.0.1
I installed pandoc-csv2table by stack.
I'm new to haskell and have no time to review the cause of the error. I'd appreciate if someone can solve this problem.
The problem was resolved by using stack instead of cabal to rebuild pandoc-csv2table and all the other dependencies, and removing cabal packages.