Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The "Loading…" dialog should show what is blocking workspace restoration #18149

Open
@krassowski

Description

@krassowski

Problem

We have this dialog:

dialog=newDialog({
title:trans.__('Loading…'),
body:trans.__(`The loading screen is taking a long time.
Would you like to clear the workspace or keep waiting?`),
buttons:[
Dialog.cancelButton({label:trans.__('Keep Waiting')}),
Dialog.warnButton({label:trans.__('Clear Workspace')})
]
});

which shows up after 2 minutes if theapp.restored signal did not fire:

/**
* The interval in milliseconds before recover options appear during splash.
*/
constSPLASH_RECOVER_TIMEOUT=12000;

When something blocks the restoration it is super hard to debug it; this tripped many users for example#6696. The restoration can be blocked by a stale network request of some plugin or some plugin just not activating correctly.

Proposed Solution

In past t debug it locally I was adding a racing timeout of ~2 minutes around the call toactivate() in jupyterlab startup/bootstrap code. This is not something we could ship as then we do not allow to activate the extension if for some reason the startup is expected to be slow, but we could:

  • a) have a race promise which logs all plugins which take longer than 30 seconds to activate
  • b) show the list of plugins which have started activation and are pending activation when the dialog is shown

Additional context

We would want to measure the time individual plugins take to load for use in extension manager too:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp