Repository navigation
Conversation
…esulting in DevServer not succeeding to connect
|
|
There was a problem hiding this comment.
Pull request overview
This PR adds troubleshooting documentation for the DevServer in VS Code when it fails to connect due to incorrect workspace configuration. The changes address a specific scenario where repositories with /src nested layouts cause connection issues if .vscode/ contents are not properly positioned.
Key changes:
- Added troubleshooting section for "Uno Platform Status not found" errors in VS Code
- Enhanced DevServer CLI documentation with installation instructions and command reference table
- Provided step-by-step guidance for resolving workspace configuration issues
Note on PR Requirements: The PR description contains closes # without an issue number. According to Uno Platform guidelines (CodingGuidelineID: 1000001), every PR must reference a proper GitHub issue using the fully qualified form: Fixes https://github.com/unoplatform/<REPO>/issues/#<ISSUE_NUMBER>. If no issue exists, please add a note such as: "Note: No related issue (Internal maintenance / Approved by Team member: @)."
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
doc/articles/includes/uno-platform-status-inline.md |
Adds troubleshooting steps for "not found" status issues in VS Code, including workspace folder configuration guidance |
doc/articles/dev-server.md |
Adds DevServer CLI installation instructions, command reference table, and detailed troubleshooting section for global.json not found errors |
| <!-- TODO: Validate this command is still available and correct named like this! The actual source code doesn't seem to expect this argument name: https://github.com/unoplatform/uno/blob/f5ea9ec0df2476a14463d28dc37e729ef917b8b2/src/Uno.UI.RemoteControl.Host/Program.cs#L52-L86 and in case this should be "httpPort" instead, we should tell, that this argument is only Recognized alongside the "start" command | ||
|
|
||
| | `--port, -p <int>` | Optional port value for MCP proxy mode | | ||
| -> Suggested Change: | ||
| | `uno-devserver start --httpPort, -p <int>` | Optional port value for MCP proxy mode <br/> Required: start command | | ||
| --> |
There was a problem hiding this comment.
Commented-out documentation should either be removed or uncommented. If this is pending validation, consider adding a TODO comment or GitHub issue reference, or use a more standard documentation format like a note or warning box. The HTML comment format makes this section difficult to maintain.
| <!-- TODO: Validate this command is still available and correct named like this! The actual source code doesn't seem to expect this argument name: https://github.com/unoplatform/uno/blob/f5ea9ec0df2476a14463d28dc37e729ef917b8b2/src/Uno.UI.RemoteControl.Host/Program.cs#L52-L86 and in case this should be "httpPort" instead, we should tell, that this argument is only Recognized alongside the "start" command | |
| | `--port, -p <int>` | Optional port value for MCP proxy mode | | |
| -> Suggested Change: | |
| | `uno-devserver start --httpPort, -p <int>` | Optional port value for MCP proxy mode <br/> Required: start command | | |
| --> | |
| > [!TODO] | |
| > Validate whether the `--mcp` command is still available and correctly named. The actual source code does not seem to expect this argument name ([source](https://github.com/unoplatform/uno/blob/f5ea9ec0df2476a14463d28dc37e729ef917b8b2/src/Uno.UI.RemoteControl.Host/Program.cs#L52-L86)). If this should be `httpPort` instead, clarify that this argument is only recognized alongside the `start` command. | |
| | `--port, -p <int>` | Optional port value for MCP proxy mode | | |
| **Suggested Change:** | |
| | `uno-devserver start --httpPort, -p <int>` | Optional port value for MCP proxy mode <br/> Required: start command | |
There was a problem hiding this comment.
@dr1rrb the suggested change is definitely wrong, but would you be able to check this eventual not up to date argument we get compared from source to actual uno-devserver CLI output please?
Thanks!
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-21998/docs/index.html |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
| <!-- TODO: Validate this command is still available and correct named like this! The actual source code doesn't seem to expect this argument name: https://github.com/unoplatform/uno/blob/f5ea9ec0df2476a14463d28dc37e729ef917b8b2/src/Uno.UI.RemoteControl.Host/Program.cs#L52-L86 and in case this should be "httpPort" instead, we should tell, that this argument is only Recognized alongside the "start" command | ||
|
|
||
| | `--port, -p <int>` | Optional port value for MCP proxy mode | | ||
| -> Suggested Change: | ||
| | `uno-devserver start --httpPort, -p <int>` | Optional port value for MCP proxy mode <br/> Required: start command | | ||
| --> |
There was a problem hiding this comment.
The commented-out HTML code should be removed. Documentation source files should not contain commented-out suggested changes or TODO items. If there's uncertainty about the command, it should either be verified and included, or omitted until verified. Having commented-out content in the source makes the documentation harder to maintain.
| <!-- TODO: Validate this command is still available and correct named like this! The actual source code doesn't seem to expect this argument name: https://github.com/unoplatform/uno/blob/f5ea9ec0df2476a14463d28dc37e729ef917b8b2/src/Uno.UI.RemoteControl.Host/Program.cs#L52-L86 and in case this should be "httpPort" instead, we should tell, that this argument is only Recognized alongside the "start" command | |
| | `--port, -p <int>` | Optional port value for MCP proxy mode | | |
| -> Suggested Change: | |
| | `uno-devserver start --httpPort, -p <int>` | Optional port value for MCP proxy mode <br/> Required: start command | | |
| --> |
Co-authored-by: Copilot <[email protected]>
|
@Jen-Uno can you consider the ToDo's to get tackled, so the Users get the Troubleshooting?
|
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days. |
|
This PR was closed because it has been stalled for 10 days with no activity. |
GitHub Issue: closes #
PR Type:
What is the current behavior? 🤔
If we are using a
/srcnested Repo layout, but not moved the.vscode/contents also, the Uno Extension in vs code and also the DevServer dotnet tool doesn't connect to our app for debugginguno-devserver startis failing in this case tooWhat is the new behavior? 🚀
doing the added advises solved this problem on my side
PR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information ℹ️
@Jen-Uno Would you check if this might fix the problem for the other user too?
--portmight be not supported, commeded this out (so CI will potentially fail) please check this 👍