Skip to content

docs(devServerStatus): Add Troubleshooting for invalid vscode setup resulting in DevServer not succeeding to connect - #21998

Closed
DevTKSS wants to merge 9 commits into
unoplatform:masterfrom
DevTKSS:docs/vscode-troubleshooting-devserver
Closed

DevTKSS wants to merge 9 commits into
unoplatform:masterfrom
DevTKSS:docs/vscode-troubleshooting-devserver

Conversation

@DevTKSS

@DevTKSS DevTKSS commented Nov 30, 2025

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #

PR Type:

  • 📚 Documentation content changes

What is the current behavior? 🤔

If we are using a /src nested 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 debugging

  • DevServer and Uno Platform Status not connected, but missing information and advised what we should do then
  • uno-devserver start is failing in this case too

What 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:

Other information ℹ️

@Jen-Uno Would you check if this might fix the problem for the other user too?

…esulting in DevServer not succeeding to connect
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 185715 has failed on Uno.UI - docs.

@jeromelaban
jeromelaban requested a review from dr1rrb December 2, 2025 13:52
Copilot AI review requested due to automatic review settings December 10, 2025 14:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment on lines +82 to +87
<!-- 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 |
-->

Copilot AI Dec 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
<!-- 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 |

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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!

Comment thread doc/articles/dev-server.md Resolved
@unodevops

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings December 11, 2025 19:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 16 comments.

Comment thread doc/articles/dev-server.md Resolved
Comment on lines +82 to +87
<!-- 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 |
-->

Copilot AI Dec 11, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
<!-- 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 |
-->

Copilot uses AI. Check for mistakes.
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Comment thread doc/articles/dev-server.md Resolved
Copilot AI review requested due to automatic review settings December 12, 2025 13:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@DevTKSS

DevTKSS commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

@Jen-Uno can you consider the ToDo's to get tackled, so the Users get the Troubleshooting?

  • the Copilot comment needs the Team relyable for the DevServer to take action and validate/update if needed. Of course we dont want the Comment to stay there 😅
  • the rest of the Troubleshooting to be reviewed, so I can apply changes where you need me to 👍

@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the stale This item has been marked as stale and will be closed if there is no activity. label Mar 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions Bot closed this Mar 22, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 30, 2026
@MartinZikmund MartinZikmund removed the stale This item has been marked as stale and will be closed if there is no activity. label Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants