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 upSupport launching the devtools server on a random port #25907
Comments
|
cc @fitzgen |
|
This will require:
|
|
I would like to work on this issue |
|
@jdm I am a bit confused about the handling of the new message part. I could not find a place where the port is currently stored other than the |
|
Then again I am not sure if |
|
I recommend adding a new HostTrait method that accepts the port number as an argument, so each servo embedder can decide what to do with it. Then we'll want an addition to CHostCallbacks that allows a user of C API to decide what to do with it. That will lead us to this code where we can use a stub function that does nothing for the time being. You'll want to build with |
|
@jdm I am having trouble interfacing the method in C API. I cannot figure out what is missing here. Also the error message is not really helpful. Do you mind taking a look? |
What's the error message? |
|
|
Issue with ports/libsimpleservo/capi/build.rs ? Wondering why Few comments:
|
|
I ran EDIT: I just ran a release build and |
Add support for launching devtools server on random port In case the default port(6000) or the port specified by user for devtools server is already taken, random port will be assigned to it which is reported to the embedding layer for display to user. r?@jdm @paulrouget <!-- Please describe your changes on the following line: --> --- <!-- 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 #25907 (GitHub issue number if applicable) <!-- Either: --> - [ ] 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. -->
Add support for launching devtools server on random port In case the default port(6000) or the port specified by user for devtools server is already taken, random port will be assigned to it which is reported to the embedding layer for display to user. r?@jdm @paulrouget <!-- Please describe your changes on the following line: --> --- <!-- 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 #25907 (GitHub issue number if applicable) <!-- Either: --> - [ ] 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. -->
The latest OS images for HoloLens apparently have something running on port 6000, which is the default port we choose for the devtools server. We should support launching the server on a random free port and reporting that port to the embedding layer, so that it can be surfaced to the user in an appropriate manner through the app UI.