provide setting to override child_process.execFile for synctex

This commit is contained in:
Brian Gough
2016-07-29 14:54:24 +01:00
parent a7c7f2697f
commit 8da29e6024

View File

@@ -174,7 +174,8 @@ module.exports = CompileManager =
_runSynctex: (args, callback = (error, stdout) ->) -> _runSynctex: (args, callback = (error, stdout) ->) ->
bin_path = Path.resolve(__dirname + "/../../bin/synctex") bin_path = Path.resolve(__dirname + "/../../bin/synctex")
seconds = 1000 seconds = 1000
child_process.execFile bin_path, args, timeout: 10 * seconds, (error, stdout, stderr) -> synctex = Settings.clsi?.synctex?.command?(__dirname, child_process) || child_process
synctex.execFile bin_path, args, timeout: 10 * seconds, (error, stdout, stderr) ->
if error? if error?
logger.err err:error, args:args, "error running synctex" logger.err err:error, args:args, "error running synctex"
return callback(error) return callback(error)