Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dub test compilation errors #3

Closed
NCrashed opened this issue Sep 29, 2014 · 2 comments
Closed

Dub test compilation errors #3

NCrashed opened this issue Sep 29, 2014 · 2 comments
Assignees
Labels

Comments

@NCrashed
Copy link

Platform: Windows 7 x64
dmd: DMD32 D Compiler v2.066.0
dub: 0.9.22

Runing dub test at a package that depends on the star-entity generates following:

C:\dev\d\tempwerk>dub test
Generating test runner configuration '__test__library__' for 'library' (library).
Building star-entity 1.0.5 configuration "library", build type unittest.
Running dmd...
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(884): Error: cannot
 implicitly convert expression (type + 1LU) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(701): Error: templa
te instance star.entity.entity.EntityManager.accomodateComponent!(Test) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(378):        instan
tiated from here: add!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(856): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(702): Error: templa
te instance star.entity.entity.EntityManager.setComponent!(Test) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(378):        instan
tiated from here: add!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(862): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(703): Error: templa
te instance star.entity.entity.EntityManager.setMask!(Test) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(378):        instan
tiated from here: add!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(742): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(731): Error: templa
te instance star.entity.entity.EntityManager.component!(Test) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(697):        instan
tiated from here: hasComponent!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(378):        instan
tiated from here: add!(Test)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(884): Error: cannot
 implicitly convert expression (type + 1LU) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(701): Error: templa
te instance star.entity.entity.EntityManager.accomodateComponent!(Position) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(447):        instan
tiated from here: add!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(856): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(702): Error: templa
te instance star.entity.entity.EntityManager.setComponent!(Position) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(447):        instan
tiated from here: add!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(862): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(703): Error: templa
te instance star.entity.entity.EntityManager.setMask!(Position) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(447):        instan
tiated from here: add!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(742): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(731): Error: templa
te instance star.entity.entity.EntityManager.component!(Position) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(697):        instan
tiated from here: hasComponent!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(447):        instan
tiated from here: add!(Position)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(884): Error: cannot
 implicitly convert expression (type + 1LU) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(701): Error: templa
te instance star.entity.entity.EntityManager.accomodateComponent!(Velocity) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Velocity)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(448):        instan
tiated from here: add!(Velocity)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(856): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(702): Error: templa
te instance star.entity.entity.EntityManager.setComponent!(Velocity) error instantiating
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(160):        instan
tiated from here: addComponent!(Velocity)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(448):        instan
tiated from here: add!(Velocity)
..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\source\star\entity\entity.d(862): Error: cannot
 implicitly convert expression (this.type()) of type ulong to uint
FAIL ..\..\..\Users\NCrashed\AppData\Roaming\dub\packages\star-entity-1.0.5\.dub\build\library-unittest-windows-x86-dm
d_2066-636256E26935E5611654D36935405E62\ star-entity staticLibrary
Error executing command test: dmd failed with exit code 1.
@jameslzhu jameslzhu self-assigned this Sep 30, 2014
@jameslzhu jameslzhu added the bug label Sep 30, 2014
@jameslzhu
Copy link
Owner

Fixed in 50e9fba (assigned ulong to type size_t, which is uint in 32-bit systems).

I develop normally in 64-bit Arch Linux, but I've tested this on Windows 8 (64-bit, dmd32 2.066.0, dub 0.9.22). Tests should compile normally.

Bumping the version number to 1.0.6.

@NCrashed, let me know if this works out for you.

@NCrashed
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants