-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fixes directory not found error when preferred_dir is set #12220
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
fixes directory not found error when preferred_dir is set #12220
Conversation
Thanks for making a pull request to jupyterlab! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with the identified failing scenario (both root_dir and preferred_dir set), and now no more error message is shown and the opened notebook is restored. LGTM. Thx @andrewfulton9
@meeseeksdev please backport to 3.3.x |
Benchmark reportThe execution time (in milliseconds) are grouped by test file, test type and browser. The mean relative comparison is computed with 95% confidence. Results table
Changes are computed with expected as reference. |
@jtpio @fcollonval |
Maybe Meeseeks is down at the moment. We can give it another try and otherwise report on the repo. Looks like this issue might be related: scientific-python/MeeseeksDev#59 |
@meeseeksdev please backport to 3.3.x |
…eferred_dir is set
@messeeksdev is back up and running. thx @jtpio |
…220-on-3.3.x Backport PR #12220 on branch 3.3.x (fixes directory not found error when preferred_dir is set)
References
#12111
Code changes
Made change to filebrowser
FileBrowserModel.restore
so that if it is restoring a path from a previous session, it cds to the root directory before restoring the path. This fixes the directory not found error thrown whenpreferred_dir
was set and the user was restoring a previous session with a sub-folder of thepreferred_dir
.User-facing changes
User will no longer get a directory not found error when restoring a previous session in a sub-folder of their set
preferred_dir
.Backwards-incompatible changes
None that I am aware.