Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch configuration fails to cwd #3579

Open
bc0n opened this issue Apr 5, 2024 · 1 comment
Open

Launch configuration fails to cwd #3579

bc0n opened this issue Apr 5, 2024 · 1 comment

Comments

@bc0n
Copy link

bc0n commented Apr 5, 2024

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

@mbUSC
Copy link

mbUSC commented Apr 19, 2024

I'm having the same problem.
Can't figure out how to set the cwd for the REPL process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants