question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lua generator test failure: Loops 3

See original GitHub issue

Error message: [string "function unittest_report()..."]:68: '=' expected near 'continue'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
TonyLianLongcommented, Jul 7, 2017

@rachel-fenichel I will try to have a look at the generator and rework it if possible.

0reactions
drigzcommented, Aug 8, 2017

Looks like you’ve sorted this out, but I can confirm that the generator was written for Lua >=5.2. It only adds the continue label if a continue statement is there for two reasons:

  • to keep the generated code clean
  • so that basic loops work in older versions of Lua
Read more comments on GitHub >

github_iconTop Results From Across the Web

Lua Loop | Types of Loops in Lua Programming | Examples
Lua loop is statements that allow the user to execute a specific statement or a group ... Web development, programming languages, Software testing...
Read more >
9.3 – Coroutines as Iterators - Lua.org
We can see loop iterators as a quite specific example of the producer-consumer pattern. An iterator produces items to be consumed by the...
Read more >
Why does Lua have no "continue" statement? - Stack Overflow
This will loop 5 times, printing 1, 2, and 3 each time. ... achieved by enclosing all remaining statements until the end scope...
Read more >
Lua - Quick Guide - Tutorialspoint
To build/test Lua in the Mac OS X, use the following command − $ curl -R -O http://www.lua.org/ftp/lua-5.2.3.tar.gz $ tar zxf lua-5.2.3.tar.gz $...
Read more >
Range Iterator - lua-users wiki
... when the two or three parameters of the basic for loop are returned by ... Some functions accept the returned values of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found