dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

`dx serve`'s cli output has a blank `serving at` field

Open Moonsweater opened this issue 11 months ago • 1 comments

Problem

When running dx serve to serve a web app on Ubuntu, the text output shows only whitespace where one would expect an address to appear. The app is still hosted at 127.0.0.0.8080, despite this.

Steps To Reproduce

Steps to reproduce the behavior:

On Ubuntu, with the default shell:

  • Create a new project in an empty directory: dx new test_project.
  • When prompted, say that you don't want to use Fullstack, Router, or Tailwind. (This may not be necessary, but is certainly sufficient.)
  • Run dx serve.

Expected behavior

That the Serving at: text output indicates where the app is being served, rather than being left blank.

Screenshots

16:03:13 [dev] ----------------------------------------------------------------- Serving your Dioxus app: foo • Press ctrl+c to exit the server • Press r to rebuild the app • Press p to toggle automatic rebuilds • Press v to toggle verbose logging • Press / for more commands and shortcuts Learn more at https://dioxuslabs.com/learn/0.6/getting_started ---------------------------------------------------------------- 16:03:19 [dev] Build completed successfully in 856ms, launching app! 💫 ╭────────────────────────────────────────────────────────────────────────────── /:more ╮ │ App: ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎉 0.9s Platform: Web │ │ Bundle: ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎉 4.6s App features: ["web"] │ │ Status: Serving foo 🚀 5.5s Serving at: │ ╰──────────────────────────────────────────────────────────────────────────────────────

Environment:

  • Dioxus version: 0.6.3
  • Rust version: rustc 1.85.0
  • OS info: Ubuntu 22.04.5 LTS

Questionnaire

I'm interested in fixing this myself but don't know where to start.

Moonsweater avatar Mar 09 '25 00:03 Moonsweater

If you are interested in taking a look at this, the logic for rendering the the url is here. I can reproduce this issue on macos when my terminal window is small. We could either remove the served at section entirely when the window is small or shorten it somehow instead of showing only part of that seciton

ealmloff avatar Mar 12 '25 13:03 ealmloff