Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2017-11-03 16:48:20 -0400
committerDoug Schaefer2017-11-03 16:48:20 -0400
commit87cd8401f4e36dfc25912e6c768dde2ae9caed4a (patch)
tree6aa870bd1899bc7e3bc6279c958389dc938f09af /toolchains
parentceeac1865a9b25e7bb97142abb3ac2d4b8213dc5 (diff)
downloadorg.eclipse.cdt-87cd8401f4e36dfc25912e6c768dde2ae9caed4a.tar.gz
org.eclipse.cdt-87cd8401f4e36dfc25912e6c768dde2ae9caed4a.tar.xz
org.eclipse.cdt-87cd8401f4e36dfc25912e6c768dde2ae9caed4a.zip
Hook up the error parser properly in the build configuration.
So we can have the error partitions that work with double clicking in the build console. Change-Id: I357f4efb8fd16232b78b18958c9863071feeebcc
Diffstat (limited to 'toolchains')
-rw-r--r--toolchains/arduino/org.eclipse.cdt.arduino.core/src/org/eclipse/cdt/arduino/core/internal/build/ArduinoBuildConfiguration.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/toolchains/arduino/org.eclipse.cdt.arduino.core/src/org/eclipse/cdt/arduino/core/internal/build/ArduinoBuildConfiguration.java b/toolchains/arduino/org.eclipse.cdt.arduino.core/src/org/eclipse/cdt/arduino/core/internal/build/ArduinoBuildConfiguration.java
index 01ba5a08f1..5005862906 100644
--- a/toolchains/arduino/org.eclipse.cdt.arduino.core/src/org/eclipse/cdt/arduino/core/internal/build/ArduinoBuildConfiguration.java
+++ b/toolchains/arduino/org.eclipse.cdt.arduino.core/src/org/eclipse/cdt/arduino/core/internal/build/ArduinoBuildConfiguration.java
@@ -741,11 +741,12 @@ public class ArduinoBuildConfiguration extends CBuildConfiguration
try (ErrorParserManager epm = new ErrorParserManager(project, getBuildDirectoryURI(), this,
getToolChain().getErrorParserIds())) {
+ epm.setOutputStream(console.getOutputStream());
ProcessBuilder processBuilder = new ProcessBuilder().command(getBuildCommand())
.directory(getBuildDirectory().toFile());
setBuildEnvironment(processBuilder.environment());
Process process = processBuilder.start();
- if (watchProcess(process, new IConsoleParser[] { epm }, console) == 0) {
+ if (watchProcess(process, new IConsoleParser[] { epm }) == 0) {
showSizes(console);
}
}
@@ -773,7 +774,7 @@ public class ArduinoBuildConfiguration extends CBuildConfiguration
setBuildEnvironment(processBuilder.environment());
Process process = processBuilder.start();
- watchProcess(process, new IConsoleParser[0], console);
+ watchProcess(process, console);
getBuildContainer().refreshLocal(IResource.DEPTH_INFINITE, monitor);
} catch (IOException e) {

Back to the top