jez / pandoc-sidenote

Convert Pandoc Markdown-style footnotes into sidenotes
MIT License
137 stars 17 forks source link

Error running tufte-pandoc-css #1

Closed robsalasco closed 7 years ago

robsalasco commented 7 years ago

Hi! I'm trying to run tufte-pandoc-css but I have this error

robsalasco@leucippus:~/Desktop/tufte-pandoc-css$ make
pandoc \
        --katex \
        --smart \
        --section-divs \
        --from markdown+tex_math_single_backslash \
        --filter pandoc-sidenote \
        --to html5 \
        --template=tufte \
        --css tufte.css --css pandoc.css --css pandoc-solarized.css --css tufte-extra.css \
        --output docs/index.html \
        docs/index.md
pandoc-sidenote: Error in $: mempty
CallStack (from HasCallStack):
  error, called at ./Text/Pandoc/JSON.hs:108:64 in pandoc-types-1.17-KRy4e6Qs9AIJIlwwj55hmZ:Text.Pandoc.JSON
pandoc: Error running filter pandoc-sidenote
Filter returned error status 1
make: *** [docs/index.html] Error 83

Can you help me please?

jez commented 7 years ago

Hm, I can't seem to reproduce this.

If you answer those questions I might be able to suggest a solution, but off the top of my head I can't think of anything.

robsalasco commented 7 years ago

I'm upgrading my pandoc installation to see if that works

jez commented 7 years ago

Also, version of pandoc are you using? You might want to try upgrading to version 1.18 and try again.

On Tue, Nov 22, 2016 at 12:14 AM Roberto Salas notifications@github.com wrote:

  • I'm running MacOS Sierra
  • I used brew

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jez/pandoc-sidenote/issues/1#issuecomment-262149610, or mute the thread https://github.com/notifications/unsubscribe-auth/AFSaVFqDr3Ray_ki_xxIoW6VpODPZfNCks5rAnojgaJpZM4K4_ZR .

robsalasco commented 7 years ago

now it's working @jez !!! please add the requirement of pandoc 1.18 :)

jez commented 7 years ago

Done. Thanks for your patience!

gwern commented 7 years ago

I don't see any Pandoc version constraint in the cabal file. Also, this issue is still marked open.

jez commented 7 years ago

Is that not what these lines accomplish?

https://github.com/jez/pandoc-sidenote/blob/3127f7a94a/stack.yaml

gwern commented 7 years ago

I noted you edited the stack file, but I'm not familiar with how stack works - isn't it a totally different packaging system from cabal and so the constraint wouldn't apply to anyone installing using cabal install or from Hackage?

Incidentally, while it would be good to upload this to Hackage, right now cabal check tells me that there needs to be version dependencies put on base. I've been out of Haskell long enough that I don't know what the right thing to do there would be, so I'm telling you.

jez commented 7 years ago

Alright, thanks for the heads up. I'm not all that familiar with Haskell packaging either. I might look into it.