RejectedSoftware Forums

Sign up

Executing dub without package json or source/app.d results in an exception.

This happens both with master or v0.9.21. I did not try other versions of DUB:
(DMD v2.065)

Using dub registry url 'http://code.dlang.org/'
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/dejan/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/dejan/.dub/packages/local-packages.json
No package found in current working directory.

Neither a package description file, nor source/app.d was found in
/home/dejan
Please run DUB from the root directory of an existing package, or run
"dub init --help" to get information on creating a new package.

Error executing command run: Failed to load package.

Full exception: object.Exception@source/dub/commandline.d(358): Failed to load package.
----------------
dub(pure @safe bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong)+0x6b) [0x65bd13]
dub(void dub.commandline.PackageBuildCommand.setupPackage(dub.dub.Dub, immutable(char)[])+0x19b) [0x5e5efb]
dub(int dub.commandline.GenerateCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][])+0x1d7) [0x5e6aef]
dub(int dub.commandline.BuildCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][])+0x8d) [0x5e72b5]
dub(int dub.commandline.RunCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][])+0x8d) [0x5e7475]
dub(int dub.commandline.runDubCommandLine(immutable(char)[][])+0x1259) [0x5e4fb1]
dub(_Dmain+0x20) [0x5e3710]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1()+0x18) [0x6ddbdc]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x6ddb36]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x30) [0x6ddb9c]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x6ddb36]
dub(_d_run_main+0x1a3) [0x6ddab7]
dub(main+0x25) [0x5e3d55]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f43bfe06d65]

Re: Executing dub without package json or source/app.d results in an exception.

Erm... I apologise for posting to wrong forum... :(

http://dejan.lekic.org