From f8697b8dd30773f5be19270afbcd480dd1aa0098 Mon Sep 17 00:00:00 2001 From: Janos Gyerik Date: Fri, 7 Jul 2017 13:41:45 +0200 Subject: [PATCH] Fix issue reporting breaking unexpectedly --- lib/sonarlint.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/sonarlint.js b/lib/sonarlint.js index ba20ff9..91ac84f 100644 --- a/lib/sonarlint.js +++ b/lib/sonarlint.js @@ -52,7 +52,21 @@ class SonarLintLanguageServer extends AutoLanguageClient { } spawnServer (command, args) { - return cp.spawn(command, args) + const process = cp.spawn(command, args); + + process.stdout.on('data', (data) => { + this.logger.debug(`SonarLint Language Server stdout: ${data}`); + }); + + process.stderr.on('data', (data) => { + this.logger.debug(`SonarLint Language Server stderr: ${data}`); + }); + + process.on('close', (code) => { + this.logger.debug(`SonarLint Language Server process exited with code ${code}`); + }); + + return process; } getInitializeParams (projectPath, process) {