Skip to content

Commit

Permalink
Backport PR #11476: Recommend trying prebuilt extension version in th…
Browse files Browse the repository at this point in the history
…e build failure dialog (#11481)

Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and krassowski committed Nov 17, 2021
1 parent e57f90c commit 3bf3623
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/services/src/builder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export class BuildManager {
throw new ServerConnection.ResponseError(response, 'Build aborted');
}
if (response.status !== 200) {
const message = `Build failed with ${response.status}, please run 'jupyter lab build' on the server for full output`;
const message = `Build failed with ${response.status}.
If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda').
If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.`;
throw new ServerConnection.ResponseError(response, message);
}
});
Expand Down

0 comments on commit 3bf3623

Please sign in to comment.