Giter VIP home page Giter VIP logo

Comments (7)

tolot27 avatar tolot27 commented on June 13, 2024

Now I get the error below with the unmodified demo.md

pandoc: Error running filter ./pandoc-crossref.hs
fd:3: hClose: resource vanished (Broken pipe)

from pandoc-crossref.

lierdakil avatar lierdakil commented on June 13, 2024

Not sure I follow, works for me. This error really should not be possible, there is literally no file manipulation in filter. Could you provide a more detailed explanation?

Thank you for your reports by the way, I appreciate you taking time to file them.

from pandoc-crossref.

tolot27 avatar tolot27 commented on June 13, 2024

It is really strange. If I go back to 846b243, it works. But with 3d79908 it breaks, even with an empty document. But then I get

D:\Develop\git\pandoc-crossref>pandoc --filter ./pandoc-crossref.hs -o demo.pdf test.md
pandoc-crossref.hs: warning: inet_ntoa from ws2_32 is linked instead of __imp_inet_ntoa
pandoc-crossref.hs: warning: getnameinfo from ws2_32 is linked instead of __imp_getnameinfo
pandoc-crossref.hs: warning: getaddrinfo from ws2_32 is linked instead of __imp_getaddrinfo
pandoc-crossref.hs: warning: freeaddrinfo from ws2_32 is linked instead of __imp_freeaddrinfo
pandoc-crossref.hs: warning: accept from ws2_32 is linked instead of __imp_accept
pandoc-crossref.hs: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup
pandoc-crossref.hs: warning: WSAStartup from ws2_32 is linked instead of __imp_WSAStartup
pandoc-crossref.hs: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup
pandoc-crossref.hs: warning: _vsnprintf from msvcrt is linked instead of __imp__vsnprintf
pandoc-crossref.hs: warning: GetVersionExA from kernel32 is linked instead of __imp_GetVersionExA
pandoc-crossref.hs: warning: GetModuleHandleA from kernel32 is linked instead of __imp_GetModuleHandleA
pandoc-crossref.hs: warning: GetProcAddress from kernel32 is linked instead of __imp_GetProcAddress
pandoc-crossref.hs: warning: _snprintf from msvcrt is linked instead of __imp__snprintf
pandoc-crossref.hs: warning: GetSystemInfo from kernel32 is linked instead of __imp_GetSystemInfo
pandoc-crossref.hs: warning: GetSystemMetrics from user32 is linked instead of __imp_GetSystemMetrics
pandoc-crossref.hs: warning: GetVersionExA from kernel32 is linked instead of __imp_GetVersionExA
pandoc-crossref.hs: warning: _snprintf from msvcrt is linked instead of __imp__snprintf
pandoc-crossref.hs: warning: GetSystemInfo from kernel32 is linked instead of __imp_GetSystemInfo
pandoc-crossref.hs: warning: GetComputerNameA from kernel32 is linked instead of __imp_GetComputerNameA
pandoc-crossref.hs: warning: CryptAcquireContextA from advapi32 is linked instead of __imp_CryptAcquireContextA
pandoc-crossref.hs: warning: CryptGenRandom from advapi32 is linked instead of __imp_CryptGenRandom
pandoc-crossref.hs: warning: _stat64 from msvcrt is linked instead of __imp__stat64
pandoc-crossref.hs: warning: _open from msvcrt is linked instead of __imp__open
pandoc-crossref.hs: warning: _stat64 from msvcrt is linked instead of __imp__stat64
pandoc-crossref.hs: warning: tolower from msvcrt is linked instead of __imp_tolower
pandoc-crossref.hs: warning: toupper from msvcrt is linked instead of __imp_toupper
pandoc-crossref.hs: warning: isalpha from msvcrt is linked instead of __imp_isalpha
pandoc-crossref.hs: warning: isalnum from msvcrt is linked instead of __imp_isalnum
pandoc-crossref.hs: warning: isupper from msvcrt is linked instead of __imp_isupper
pandoc-crossref.hs: warning: isgraph from msvcrt is linked instead of __imp_isgraph
pandoc-crossref.hs: warning: isprint from msvcrt is linked instead of __imp_isprint
pandoc-crossref.hs: warning: ispunct from msvcrt is linked instead of __imp_ispunct
pandoc-crossref.hs: warning: iscntrl from msvcrt is linked instead of __imp_iscntrl
pandoc-crossref.hs: warning: isupper from msvcrt is linked instead of __imp_isupper
pandoc-crossref.hs: C:\Users\Walter\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\hslua-0.3.13\HShslua-0.3.13.o: unknown symbol `mingw_getsp'
pandoc-crossref.hs: pandoc-crossref.hs: unable to load package `hslua-0.3.13'
pandoc: Error running filter ./pandoc-crossref.hs

I've also tried the pre-build version pandoc-1.13.2 and got the same error. It looks like I run into this bug: https://ghc.haskell.org/trac/ghc/ticket/9868 caused by the import of Text.Pandoc.Shared (normalizeInlines).

Right now, I just use the fix of #3 because the fix of #1 seem to break the use with Windows.

from pandoc-crossref.

lierdakil avatar lierdakil commented on June 13, 2024

My Windows box is out of reach at the moment, but could you try building an executable? Running ghc --make pandoc-crossref.hs should do it. It's a wild guess, but it might help either solve this problem or understand what's going on better.

from pandoc-crossref.

tolot27 avatar tolot27 commented on June 13, 2024

Building the binary does not solve the problem, unfortunately.

from pandoc-crossref.

tolot27 avatar tolot27 commented on June 13, 2024

The shared-copy-over branch works well with Windows. Which pandoc functions use Text.Pandoc.Shared? I believe quite a lot, but wonder why pandoc hasn't this issue.

from pandoc-crossref.

lierdakil avatar lierdakil commented on June 13, 2024

I'll get to it eventually. Not today though. There can be a dozen reasons why it behaves like it does, ranging from misconfiguration to weird alignment of planets πŸ˜†
Anyway, I think I'll open a new issue to remind myself about this.

from pandoc-crossref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.