RejectedSoftware Forums

Sign up

Can't register the package!

I've attempted to register the Derelict package with the package registry and I keep getting the following error:

Internal error information:
object.Exception@source/dubregistry/registry.d(199): Package names may only contain ASCII letters and numbers, as well as '_' and '-'.
----------------
./dub-registry(void dubregistry.registry.DubRegistry.addPackage(vibe.data.json.Json, vibe.data.bson.BsonObjectID).int __foreachbody3290(ref immutable(char)[], ref vibe.data.json.Json)+0x44)      [0x5c0f00]
./dub-registry(_aaApply2+0x6a) [0x739eca]
./dub-registry(void dubregistry.registry.DubRegistry.addPackage(vibe.data.json.Json, vibe.data.bson.BsonObjectID)+0x178) [0x5c0cd0]
./dub-registry(void dubregistry.web.DubRegistryWebFrontend.addPackage(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse, userman.controller.User)+0x236) [0x62c81e]
./dub-registry(void delegate(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse) userman.web.UserManWebInterface.auth(void delegate(vibe.http.server.HTTPServerRequest,  vibe.http.server.HTTPServerResponse, userman.controller.User)).void requestHandler(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse)+0xfa) [0x72e8c6]
./dub-registry(void vibe.http.router.URLRouter.handleRequest(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse)+0x179) [0x63fef9]
./dub-registry(bool vibe.http.server.handleRequest(vibe.core.stream.Stream, immutable(char)[], vibe.http.server.HTTPServerListener, ref vibe.http.server.HTTPServerSettings, ref bool)+0x16b9) [0x635f01]
./dub-registry(void vibe.http.server.handleHTTPConnection(vibe.core.net.TCPConnection, vibe.http.server.HTTPServerListener)+0x146) [0x634782]
./dub-registry(void vibe.http.server.listenHTTPPlain(vibe.http.server.HTTPServerSettings, void delegate(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse)).void doListen(vibe.http.server.HTTPServerSettings, vibe.http.server.HTTPServerListener, immutable(char)[]).void __lambda50(vibe.core.net.TCPConnection)+0x2c) [0x6311f4]
./dub-registry(extern (C) nothrow void vibe.core.drivers.libevent2_tcp.onConnect(int, short, void*).void ClientTask.execute()+0x2e2) [0x650b4a]
./dub-registry(void vibe.core.core.CoreTask.run()+0xee) [0x65a966]
./dub-registry(void core.thread.Fiber.run()+0x2a) [0x76426a]
./dub-registry(fiber_entryPoint+0x61) [0x76417d]

Not sure what's going on, as the package names don't contain anything other than ASCII.

Re: Can't register the package!

Am 18.06.2013 15:48, schrieb Mike Parker:

I've attempted to register the Derelict package with the package registry and I keep getting the following error:

(...)

Turns out that there were still two places that couldn't cope with the
new "sub:package" style dependencies. Should work now.

Re: Can't register the package!

On Tue, 18 Jun 2013 16:50:05 +0200, Sönke Ludwig wrote:

Am 18.06.2013 15:48, schrieb Mike Parker:

I've attempted to register the Derelict package with the package registry and I keep getting the following error:

(...)

Turns out that there were still two places that couldn't cope with the
new "sub:package" style dependencies. Should work now.

And it did. Thanks!

Re: Can't register the package!

On Tue, 18 Jun 2013 15:15:19 GMT, Mike Parker wrote:

On Tue, 18 Jun 2013 16:50:05 +0200, Sönke Ludwig wrote:

Am 18.06.2013 15:48, schrieb Mike Parker:

I've attempted to register the Derelict package with the package registry and I keep getting the following error:

(...)

Turns out that there were still two places that couldn't cope with the
new "sub:package" style dependencies. Should work now.

And it did. Thanks!

Derelict in the DUB registry, neat! I've been using both for quite some time now and they're a pleasure to work with.

But adding Derelict as a dependency isn't working for me:

"dependencies": {
	"derelict" : "~master"
}

When running DUB, output is

