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

Fix issue where preferredPath is incorrectly calculated #233

Merged
merged 1 commit into from
Dec 28, 2021

Conversation

mlucool
Copy link
Contributor

@mlucool mlucool commented Dec 28, 2021

preferredDir seems to be unsued in all of the jupyterlab codebase so this was removed as well

preferredDir seems to be unsued in all of the jupyterlab codebase
so this was removed as well
@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@aba3216). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #233   +/-   ##
=======================================
  Coverage        ?   76.53%           
=======================================
  Files           ?       29           
  Lines           ?     2220           
  Branches        ?        0           
=======================================
  Hits            ?     1699           
  Misses          ?      521           
  Partials        ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aba3216...3a8ef63. Read the comment docs.

Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@blink1073 blink1073 added the bug label Dec 28, 2021
@blink1073 blink1073 merged commit cce8b4e into jupyterlab:main Dec 28, 2021
@mlucool
Copy link
Contributor Author

mlucool commented Dec 28, 2021

Thanks @blink1073! Is there a release planned soon? If not, I can install from this commit for the time being.

@blink1073
Copy link
Contributor

I'll cut a release today with this and #234

@krassowski
Copy link
Member

I think this fixed jupyter-server/jupyter_server#647, is this right?

@mlucool
Copy link
Contributor Author

mlucool commented Dec 29, 2021

No. I think that needs to be solved here: https://github.com/jupyter-server/jupyter_server/blob/main/jupyter_server/serverapp.py#L1539.

I'm not sure what a solution looks like. Imagine:

> root_dir=/foo
> pwd=/foo/bar/baz
> ls $pwd
foo
bar
> preferred_dir=bar

What does preferred_dir mean here: /foo/bar or /foo/bar/baz/bar? Today it means relative to cwd like all other directories (i.e. /foo/bar/baz/bar). Now we want it to sometimes means relative to root_dir and sometimes to cwd.

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

Successfully merging this pull request may close these issues.

4 participants