You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I execute a Julia file, the repl working directory stays at my vscode workspace instead of changing to the file's folder, despite having set cwd to any of
{
"name": "JuliaCurrentFile",
"type": "julia",
"request":"launch",
"program": "${file}",
"stopOnEntry": false,
"cwd": "${fileDirname}", // the current opened file's folder path
//"cwd": "${fileDirnameBasename}", // the current opened file's folder name
//"cwd": "${relativeFileDirname}", // the current opened file's dirname relative to workspaceFolder
//"cwd": "${fileWorkspaceFolder}", // the current opened file's workspace folder
//"cwd": "ben", //something should complain about a non-existent folder
"juliaEnv": "${command:activeJuliaEnvironment}"
}
The file path looks like .../vscodeWorkspace/subfolder/currentFile.jl. In order for currentFile to execute correctly, the repl needs to be set to subfolder, but it remains at vscodeWorkspace.
Of course, I can work around this by adding cd(@__DIR__) to currentFile.jl, but the cwd option does not appear to be respected. Was cwd in #102 or #1348 ever merged?
Thanks
The text was updated successfully, but these errors were encountered:
When I execute a Julia file, the repl working directory stays at my vscode workspace instead of changing to the file's folder, despite having set cwd to any of
The file path looks like .../vscodeWorkspace/subfolder/currentFile.jl. In order for currentFile to execute correctly, the repl needs to be set to subfolder, but it remains at vscodeWorkspace.
Of course, I can work around this by adding
cd(@__DIR__)
to currentFile.jl, but the cwd option does not appear to be respected. Was cwd in #102 or #1348 ever merged?Thanks
The text was updated successfully, but these errors were encountered: