Closed haifengkao closed 4 years ago
Expected The diagnostics shows the location of error
Actual The diagnostics is empty
when swift build failed, stderr is empty string but stdout has all the error messages if I remove if (stderr), the diagnostics displays correctly.
stderr
stdout
if (stderr)
// SwiftTool.js sb.on("exit", function (code, signal) { clientMain_1.trace(`***swift build command exited*** code: ${code}, signal: ${signal}`); clientMain_1.dumpInConsole("\n"); clientMain_1.diagnosticCollection.clear(); if (stderr) { dumpDiagnostics(); }
@haifengkao Good catch! Would you like to create a PR for this?
Has been fixed with latest release 2.8.2
too bad I didn't see your comment earlier :(
Expected The diagnostics shows the location of error
Actual The diagnostics is empty
when swift build failed,
stderr
is empty string butstdout
has all the error messages if I removeif (stderr)
, the diagnostics displays correctly.