Re: [code] Re: [textadept] experimental spawn

From: Mitchell <m.att.foicica.com>
Date: Fri, 22 Mar 2013 12:11:13 -0400 (Eastern Daylight Time)

Ryan,

On Thu, 21 Mar 2013, Ryan Pusztai wrote:

> Hi Mitchell,
>
> On Tue, Mar 19, 2013 at 7:03 PM, Mitchell <m.att.foicica.com> wrote:
>
>> Hi Ryan,
>
> lspawn is still supported, but the binaries are compiled for Lua 5.2. Since
>> you are on Linux, it should not be hard to compile for LuaJIT. Looking at
>> the code, the changes you'd have to make include:
>>
>> lspawn.c:
>> * Add "#define lua_rawlen lua_objlen" in the #includes area.
>>
>> Makefile:
>> * Line 3: change ta_src to your ta source directory.
>> * Line 60: change lua/src to luajit/src.
>
>
> This worked great. It now loads.
>
> I am now trying to launch make and have it's output shown in a [Message
> Buffer]. I am launching it from a context menu and a keyboard shortcut. I
> have added the code that I am using, but the issue is that it seems like
> the spawn is stopping right away and not continuing after a single file is
> told to build by make. Do you have any ideas how to add Make support to TA?

So get the latest lspawn.c from hg and also replace 'envp' in the
'g_spawn_async_with_pipes' call with 'NULL'. This will ensure 'make'
inherits ENV from ta. I'll have to commit a better change later, but
that's the quick fix.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 22 Mar 2013 - 12:11:13 EDT

This archive was generated by hypermail 2.2.0 : Sat 23 Mar 2013 - 06:41:27 EDT