Re: [code] [textadept] Error in textadept.run.build

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Mon, 12 Sep 2016 12:28:07 +0100

Hi,

I meant to say this is on the 9.0 beta version!

Chris

On Mon, Sep 12, 2016 at 12:27:12PM +0100, Chris Emerson wrote:
> Hi,
>
> textadept.run.build() raises an error because the variable `event` is nil/
> undefined.
>
> The following quick fix (copying the initialisation from another function)
> seems to make it work:
>
> --- a/ta_releases/textadept_9.0_beta.x86_64/modules/textadept/run.lua
> +++ b/ta_releases/textadept_9.0_beta.x86_64/modules/textadept/run.lua
> @@ -289,6 +289,8 @@ function M.build(root_directory)
> end
> end
> -- Run the command.
> + local event = commands == M.compile_commands and events.COMPILE_OUTPUT or
> + events.RUN_OUTPUT
> cwd = working_dir or root_directory
> events.emit(event, '> cd '..cwd)
> events.emit(event, '> '..command:iconv('UTF-8', _CHARSET))
>
> Chris
> --
> 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.
>

-- 
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 Mon 12 Sep 2016 - 07:28:07 EDT

This archive was generated by hypermail 2.2.0 : Tue 13 Sep 2016 - 06:31:46 EDT