Comments (7)
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.
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.
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.
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.
Building the binary does not solve the problem, unfortunately.
from pandoc-crossref.
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.
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)
- Figure captions in ODT output should have 'Figure' or 'FigureCaption' style HOT 2
- Unwanted `<br />` are inserted when using `eqnBlockTemplate` with HTML output HOT 4
- Support arm64 HOT 2
- Use `listing` instead of `codelisting` HOT 3
- Make grid tables visible HOT 4
- Mac can not open "pandoc-crossred" because it can not vertify the developer? HOT 3
- New feature request: cross ref for theorems, examples, and problems HOT 1
- Extra dot at the end of the figure caption HOT 6
- How to include a listing as a subfigure in a figure? HOT 1
- The Error βFilter returned error status 1β HOT 2
- New version of pandoc available HOT 1
- Org-reader subfigs feature HOT 3
- One space too many when prefix is set to empty HOT 5
- New Version of Pandoc HOT 1
- Recommend saying something about pandoc-crossref versus pandoc-xnos in readme HOT 1
- [feature request] support native typst references HOT 1
- wikilink image cross-references are not implemented HOT 3
- Numbered equation misplaced in ODT output HOT 1
- pandoc could not pick up the figure which pandoc-crossref specifies using "<figure" HOT 1
- Support ghc 9.8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc-crossref.