From 35f2f3b9de60586eaee944f8457f5647dbb44354 Mon Sep 17 00:00:00 2001 From: Ruffin Date: Mon, 22 Jul 2024 10:49:36 -0500 Subject: [PATCH] Stop, drop, and no log - continued (#1294) --- src/ros/ros2/ros2.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ros/ros2/ros2.ts b/src/ros/ros2/ros2.ts index bdccf302..ca098ba2 100644 --- a/src/ros/ros2/ros2.ts +++ b/src/ros/ros2/ros2.ts @@ -85,7 +85,9 @@ export class ROS2 implements ros.ROSApi { env: this.env, cwd: workspaceDir }; - const result = await promisifiedExec(`colcon list -p --base-paths "${workspaceDir}"`, opts); + const isWin = process.platform === "win32"; + const nullPath = isWin ? "nul" : "/dev/null"; + const result = await promisifiedExec(`colcon list -p --base-paths "${workspaceDir}" --log-base ${nullPath}`, opts); // error out if we see anything from stderr. if (result.stderr) {