Am 18.07.2016 um 10:57 schrieb ParticlePeter:
First some positive words as I read several criticism about the additional sdl format. I am starting to use it and I feel its really nice, much cleaner to read and write, thanks for the addition.
That being said, unfortunately I don't get subPackage using a subConfiguration to work.
This is the working dub.json
This is the not-working dub.sdlThe configuration
"with-derelict-loader"
defines the version specifier"ERUPTED_FROM_DERELICT"
which is used in both the subPackages (at the bottom of both the dub files).When running e.g.:
dub run erupted:devices
the json version runs fine, but the sdl version complaints aboutundefined identifier 'DerelictErupted'
. This identifier is only defined with the versionERUPTED_FROM_DERELICT
, hence my guess that this version is not forwarded to dmd.So what am I doing wrong in the sdl file?
There are a few occurrences of dependencies
in the .sdl file, which
should be dependency
instead. DUB should really emit a warning for
unknown directives (it doesn't error out to enabled forward
compatibility, but that doesn't mean that it can't warn).