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 upAdded support in CInitOptions to pass logging/filter modules to VSLog… #24107
Conversation
5c81c4b
to
5c4d336
|
implementation has been tested in the following way:
mach build -d --uwp performed, HoloLens built and executed. Verified application did not crash. Witnessed a Rust warning originating from simpleservo when reload/stop was pressed on HoloLens application. Hololens was modified so that "simpleservo" was commented out. Hololens was built, executed and again, the "reload/stop" buttons pressed in the Hololens application. NO Rust wanrnings appeard for "simpleservo"
Hololens was rebuilt and tested. Many more Rust warning messages appeared. Based on the above 2 tests, this issue is ready for testing. |
ca87923
to
cf6b569
|
Sorry, accidently resolved implementing this feature on non-windows. |
|
I have a question on the non-windows logging. It seems that init_logger() is the key function. The following init_logger() function has several setup/functions to initiate the VSLogger defined in vslogger.rs.
However, the non-windows init_logger() does not seem to use any of the VSLogger code. See below.
What are we looking to do within the non-windows init_logger() function once the signature has changed to accept a "_modules: &[*const c_char]" variable?
|
|
We should accept the argument and ignore it for the time being. #23813 will allow us to make use of it. |
74ba01a
to
9401fa1
|
OK. Just wanted to see if I was missing something. |
|
Completed modifying init_logger() for windows and non-windows builds. |
|
A rebase is required before this can merge. |
|
A few small code cleanups and then this should be mergeable! |
|
Yes. A rebase has been done. |
41cb7dd
to
067d582
|
OK. Done with the changes and rebasing. :) |
|
@angelortiz1007 Github still shows that this branch has a conflict with the master branch, so something didn't work as expected in the rebase process. |
|
OK. I wanted to make sure whatever step I took was correct. I believe I resolved the conflicts from the web interface. |
|
It sounds like you didn't pull the latest changes from servo's master branch into your local clone's master branch before rebasing. |
|
OK, this is what I did:
|
17f9a84
to
2873188
…ger.
2873188
to
49934c0
|
Completed the task. lazy_static removed from capi\Cargo.tom. One issue in building HoloLens using mach build -d --uwp. Build FAILED.
Time Elapsed 00:00:01.39
The error occurred in code that was called by the mach command. This is either You should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error The details of the failure are as follows: CalledProcessError: Command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe /m /p:project=ServoApp .\support\hololens\ServoApp.sln /p:SolutionDir=.\support\hololens /p:Configuration=Debug /p:Platform=x64 /p:AppxBundle=Always;AppxBundlePlatforms=x64' returned non-zero exit status 1 File "C:\git-mozilla\servo-angelortiz1007\python\servo\build_commands.py", line 709, in build |
|
My experience with that error is that rebuilding the project in VS makes it go away. In any case, it should be unrelated to the changes in this PR. |
|
@bors-servo r+ |
|
|
Added support in CInitOptions to pass logging/filter modules to VSLog… …ger. <!-- Please describe your changes on the following line: --> Preliminary implementation of #23754. Added support in CInitOptions to take a **pmoduleList (array of string modules) and the size of the array string. Added logic to covert the **pmoduleList in HoloLens to a Vec<String>. Pending: implement how the passed in list of modules are used for filtering. --- <!-- 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 #23754__ (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24107) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
Added support in CInitOptions to pass logging/filter modules to VSLog… …ger. <!-- Please describe your changes on the following line: --> Preliminary implementation of #23754. Added support in CInitOptions to take a **pmoduleList (array of string modules) and the size of the array string. Added logic to covert the **pmoduleList in HoloLens to a Vec<String>. Pending: implement how the passed in list of modules are used for filtering. --- <!-- 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 #23754__ (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24107) <!-- Reviewable:end -->
|
|
angelortiz1007 commentedAug 29, 2019
•
edited by SimonSapin
…ger.
Preliminary implementation of #23754. Added support in CInitOptions to take a **pmoduleList (array of string modules) and the size of the array string. Added logic to covert the **pmoduleList in HoloLens to a Vec.
Pending: implement how the passed in list of modules are used for filtering.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is