From 8f4e032c261e817f939ffd2c65e878d4f6eea0ec Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 10 Apr 2014 11:01:06 -0400 Subject: Temporarily disable spawn in OSX due to GLib crashes. --- modules/textadept/run.lua | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index a4b5f189..9a3e561b 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -106,7 +106,7 @@ local function command(commands, event) preferred_view = view local events_emit = events.emit local function emit_output(output) - ui.SILENT_PRINT = true + ui.SILENT_PRINT = not OSX and true for line in output:gmatch('[^\r\n]+') do events_emit(event, data, line:iconv('UTF-8', _CHARSET)) end @@ -116,16 +116,8 @@ local function command(commands, event) if commands == M.build_commands then emit_output('> cd '..cwd) end emit_output('> '..command) - local p, err = spawn(command, cwd, emit_output, emit_output, - not OSX and emit_status or nil) + local p, err = spawn(command, cwd, emit_output, emit_output, emit_status) if not p then error(err) end - if OSX then - -- Workaround for GTKOSX abort caused by failed assertion. - timeout(1, function() - if p:status() == 'running' then return true end - emit_status('Process completed') - end) - end M.proc, M.cwd = p, cwd end -- cgit v1.2.3