Thread overview
Vibe-d doesn't seem to work on Windows anymore
October 21

(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.

October 21

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

October 21

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

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.

October 21

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

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();

October 21

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

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

October 21

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:

>

[...]

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.