www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Vibe-d doesn't seem to work on Windows anymore

reply Ruby The Roobster <michaeleverestc79 gmail.com> writes:
(Posting this here so it gets seen)  I'm trying to run a small 
vibe-d project.  It compiles, but when running it immediately 
terminates.  Please fix this.
Oct 20 2023
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 21 October 2023 at 00:50:21 UTC, Ruby The Roobster 
wrote:
 (Posting this here so it gets seen)  I'm trying to run a small 
 vibe-d project.  It compiles, but when running it immediately 
 terminates.  Please fix this.
Post your code
Oct 21 2023
parent reply Ruby The Roobster <michaeleverestc79 gmail.com> writes:
On Saturday, 21 October 2023 at 07:53:15 UTC, Imperatorn wrote:
 On Saturday, 21 October 2023 at 00:50:21 UTC, Ruby The Roobster 
 wrote:
 (Posting this here so it gets seen)  I'm trying to run a small 
 vibe-d project.  It compiles, but when running it immediately 
 terminates.  Please fix this.
Post your code
```d import vibe.d; void main() { // router URLRouter router = new URLRouter(); router.get("/", staticTemplate!"home.dt"); // compiles router.get("*", serveStaticFiles("/public")); auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses = ["localhost", "::1", "127.0.0.1"]; listenHTTP(settings, router); logInfo("Server up at 127.0.0.1:8080"); } ``` It just tells me that three sockets were leaked at 'driver shutdown' and terminates.
Oct 21 2023
next sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 21 October 2023 at 12:38:33 UTC, Ruby The Roobster 
wrote:
 On Saturday, 21 October 2023 at 07:53:15 UTC, Imperatorn wrote:
 On Saturday, 21 October 2023 at 00:50:21 UTC, Ruby The 
 Roobster wrote:
 [...]
Post your code
```d import vibe.d; void main() { // router URLRouter router = new URLRouter(); router.get("/", staticTemplate!"home.dt"); // compiles router.get("*", serveStaticFiles("/public")); auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses = ["localhost", "::1", "127.0.0.1"]; listenHTTP(settings, router); logInfo("Server up at 127.0.0.1:8080"); } ``` It just tells me that three sockets were leaked at 'driver shutdown' and terminates.
You're not running your application: runApplication();
Oct 21 2023
parent Ruby The Roobster <michaeleverestc79 gmail.com> writes:
On Saturday, 21 October 2023 at 13:43:30 UTC, Imperatorn wrote:
 On Saturday, 21 October 2023 at 12:38:33 UTC, Ruby The Roobster 
 wrote:
 On Saturday, 21 October 2023 at 07:53:15 UTC, Imperatorn wrote:
 [...]
```d import vibe.d; void main() { // router URLRouter router = new URLRouter(); router.get("/", staticTemplate!"home.dt"); // compiles router.get("*", serveStaticFiles("/public")); auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses = ["localhost", "::1", "127.0.0.1"]; listenHTTP(settings, router); logInfo("Server up at 127.0.0.1:8080"); } ``` It just tells me that three sockets were leaked at 'driver shutdown' and terminates.
You're not running your application: runApplication();
Oh. How did I miss this? Thank you.
Oct 21 2023
prev sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 21 October 2023 at 12:38:33 UTC, Ruby The Roobster 
wrote:
 On Saturday, 21 October 2023 at 07:53:15 UTC, Imperatorn wrote:
 On Saturday, 21 October 2023 at 00:50:21 UTC, Ruby The 
 Roobster wrote:
 [...]
Post your code
```d import vibe.d; void main() { // router URLRouter router = new URLRouter(); router.get("/", staticTemplate!"home.dt"); // compiles router.get("*", serveStaticFiles("/public")); auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses = ["localhost", "::1", "127.0.0.1"]; listenHTTP(settings, router); logInfo("Server up at 127.0.0.1:8080"); } ``` It just tells me that three sockets were leaked at 'driver shutdown' and terminates.
https://github.com/reyvaleza/vibed/tree/main
Oct 21 2023