Checking dependencies in 'F:\Dev\Temp'
Geting package metadata for derelict:devil failed, exception: object.Exception@source\dub\project.d(476): Could not find package candidate for derelict:devil ~master
----------------
0x004CE640 in char[][] core.sys.windows.stacktrace.StackTrace.trace()
0x004CE4CB in core.sys.windows.stacktrace.StackTrace core.sys.windows.stacktrace.StackTrace.__ctor()
0x004972AA in pure @safe void std.exception.bailOut(immutable(char)[], uint, const(char[]))
0x0041B6BE in D3dub7project7Project25gatherMissingDependenciesMFAC3dub15packagesupplier15PackageSupplierC3dub21B60EA4234653C9F4E3984343A4BCCD at F:\Dev\dub\source\dub\project.d(477)
0x0048C6FD in _aaApply2

... Same message for about half the sub-packages. The others give a more detailed stack trace:

Geting package metadata for derelict:alure failed, exception: object.Exception@source\dub\project.d(476): Could not find package candidate for derelict:alure ~master
----------------
0x004CE640 in char[][] core.sys.windows.stacktrace.StackTrace.trace()
0x004CE4CB in core.sys.windows.stacktrace.StackTrace core.sys.windows.stacktrace.StackTrace.__ctor()
0x004972AA in pure @safe void std.exception.bailOut(immutable(char)[], uint, const(char[]))
0x0041B6BE in D3dub7project7Project25gatherMissingDependenciesMFAC3dub15packagesupplier15PackageSupplierC3dub21B60EA4234653C9F4E3984343A4BCCD at F:\Dev\dub\source\dub\project.d(477)
0x0048C6FD in _aaApply2
0x0041B2C5 in bool dub.project.Project.gatherMissingDependencies(dub.packagesupplier.PackageSupplier[], dub.dependency.DependencyGraph) at F:\Dev\dub\source\dub\project.d(487)
0x0041A88F in dub.project.Action[] dub.project.Project.determineActions(dub.packagesupplier.PackageSupplier[], int) at F:\Dev\dub\source\dub\project.d(277)
0x0040C47F in bool dub.dub.Dub.update(dub.project.UpdateOptions) at F:\Dev\dub\source\dub\dub.d(114)
0x0040312D in _Dmain at F:\Dev\dub\source\app.d(241)
0x0049A540 in extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain()
0x0049A576 in extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll()
0x0049A179 in _d_run_main
0x0048AF38 in main
0x752533AA in BaseThreadInitThunk
0x77149EF2 in RtlInitializeExceptionChain
0x77149EC5 in RtlInitializeExceptionChain
0x004D391C in mainCRTStartup

... More of the same...
	
Could not resolve dependencies
The dependency graph could not be filled, there are unresolved dependencies.
The following changes could be performed:
Failure derelict:devil ~master, userWide
Issued by: 
 derelict: ~master
 
... Same message for every sub-package ...

Error: Unknown dependency: derelict

Run 'dub help' for usage information.

I'm using DUB master. My mistake, or is something else going on?

Re: Can't register the package!

On Tue, 18 Jun 2013 20:18:25 GMT, Rene Zwanenburg wrote:

On Tue, 18 Jun 2013 15:15:19 GMT, Mike Parker wrote:

On Tue, 18 Jun 2013 16:50:05 +0200, Sönke Ludwig wrote:

Am 18.06.2013 15:48, schrieb Mike Parker:

I've attempted to register the Derelict package with the package registry and I keep getting the following error:

(...)

Turns out that there were still two places that couldn't cope with the
new "sub:package" style dependencies. Should work now.

And it did. Thanks!

Derelict in the DUB registry, neat! I've been using both for quite some time now and they're a pleasure to work with.

But adding Derelict as a dependency isn't working for me:

"dependencies": {
	"derelict" : "~master"
}


I completely forgot to test with non-local packages... The latest master correctly handles this now and using something like "dependencies": {"derelict:opengl3": "~master"} works as well.

Re: Can't register the package!

I completely forgot to test with non-local packages... The latest master correctly handles this now and using something like "dependencies": {"derelict:opengl3": "~master"} works as well.

Works perfectly now. Thanks!

Re: Can't register the package!

On Wed, 19 Jun 2013 12:35:51 GMT, Rene Zwanenburg wrote:

I completely forgot to test with non-local packages... The latest master correctly handles this now and using something like "dependencies": {"derelict:opengl3": "~master"} works as well.

Works perfectly now. Thanks!

Awesome! I was just about to report this issue myself.