vsbenas / parser-gen

A parser generator in Lua using PEG syntax.
MIT License
49 stars 9 forks source link

Attempt to call field 'setlabels' (a nil value) #12

Open Pancakeddd opened 6 years ago

Pancakeddd commented 6 years ago

Hello. I have started to use parser-gen and i have ran into a error. Whenever i try to require parse-gen, it gives me the error in the title. I have the newest version of lpeglabel and parser-gen from luarocks. Thank you. Here is a image if that helps. https://i.imgur.com/9FicYjH.png

Pancakeddd commented 6 years ago

It seems like setlabels is not a function in relabel. You must have made a programming error or something. Here is the full table print of relabel if that helps https://i.imgur.com/xwDyFHw.png.

vsbenas commented 6 years ago

Hey, I saw lpeglabel changed the syntax of the tool and that probably broke compatibility. Try using an older version of lpeglabel.

On Mar 20, 2018 09:59, "Pancakeddd" notifications@github.com wrote:

It seems like setlabels is not a function in relabel. You must have made a programming error or something.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vsbenas/parser-gen/issues/12#issuecomment-374607623, or mute the thread https://github.com/notifications/unsubscribe-auth/AZe9qxsN1e2kRHlsIeY9H8IMDuUO9pMlks5tgQsvgaJpZM4Sx6x_ .

Pancakeddd commented 6 years ago

It seems that i can't get the older version of lpeglabel.

Pancakeddd commented 6 years ago

Hmm. Idk what to do.

bibby-nh commented 3 years ago

luarocks install LPegLabel 1.4.0-1 clears this up for me. versions 1.5 & 1.6 exhibit the error in the issue title.