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
added troubleshooting message on build failure #7037
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
I don't have the part in the message about how to set up your config files for
options in my Also, is there a better approach to printing the message on build failure then just wrapping |
The approach seems reasonable. I'm not sure off the top of my head why the config wouldn't work. |
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.
I agree some more details could be useful for resolving OOM errors.
How does this combine with the existing message about checking the debug log for details (which comes first)? Would it be possible for this message to only be shown if an OOM error actually occurred?
during the Webpack build, which helps to improve JupyterLab's overall | ||
performance. However, the minifier plugin used by Webpack is very memory | ||
intensive, so turning it off may help the build finish successfully in | ||
low-memory environments. |
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.
These longer texts should probably go into the flag help text as well (instead?).
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.
I did think about that. The reason why I didn't is that would make the help text for those flags significantly longer/more detailed than the help text for all of the other flags. I guess that's no real reason not to, though. Should I put the longer explanations in the help text regardless?
|
||
- `minimize`: This option controls whether your JS bundle is minified | ||
during the Webpack build, which helps to improve JupyterLab's overall | ||
performance. However, the minifier plugin used by Webpack is very memory |
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.
"overall performance" -> "initial load times", (unless I'm misunderstanding what the minimizer does)
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.
You may know more than I do. Obviously minimization helps with initial load (and any subsequent lazy loading). Does it have no other benefit?
@telamonian, I figured out the config issue. The The I think we goofed by not claiming our name as |
@blink1073 Wait, what? So does that mean the name of the config file should be just 👍 to making Edit:I just tested adding the |
Is there a way to generate jupyter <something> --generate-config ? Right now the message just tells people to create a blank file named |
@vidartf I'm pretty sure that this message would print first. Presumably the existing message emits from a scope enclosing the
If I knew more about the possible range of exceptions that can be raised in OOM circumstances, then yes. Otherwise, no. From my own experience, I know that sometimes OOM errors manifest as segfaults (which I'm not even sure we can catch reliably in Python). Another question is if we can differentiate OOM errors in a cross-platform way (I don't really know how these things manifest in Windows). Do you know more about it? |
The
If we change this to
|
I say we move to |
@blink1073 Should we do anything related to this for the jlab 2.0 release? |
92d0c55
to
96e3742
Compare
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.
Thanks! Let's save the config changes for when we switch to jupyter_server
.
References
#6907 (comment)
Code changes
Wraps the
build
function inLabBuildApp
in atry...except
that will print a helpful troubleshooting message if the build fails.User-facing changes
Users get a troubleshooting message if their build fails.
Backwards-incompatible changes
None