-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Set LabApp to fail when config files have errors. #5716
Comments
Yes! Several of us agree. |
@jasongrout My question is, how deep+wide in the inheritance tree should we go? Meaning, do we only want the LabApp to fail on config file errors? or all JupyterLab subcommands too? Further, all JupyterLab apps inherit from |
I would say that only having the LabApp fail would be a good start. I think having it on subcommands could become counterproductive. Are there any examples of lab subcommands that will do the wrong thing if the config is incorrect? |
A misconfigured app_dir in 'build' or 'labextension' could definitely give
you something you don't want or mysteriously can't use... But here
"misconfigured" probably just means "not what I expect" and not "a number".
Further, build may actually bring it into existence, so even if there was a
trait for PathWhatExists, it wouldn't work here.
… |
@bollwyvl, for the example you mentioned - Do any of the other subcommands look into the config file?
So the change would be in jupyter_core instead ? |
Wondering what is the current state of this issues :) Was this implemented @jupyterlab/committers ? |
I think this can be closed now? After Ian's fix in jupyter-core, I think we can now just set |
If jupyterlab config file contains an error, the jupyterlab app throws a warning, ignores the config file, and continues running the application.
Would it make more sense to, instead, fail fast when errors are found? This is a simple change. Just need to add
raise_config_file_errors = True
as an attribute in theLabApp
.This was raised in issue #5614. Opening this issue to discuss, as this will change the default behavior of jupyterlab.
The text was updated successfully, but these errors were encountered: