Since upgrading to pandoc 1.12, pandoc fails with an error when I try to use citations via citeproc-hs. It seems that a file called pandoc-citeproc which was previously installed either by pandoc itself or by citeproc-hs has disappeared. Reproducible: Always Steps to Reproduce: pandoc mereology.text --bibliography=$HOME/bibliography.mods Actual Results: pandoc: Error running filter pandoc-citeproc fd:4: hClose: resource vanished (Broken pipe) Expected Results: result of pandoc processing the supplied file Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.15-r3, 3.11.6-gentoo x86_64) ================================================================= System uname: Linux-3.11.6-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2 KiB Mem: 4048560 total, 589580 free KiB Swap: 2097144 total, 1824240 free Timestamp of tree: Thu, 07 Nov 2013 13:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r3, 3.2.5-r3 dev-util/ccache: 3.1.9 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13::<unknown repository>, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo misc ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -march=core2 -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-pipe -march=core2 -O2" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.bytemark.co.uk/gentoo" LANG="en_NZ.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/misc" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acpi action_modeswitch adl alsa amd64 apache2 applet asf avahi berkdb bluetooth bonobo branding browserplugin bzip2 cairo caps cdda cddb cdr cgi clang cli consolekit cpumining cracklib crypt css cups cxx daap dbus declarative device-mapper dirac diskio doc dot dri dts dvd dvdr dvdread dvi editor emacs emacs-w3 emboss enca encode esd examples exif extensible extra extras faac faad fam fastcgi fasttrack fbcondecor ffmpeg firefox flac fontconfig ftdi fts3 fuse g3dvl gbm gcj gd gdbm gdm gdu gedit gif gimp gimpprint git glamor gles2 gnome gnome-keyring gnomecd gnutella gnutls gpm graphics gsm gstreamer gtk gtk3 gtkhtml gzip-el hddtemp hscolour http humanities ical iconv icu id3 ilbc imagemagick imap introspection ipv6 ithreads jack jack-tmpfs jadetex java jpeg kdehiddenvisibility kdrive kpathsea ladspa lame latex lcms ldap libkms libnotify libsamplerate libsysfs llvm lm_sensors logrotate lto mad mdnsresponder-compat minizip mmap mmx mmxext mng modules mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mpeg mpeg2 mplayer mtp mudflap multilib multitarget music musicbrainz musizbrainz mysql nat nautilus ncurses netlink network networkmanager nls nptl nptlonly nsplugin ogg opencl opengl openldap openmp openvg opus pam pango pch pcre pdf perl php png policykit ppds pstricks qt3support qt4 r600-llvm-compiler readline real redland resolvconf roe rtmp rtsp samba sasl scanner schroedinger sdl secure-delete semantic-desktop session sharedmem sip sipim smp sndfile sockets sox spell sql sqlite srtp sse sse-filters sse2 ssl ssse3 startup-notification subversion suexec svg syncml system-sqlite system-v8 tagwriting tcpd tetex tex4ht theora threads threadsafe thunderbird tiff tk toolkit-scroll-bars tools truetype udev udisks unicode unlock-notify upower usb v4l vdpau video virtuoso vorbis wav webkit win32codecs wxwidgets x264 xcb xetex xft xinetd xml xnest xpm xulrunner xv xvfb xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm btrfs" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_NZ en_AU en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l nouveau modesetting ati r600 radeon fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
(In reply to Josh Parsons from comment #0) > Since upgrading to pandoc 1.12, pandoc fails with an error when I try to use > citations via citeproc-hs. It seems that a file called pandoc-citeproc which > was previously installed either by pandoc itself or by citeproc-hs has > disappeared. > > > > Reproducible: Always > > Steps to Reproduce: > pandoc mereology.text --bibliography=$HOME/bibliography.mods > Actual Results: > pandoc: Error running filter pandoc-citeproc > fd:4: hClose: resource vanished (Broken pipe) > > > Expected Results: > result of pandoc processing the supplied file I've pushed pandoc-1.12.1 recently, maybe it fixes things for you? I'd also like you to attack minimal example to reproduce and debug failure. Thanks!
Created attachment 363560 [details] bibliography file for testcase
Created attachment 363562 [details] markdown input for test case
I've uploaded suitable input files as attachments to test with. The following incantation works on pandoc 0.11.1-r1: pandoc --bibliography=test.mods test.text producing the following output: <p><span class="citation">(Jubien 1991)</span></p> <p>Jubien, Michael. 1991. “Could This Be Magic.” <em>The Philosophical Review</em> 100 (2) (April 1): 249–267. doi:10.2307/2185302. <a href="http://www.jstor.org/stable/2185302" title="http://www.jstor.org/stable/2185302">http://www.jstor.org/stable/2185302</a>.</p> I'll try with pandoc 0.12.1 when I get a chance.
Just tried test case with pandoc-1.12.1, pandoc-types-1.12.3: $ pandoc --bibliography=test.mods test.text pandoc: Error running filter pandoc-citeproc pandoc-citeproc not found in path $
(In reply to Josh Parsons from comment #5) > Just tried test case with pandoc-1.12.1, pandoc-types-1.12.3: > > $ pandoc --bibliography=test.mods test.text > pandoc: Error running filter pandoc-citeproc > pandoc-citeproc not found in path > $ Aha, thank you! I've added dev-haskell/pandoc-citeproc: >*pandoc-citeproc-0.1.2.1 (20 Nov 2013) > > 20 Nov 2013; Sergei Trofimovich <slyfox@gentoo.org> +metadata.xml, > +pandoc-citeproc-0.1.2.1.ebuild: > Initial commit. Supports using pandoc with citeproc. but didn't add it as a depend to pandoc yet. I'll ask upstream if they are OK to depend on pandoc-citeproc right in .cabal file.
app-text/pandoc-1.12.1 + dev-haskell/pandoc-citeproc-0.1.2.1 fix the problem for me. Thanks!
amd64/x86 stable