-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc build problem in withoutintl builds #41077
Comments
The error was thrown from |
|
I suppose that this regular expression requires ICU data to work. |
Recent upgrade of highlight.js has broken the docs build on the withoutintl builds. PR-URL: #41078 Refs: #41077 Refs: #41036 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Does the regexp literal stop throwing an error in no-icu builds if we change
EDIT: Based on the table in https://nodejs.org/dist/latest-v17.x/docs/api/intl.html#options-for-building-nodejs, I'd expect that it still wouldn't work, but I'm building a non-icu node right now to confirm. EDIT: I also don't see any elegant way to do feature detection for regexp property class names other than @nodejs/i18n-api |
On the other hand, the spec seems to say that |
Fwiw the highlight.js change that introduced the regexp is highlightjs/highlight.js#3280. Do we highlight Python anywhere in our docs? Maybe we could minimally load highlight.js and only register the languages we expect to highlight in our docs? |
If all else fails, another possibility might be to skip building (or at least syntax highlighting) docs on |
Confirmed that it throws an error still with that change. |
Based on
That seems like a feature |
LOL! This is the way we're actually doing it already, but we're still importing everything at the outset. The fix here is a single line change to html.mjs. PR coming in a few minutes. |
Importing everything from highlight.js won't work in without-intl builds. Import only core, as the code is already written to load individual languages as needed. Fixes: nodejs#41077
Also, I'm kind of wondering if we want to require at least a minimal intl. I'm not sure what the use case is for |
Related: #35942 |
Oof... |
Importing everything from highlight.js won't work in without-intl builds. Import only core, as the code is already written to load individual languages as needed. Fixes: nodejs#41077
It's been a while I think.. I noticed it when working on deprecating punycode, but since no one complained I assumed it was a known limitation. Commenting out the faulty regex locally works btw, maybe replacing it with a |
Importing everything from highlight.js won't work in without-intl builds. Import only core and register only the languages we need. Fixes: nodejs#41077
PR-URL: nodejs#41091 Fixes: nodejs#41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Recent upgrade of highlight.js has broken the docs build on the withoutintl builds. PR-URL: #41078 Refs: #41077 Refs: #41036 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Closes: #41077 PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Recent upgrade of highlight.js has broken the docs build on the withoutintl builds. PR-URL: #41078 Refs: #41077 Refs: #41036 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Closes: #41077 PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Recent upgrade of highlight.js has broken the docs build on the withoutintl builds. PR-URL: #41078 Refs: #41077 Refs: #41036 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Closes: #41077 PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Recent upgrade of highlight.js has broken the docs build on the withoutintl builds. PR-URL: #41078 Refs: #41077 Refs: #41036 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Closes: #41077 PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Recent upgrade of highlight.js has broken the docs build on the withoutintl builds. PR-URL: nodejs#41078 Refs: nodejs#41077 Refs: nodejs#41036 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Closes: nodejs#41077 PR-URL: nodejs#41091 Fixes: nodejs#41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#41091 Fixes: nodejs#41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Recent upgrade of highlight.js has broken the docs build on the withoutintl builds. PR-URL: #41078 Refs: #41077 Refs: #41036 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Closes: #41077 PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #41091 Fixes: #41077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Version
v18.0.0-pre
Platform
No response
Subsystem
build
What steps will reproduce the bug?
Run CI. https://ci.nodejs.org/job/node-test-commit-linux-containered/nodes=ubuntu1804_sharedlibs_withoutintl_x64/ builds have been consistently failing starting today. These are run with
python3 ./configure --verbose --without-intl
.e.g. From today's daily build:
https://ci.nodejs.org/job/node-test-commit-linux-containered/29799/nodes=ubuntu1804_sharedlibs_withoutintl_x64/console
How often does it reproduce? Is there a required condition?
Seems consistent for builds today.
What is the expected behavior?
Build completes.
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: