Re: [code] run.lua module seems to have an error in LuaJIT

From: Mitchell <>
Date: Mon, 2 Apr 2012 16:39:45 -0400 (Eastern Daylight Time)

Hi Ryan,

On Mon, 2 Apr 2012, Ryan Pusztai wrote:

> Hi,
> I assume that I am missing something here, but when I run a .lua file in TA
> I get this error:
> .../bin/textadept_5.2.x86_64/modules/textadept/run.lua:71: attempt to
> concatenate local 'code' (a nil value)
> I looked at this code and it looks like it is expecting io.popen() to
> return the "status code/signal" but that is not valid in Lua 5.1 (LuaJIT
> only supports 5.1, correct?) only 5.2. Is this correct?

You are correct. Line 71 should be changed from

     if ok then ...


     if ok and status then ...


That should fix the problem.

Thanks for the report,

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 02 Apr 2012 - 16:39:45 EDT

This archive was generated by hypermail 2.2.0 : Tue 03 Apr 2012 - 06:34:52 EDT