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

Restarting R or Python loses current working directory #3188

Open
jmcphers opened this issue May 19, 2024 · 2 comments
Open

Restarting R or Python loses current working directory #3188

jmcphers opened this issue May 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jmcphers
Copy link
Collaborator

jmcphers commented May 19, 2024

Positron Version:

Positron Version: 2024.05.0 (Universal) build 1255
Code - OSS Version: 1.89.0
Commit: a60c905e786adc4cfccae02d538c5a2ac5ad9b01
Date: 2024-05-16T03:42:49.370Z
Electron: 28.2.8
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0

Steps to reproduce the issue:

  1. Start R or Python.
  2. Note the current working directory.
  3. Change the working directory (e.g. setwd in R)
  4. Restart the interpreter.
  5. Note the current working directory
image

What did you expect to happen?

It is debatable whether or not the "current working directory" is part of the state that should be cleared in a restart. However, existing tools such as Jupyter and RStudio appear to preserve it across restarts, so we should too.

Originally noted by @gadenbuie in #3155

@jmcphers jmcphers added the bug Something isn't working label May 19, 2024
@seeM
Copy link
Contributor

seeM commented May 20, 2024

Maybe for a separate issue: I think this would make me want to click on the little working directory component in order to change the working directory. Could we add that interaction?

@gadenbuie
Copy link

I think this would make me want to click on the little working directory component in order to change the working directory. Could we add that interaction?

There are were a few issues opened around working directory behavior, but I started with #3155 almost entirely because I kept trying to click the working directory component 😄

@petetronic petetronic added this to the Release Candidate milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants