From f1e0a7a965d5fb17a5f5b2c2c798ab6c73104846 Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Thu, 24 Aug 2023 15:37:04 +0100 Subject: [PATCH] fix: Clienttools terminal will fail on *nix platforms Signed-off-by: Gordon Smith --- src/ecl/terminal.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ecl/terminal.ts b/src/ecl/terminal.ts index 6bfe336c..9d1041a1 100644 --- a/src/ecl/terminal.ts +++ b/src/ecl/terminal.ts @@ -1,13 +1,16 @@ import { ClientTools } from "@hpcc-js/comms"; import * as vscode from "vscode"; +import * as os from "os"; import { sessionManager } from "../hpccplatform/session"; +const PATH_SEP = os.platform() === "win32" ? ";" : ":"; + export function eclTerminal(ct: ClientTools) { const ver = ct.versionSync(); const terminal = vscode.window.createTerminal({ name: `ECL v${ver.major}.${ver.minor}.${ver.patch}`, env: { - PATH: `${ct.binPath};${process.env.PATH}` + PATH: `${ct.binPath}${PATH_SEP}${process.env.PATH}` } }); terminal.show();