Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uprefactor: rename XR to XRSystem #25738
Conversation
highfive
commented
Feb 12, 2020
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @paulrouget (or someone else) soon. |
highfive
commented
Feb 12, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Feb 12, 2020
|
Running into issues during the build process :( When I run: pip install virtualenvI get this:
Then I run this
I haven't dabbled in Python in a while so forgive me if this is a n00b question, but what am I doing wrong? It feels like a never ending loop P.S. - if you do help, or if I figure it out, we can update the README with a "Troubleshooting a Mac environment" section |
|
Can you remove the brewfile changes? Those are for CI. We can land this and perhaps open a second PR to improve docs on this. |
|
With respect to the pip issue, try |
3641f1e
to
9a6afad
|
Okay, I removed the brewfile changes. CI is still failing - but is that simply because I didn't write any unit tests? Looking at the logs, it seems like it's printing the diffs but I don't see any error messages or explanation as to why the task is failing. |
|
It’s a formatting issue. Run |
|
Here's the error from the task: error[E0583]: file not found for module `XRSystemBinding`
--> /repo/target/debug/build/script-bbd50c7c9ef66328/out/Bindings/mod.rs:382:9
|
382 | pub mod XRSystemBinding;
| ^^^^^^^^^^^^^^^
|
= help: name the file either XRSystemBinding.rs or XRSystemBinding/mod.rs
|
|
Question: is it possible to set up a pre-push hook that runs |
|
Okay...now this error is a bit more cryptic to me: error[E0050]: method `RequestSession` has 4 parameters but the declaration in trait `dom::bindings::codegen::Bindings::XRSystemBinding::XRSystemBinding::XRSystemMethods::RequestSession` has 3
--> components/script/dom/xrsystem.rs:165:9
|
165 | / &self,
166 | | mode: XRSessionMode,
167 | | init: RootedTraceableBox<XRSessionInit>,
168 | | comp: InRealm,
| |_____________________^ expected 3 parameters, found 4
|
::: /repo/target/debug/build/script-bbd50c7c9ef66328/out/Bindings/XRSystemBinding.rs:893:23
|
893 | fn RequestSession(&self, mode: XRSessionMode, parameters: RootedTraceableBox<crate::dom::bindings::codegen::Bindings::XRSystemBinding::XRSessionInit>) -> Rc<Promise>;
| ----------------------------------------------------------------------------------------------------------------------------------- trait requires 3 parameters
error: aborting due to previous errorAny suggestions on how to resolve this? |
|
|
18622bb
to
99bba7c
|
Please squash your commits |
|
Thanks for approving! I'll squash now 👍🏼 I'm curious though, what's the advantage to having authors squash their commits as opposed to squashing as part of the PR merge process? |
06d4aff
to
6cbd87d
|
This doesn't build yet:
It needs to implement (and import) XRSystemMethods instead. As for the question about squashing, we use a bot that performs merges for us and it doesn't support squashing yet. |
fbc546e
to
9c44603
|
@bors-servo r=Manishearth,jdm |
|
|
…hearth,jdm refactor: rename XR to XRSystem <!-- Please describe your changes on the following line: --> This PR renames XR to XRSystem. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #25732 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it's the changing of a name (XR -> XRSystem) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
…hearth,jdm refactor: rename XR to XRSystem <!-- Please describe your changes on the following line: --> This PR renames XR to XRSystem. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #25732 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it's the changing of a name (XR -> XRSystem) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
|
|

jsjoeio commentedFeb 12, 2020
•
edited
This PR renames XR to XRSystem.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors