-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc-gui: allow running on Windows #112562
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
.find_map(|l| l.split(':').nth(1)?.strip_prefix("browser-ui-test@")) | ||
.find_map(|l| l.rsplit(':').next()?.strip_prefix("browser-ui-test@")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider windows path C:\\proj\\rust\\node_modules\\browser-ui-test:browser-ui-test@0.16.6
: in that case split
will find wrong part of string.
Some help required here: rust/src/tools/rustdoc-gui/tester.js Line 204 in cb882fa
This on windows will be like |
Nice thanks! r=me once CI pass. |
Oh interesting. I need to check if it's something done wrong in |
Added little more info to error description when calling npm, previously error was silently skipped. |
@bors r+ rollup |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#111212 (Add casting suggestion when assigning negative 2's complement bin or hex literal to a size compatible signed integer) - rust-lang#112304 (Add chapter in rustdoc book for re-exports and add a regression test for `#[doc(hidden)]` behaviour) - rust-lang#112486 (Fix suggestion for E0404 not dealing with multiple generics) - rust-lang#112562 (rustdoc-gui: allow running on Windows) - rust-lang#112621 (Mention `env!` in `option_env!`'s docs) - rust-lang#112634 (add InlineConst check) r? `@ghost` `@rustbot` modify labels: rollup
This adds few fixes to allow running
python x.py test rustdoc-gui
on Windows.npm.cmd
on Windows (otherwise don't work for me)r? @GuillaumeGomez