We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39c3f79 commit d87402dCopy full SHA for d87402d
src/arduino/arduino.ts
@@ -838,14 +838,24 @@ export class ArduinoApp {
838
}
839
};
840
841
+ /**
842
+ *
843
+ * @param dc
844
+ */
845
private makeCompilerParserEngines(dc: DeviceContext) {
846
+
847
+ let sketch = path.basename(dc.sketch);
848
+ const dotcpp = sketch.endsWith(".ino") ? ".cpp" : "";
849
+ sketch = `-o\\s+\\S*${ccp.regExEscape(sketch)}${dotcpp}\\.o`;
850
851
const matchPattern = [
852
// trigger parser when compiling the main sketch
- ` ${path.basename(dc.sketch)}.cpp.o`,
853
+ RegExp(sketch),
854
];
855
856
const dontMatchPattern = [
857
// make sure Arduino's not testing libraries
- /-o\s\/dev\/null/,
858
+ /-o\s+\/dev\/null/,
859
860
861
// setup the parser with its engines
0 commit comments