Skip to content

Commit 1dd7b85

Browse files
committed
fix: use full homepath
1 parent 6ebe3d5 commit 1dd7b85

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/plutoServerTask.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import * as vscode from "vscode";
2+
import * as os from "os";
3+
import * as path from "path";
24
import { isDefined } from "./helpers.ts";
35
import { isPortAvailable, findAvailablePort } from "./portUtils.ts";
46
import { getExecutableName, isWindows } from "./platformUtils.ts";
@@ -260,7 +262,7 @@ end`
260262
env: {
261263
CODE: juliaScript,
262264
VSCODE_PLUTO_AUTH_FILE: authOutputUri.fsPath,
263-
JULIA_DEPOT_PATH: "~/.julia",
265+
JULIA_DEPOT_PATH: path.join(os.homedir(), ".julia"),
264266
},
265267
}
266268
);
@@ -352,7 +354,7 @@ end`
352354
// Build environment variables
353355
const env: { [key: string]: string } = {
354356
JULIA_PLUTO_VSCODE_WORKSPACE: workspacePath,
355-
JULIA_DEPOT_PATH: "~/.julia",
357+
JULIA_DEPOT_PATH: path.join(os.homedir(), ".julia"),
356358
JULIA_LOAD_PATH: isWindows() ? ";" : ":",
357359
};
358360
if (packageServer) {

0 commit comments

Comments
 (0)