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

Adding a mime extension to the webpack config #8825

Merged
merged 9 commits into from Aug 17, 2020

Conversation

mnowacki-b
Copy link
Contributor

@mnowacki-b mnowacki-b commented Aug 12, 2020

References

Adds to: #7468

Code changes

  • We making it possible for package to include normal and mime extension
  • We are moving script loading path logic from server to front end

TODO

- We making it possible for package to inclue normal and mime extension
- We are moving script loading path logic from server to front end
@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

@github-actions github-actions bot added tag:Design System CSS If a PR is editing any CSS files please add this tag for design team to review. tag:CSS For general CSS related issues and pecadilloes tag:Examples labels Aug 12, 2020
@jasongrout jasongrout added this to the 3.0 milestone Aug 13, 2020
@jasongrout jasongrout added this to In progress in Extension System rework Aug 13, 2020
- adding styles
- changing extension data format and initialization
@mnowacki-b
Copy link
Contributor Author

@jasongrout
The styles are fixed now!

Screen Shot 2020-08-13 at 11 56 50 AM

@jasongrout
Copy link
Contributor

The styles are fixed now!

Excellent! Looks great!

I made one comment about how to use the promises.

@mnowacki-b
Copy link
Contributor Author

@jasongrout
Thank you for the feedback!
I made the recommended changes, please take a look.
Thanks!

@jasongrout
Copy link
Contributor

@mnowacki-b - I extended the error handling so that an error in loading a single module would not halt the application, using the new Promise.allSettled function. What do you think of my latest commit?

@mnowacki-b
Copy link
Contributor Author

@jasongrout
Yeah, I think it looks much better now with Promise.allSettled
👍

@jasongrout
Copy link
Contributor

Thanks, and thanks for the cleanup. Do you want to port these changes over to the main application js file at https://github.com/jupyterlab/jupyterlab/blob/master/dev_mode/index.js ?

@mnowacki-b
Copy link
Contributor Author

Sure will do

@mnowacki-b
Copy link
Contributor Author

I tested the dev_mod changes by rebuilding the app and running jupyter lab --dev-mode

Everything seems to run fine but I do see the following warnings :

main.ecdd33cd71a3a37854c5.js:372 Unsatisfied version 16.9.0 of shared singleton module react (required ^15.5.4)
getSingletonVersion @ main.ecdd33cd71a3a37854c5.js:372

31packages_settingregistry_lib_index_js.589d5d2e20e120661a9a.js:438 Ignored setting registry preload errors. TypeError: Cannot read property 'jupyter.lab.transform' of undefined
    at SettingRegistry._transform (packages_settingregistry_lib_index_js.589d5d2e20e120661a9a.js:481)
    at packages_settingregistry_lib_index_js.589d5d2e20e120661a9a.js:434
    at Array.map ()
    at SettingRegistry._preload (packages_settingregistry_lib_index_js.589d5d2e20e120661a9a.js:431)
    at new SettingRegistry (packages_settingregistry_lib_index_js.589d5d2e20e120661a9a.js:228)
    at activate (static_index_out_js-webpack_sharing_consume_default_react_react-webpack_sharing_consume_defau-85274a.c122a23c4e684be96cc4.js:4916)

@blink1073
Copy link
Member

31packages_settingregistry_lib_index_js.589d5d2e20e120661a9a.js:438 Ignored setting registry preload errors. TypeError: Cannot read property 'jupyter.lab.transform' of undefined

This is being tracked in jupyterlab/jupyterlab_server#113

@blink1073
Copy link
Member

Usage test is failing on: python -m jupyterlab.browser_check --core-mode with a timeout: TimeoutError: waiting for selector "#browserTest" failed: timeout 100000ms exceeded

Copy link
Contributor

@jasongrout jasongrout left a comment

Choose a reason for hiding this comment

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

The code changes look good to me. Thanks!

@jasongrout
Copy link
Contributor

Probably --core-mode doesn't work right now, we'll need to make a release to update the core shipped js.

@jasongrout
Copy link
Contributor

Yep, the error is because we changed the PageConfig metadata, and the --core-mode is expecting the old version. We'll need a release to fix core mode.

@jasongrout jasongrout merged commit f9810ed into jupyterlab:master Aug 17, 2020
Extension System rework automation moved this from In progress to Done Aug 17, 2020
@jasongrout
Copy link
Contributor

Thanks @mnowacki-b!

@blink1073
Copy link
Member

Sweet! Thanks @mnowacki-b and @jasongrout!

@mnowacki-b mnowacki-b deleted the rmime branch August 17, 2020 21:46
@mnowacki-b
Copy link
Contributor Author

Thank you @jasongrout & @blink1073

@github-actions github-actions bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Feb 14, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. tag:CSS For general CSS related issues and pecadilloes tag:Design System CSS If a PR is editing any CSS files please add this tag for design team to review. tag:Examples
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants