RejectedSoftware Forums

Sign up

dub runs into an infinite loop for a simple project

I'm on Win7 x64, installed dub from here: http://code.dlang.org/files/dub-0.9.17-setup.exe

I've ran:

$ mkdir test
$ cd test
$ dub init

Then I've edited package.json to the following:

{
	"name": "test",
	"description": "An example project skeleton",
	"homepage": "http://example.org",
	"copyright": "Copyright © 2000, Your Name",
	"authors": [
		"Your Name"
	],
	"dependencies": {
        "derelict-glfw3": "~master"
	}
}

And then I've ran:

$ dub upgrade

Dub then starts printing the following messages forever:

Upgrading project in C:\dev\projects\test
The following changes will be performed:
Install derelict-util ~master, userWide
Install derelict-glfw3 ~master, userWide
Package derelict-util ~master (/C:/Users/Administrator/AppData/Roaming/dub/packages/) is already installed with the latest version, skipping upgrade.
Package derelict-glfw3 ~master (/C:/Users/Administrator/AppData/Roaming/dub/packages/) is already installed with the latest version, skipping upgrade.
The following changes will be performed:
Install derelict-util ~master, userWide
Install derelict-glfw3 ~master, userWide
Package derelict-util ~master (/C:/Users/Administrator/AppData/Roaming/dub/packages/) is already installed with the latest version, skipping upgrade.
Package derelict-glfw3 ~master (/C:/Users/Administrator/AppData/Roaming/dub/packages/) is already installed with the latest version, skipping upgrade.

It seems like it's stuck in an infinite loop.

Re: dub runs into an infinite loop for a simple project

Am 11.09.2013 00:42, schrieb Andrej Mitrovic:

I'm on Win7 x64, installed dub from here: http://code.dlang.org/files/dub-0.9.17-setup.exe

I've ran:

(...)

It seems like it's stuck in an infinite loop.

Incidentally, this was fixed just yesterday on git master. I deferred
the 0.9.18 release because of this, but will try to get it done later
today (GMT).