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

Ruby The Roobster michaeleverestc79 at gmail.com
Sat Oct 21 12:38:33 UTC 2023


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.


More information about the Digitalmars-d mailing list