Skip to content

Commit

Permalink
Fix running the compiler on Windows (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: amylizzle <[email protected]>
  • Loading branch information
amylizzle and amylizzle authored Aug 12, 2024
1 parent 791ce5b commit 3408055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class ODBinaryDistribution implements OpenDreamInstallation {
};

const compilerPath = `${this.path}/DMCompiler_${getArchSuffix()}/DMCompiler${os.platform() === "win32" ? ".exe" : ""}`;
let compileProcess = spawn(compilerPath, [dme], { cwd: workspaceFolder.path });
let compileProcess = spawn(compilerPath, [dme], { cwd: workspaceFolder.fsPath });

compileProcess.on('close', (code) => {
console.log(`Compiler process exited with code ${code}`);
Expand Down

0 comments on commit 3408055

Please sign in to comment.