Skip to content

Commit f53a1f0

Browse files
Fixed Talon grammar tests
1 parent e682c54 commit f53a1f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/cursorless-engine/src/testUtil/TalonRepl.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import * as os from "node:os";
1+
import { isWindows } from "@cursorless/node-common";
22
import * as childProcess from "node:child_process";
3+
import * as os from "node:os";
34

45
const MAX_OUTPUT_TO_EAT = 20;
56

@@ -16,7 +17,7 @@ export class TalonRepl {
1617
start(): Promise<void> {
1718
return new Promise<void>((resolve, reject) => {
1819
const path = getReplPath();
19-
this.child = childProcess.spawn(path);
20+
this.child = childProcess.spawn(path, { shell: true });
2021

2122
if (!this.child.stdin) {
2223
reject("stdin is null");
@@ -86,7 +87,7 @@ export class TalonRepl {
8687
}
8788

8889
function getReplPath() {
89-
return os.platform() === "win32"
90-
? `${os.homedir()}\\AppData\\Roaming\\talon\\venv\\3.11\\Scripts\\repl.bat`
90+
return isWindows()
91+
? `${os.homedir()}\\AppData\\Roaming\\talon\\venv\\3.13\\Scripts\\repl.bat`
9192
: `${os.homedir()}/.talon/.venv/bin/repl`;
9293
}

0 commit comments

Comments
 (0)