public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Jacco Steur <jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Using lua filter include-files on pandoc 2.5 does not work
Date: Mon, 17 Jan 2022 08:14:02 -0800 (PST)	[thread overview]
Message-ID: <9aaa4fcd-5dad-4278-bd37-0a1e3e4073b1n@googlegroups.com> (raw)
In-Reply-To: <8735lmefdv.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 3495 bytes --]

Hi Albert,

Thanks for the swift response. That did the trick. I am amble to run the 
include-file filter now.

The next thing is that I run into this issue:
:~/workspace/lua-filters/include-files$ ./run-it.sh 
Error running filter include-files.lua:
error loading module 'socket.core' from file 
'/opt/zbstudio/bin/linux/x64/clibs53/socket/core.so':
        *Dynamic loading not supported*
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        /opt/zbstudio/lualibs/socket.lua:12: in main chunk
        [C]: in function 'require'
        /opt/zbstudio/lualibs/mobdebug/mobdebug.lua:102: in main chunk
        [C]: in function 'require'
        include-files.lua:13: in main chunk

I do the following... I set my variables like so:
export ZBS=/opt/zbstudio
export LUA_PATH="./?.lua;$ZBS/lualibs/?/?.lua;$ZBS/lualibs/?.lua"
export LUA_CPATH="$ZBS/bin/linux/x64/?.so;$ZBS/bin/linux/x64/clibs53/?.so"

My architecture is:
$ uname -i
x86_64

pandoc uses LUA5.3

There is some remark in the troubleshooting section about dynamic libraries 
not enabled:
"

   - 
   
   *I get dynamic libraries not enabled error.* You may get the following 
   error when loading socket.core on Linux: *error loading module 
   ‘socket.core’ from file ‘/opt/zstudio/bin/linux/x86/clibs/socket/core.so’: 
   dynamic libraries not enabled; check your Lua installation*. This most 
   likely means that the Lua interpreter you are using was built 
   without LUA_USE_DLOPEN option enabled. You can either enable it or 
   statically link your application with luasocket.
   
"
I am using the lua that comes with the debugger and pandoc. The 
troubleshooting section does not really give a pointer where to go next. 
What could this be?




On Monday, 17 January 2022 at 13:06:00 UTC+1 Albert Krewinkel wrote:

>
> Jacco Steur <jacco...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > My goal is debugging LUA filters with the zerobrane ide.
> >
> > I got stuck on this:
> >
> > On Ubuntu I installed pandoc 2.5 using sudo apt install pandoc.
> >
> > [...]
> >
> > What am I doing wrong here......
>
> You are doing everything right, it's just that the pandoc version
> shipped by Ubuntu is too old for this. The `pandoc.path` module is a
> relatively recent addition that became available in pandoc 2.12,
> released about a year ago. You can install a current version with the
> help of the *deb* packages published on the official pandoc release
> page: https://github.com/jgm/pandoc/releases/latest
>
> Alternatively, you could use a Docker image that suits your needs, e.g.,
> <https://hub.docker.com/r/pandoc/core>, but the .deb installer is
> probably easier.
>
> HTH,
> Albert
>
> PS: This is also a shortcoming of the filter: it would be better if the
> filter was checking the pandoc version, returning a meaningful error
> message if the version is too old. I'll go and fix that.
>
> -- 
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9aaa4fcd-5dad-4278-bd37-0a1e3e4073b1n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 5162 bytes --]

  parent reply	other threads:[~2022-01-17 16:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AQHYlkmLQSWBnyserE2AdkoYSfVyWa2O6UgA>
2022-01-17  7:48 ` Jacco Steur
     [not found]   ` <091e1142-2cf5-40f0-a0f4-1c6a2bd0af4bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-17 12:05     ` Albert Krewinkel
     [not found]       ` <8735lmefdv.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-01-17 16:14         ` Jacco Steur [this message]
     [not found]           ` <9aaa4fcd-5dad-4278-bd37-0a1e3e4073b1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-17 17:10             ` Albert Krewinkel
     [not found]               ` <87y23ecmd7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-01-17 20:59                 ` Jacco Steur
2022-01-17 17:55             ` T. Kurt Bond
     [not found]               ` <CAN1EhV9rpeD57BXHOhN8=3DBEWfMYmD4wsdkGg+Q5L4Bnr7-qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-17 20:57                 ` Jacco Steur
     [not found]                   ` <CADjKMHroW1=m_XaNT+B7Mn8PU8eUc2nEp4AVA6B1fVwMr4W2Hw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-17 22:13                     ` T. Kurt Bond
     [not found]                       ` <CAN1EhV-8P3RK06EdJ9U3hL-AZgxE6i93BMVDc3ySn4cuYz_esg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-12 23:45                         ` Michael Hayes
     [not found]                           ` <9e1098df-5871-4650-8171-c5b1889171d7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-07-25  9:43                             ` AW: " denis.maier-NSENcxR/0n0
     [not found]                               ` <bd9382fbf7ab4205ad04f5dfd398ed5e-NSENcxR/0n0@public.gmane.org>
2022-07-27  9:18                                 ` Michael Hayes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9aaa4fcd-5dad-4278-bd37-0a1e3e4073b1n@googlegroups.com \
    --to=jacco.steur-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).