Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trunk serve --open opens the page anyways on error #946

Open
Madoshakalaka opened this issue Feb 15, 2025 · 0 comments
Open

trunk serve --open opens the page anyways on error #946

Madoshakalaka opened this issue Feb 15, 2025 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Madoshakalaka
Copy link

In case of address already in use for example:

╰─ trunk serve --open
2025-02-15T02:48:23.064899Z  INFO 🚀 Starting trunk 0.21.7
2025-02-15T02:48:23.926930Z  INFO 📦 starting build
   Compiling proc-macro2 v1.0.86
   ....
   Compiling todomvc v0.1.0 (/home/maa/Projects/yew/examples/todomvc)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.52s
2025-02-15T02:48:42.232224Z  INFO applying new distribution
2025-02-15T02:48:42.232419Z  INFO ✅ success
2025-02-15T02:48:42.232495Z  INFO 📡 serving static assets at -> /
2025-02-15T02:48:42.232645Z  INFO 📡 server listening at:
2025-02-15T02:48:42.232652Z  INFO     🏠 http://127.0.0.1:8080/
2025-02-15T02:48:42.232655Z  INFO     🏠 http://[::1]:8080/
2025-02-15T02:48:42.232835Z  INFO     🏠 http://localhost.:8080/
2025-02-15T02:48:42.245691Z ERROR error from server task error=Address already in use (os error 98)
2025-02-15T02:48:42.245730Z ERROR Address already in use (os error 98)

It exits with non-zero exit code and opens http://127.0.0.1:8080/ in the browser anyways

@ctron ctron added help wanted Extra attention is needed good first issue Good for newcomers labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants