Thread overview
broken program, silly error messages, dub
Sep 19, 2015
Joel
Sep 19, 2015
ponce
Sep 19, 2015
Joel
Sep 19, 2015
Joel
September 19, 2015
I accidentally wiped off a small source file. I've been trying to put it back together. Now I get unrelated errors. I've tried resetting dub.

Joels-MacBook-Pro:DGuy joelcnz$ dub
WARNING: A deprecated branch based version specification is used for the dependency dsfml:audio. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used for the dependency dsfml:graphics. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Target dsfml:system ~master is up to date. Use --force to rebuild.
Target dsfml:audio ~master is up to date. Use --force to rebuild.
Target dsfml:window ~master is up to date. Use --force to rebuild.
Target dsfml:graphics ~master is up to date. Use --force to rebuild.
Building guy ~master configuration "application", build type debug.
Compiling using dmd...
/Library/D/dmd/src/phobos/std/traits.d(253): Error: undefined identifier 'CentTypeList'
../../../.dub/packages/dsfml-master/src/dsfml/system/vector2.d(46): Error: template instance std.traits.isNumeric!float error instantiating
../../../.dub/packages/dsfml-master/src/dsfml/system/vector2.d(196):        while looking for match for Vector2!float
../../../.dub/packages/dsfml-master/src/dsfml/system/vector2.d(195): Error: template instance dsfml.system.vector2.Vector2!int does not match template declaration Vector2(T) if (isNumeric!T)
../../../.dub/packages/dsfml-master/src/dsfml/system/vector2.d(197): Error: template instance dsfml.system.vector2.Vector2!uint does not match template declaration Vector2(T) if (isNumeric!T)
../../../.dub/packages/dsfml-master/src/dsfml/system/vector3.d(194): Error: template instance dsfml.system.vector3.Vector3!int does not match template declaration Vector3(T) if (isNumeric!T)
../../../.dub/packages/dsfml-master/src/dsfml/system/vector3.d(195):        while looking for match for Vector3!float
../../../.dub/packages/dsfml-master/src/dsfml/graphics/rect.d(262): Error: template instance dsfml.graphics.rect.Rect!int does not match template declaration Rect(T) if (isNumeric!T)
../../../.dub/packages/dsfml-master/src/dsfml/graphics/rect.d(263):        while looking for match for Rect!float
../../../.dub/packages/dsfml-master/src/dsfml/graphics/vertex.d(49): Error: overlapping default initialization for field color and position
../../../.dub/packages/dsfml-master/src/dsfml/graphics/vertex.d(49): Error: overlapping default initialization for field texCoords and position
../../../.dub/packages/dsfml-master/src/dsfml/graphics/vertex.d(49): Error: overlapping default initialization for field position and color
../../../.dub/packages/dsfml-master/src/dsfml/graphics/vertex.d(49): Error: overlapping default initialization for field texCoords and color
../../../.dub/packages/dsfml-master/src/dsfml/graphics/vertex.d(49): Error: overlapping default initialization for field position and texCoords
../../../.dub/packages/dsfml-master/src/dsfml/graphics/vertex.d(49): Error: overlapping default initialization for field color and texCoords
FAIL .dub/build/application-debug-posix.osx-x86_64-dmd_2068-25A16FF1707072CE5DC49D735BEA1FB1/ guy executable
Error executing command run: dmd failed with exit code 1.

September 19, 2015
On Saturday, 19 September 2015 at 01:54:08 UTC, Joel wrote:
> I accidentally wiped off a small source file. I've been trying to put it back together. Now I get unrelated errors. I've tried resetting dub.
>

To reset DUB state completely:

- remove .dub/ directory in the project directory
- remove dub.selections.json
- remove the ~/.dub directory


September 19, 2015
On Saturday, 19 September 2015 at 07:24:01 UTC, ponce wrote:
> On Saturday, 19 September 2015 at 01:54:08 UTC, Joel wrote:
>> I accidentally wiped off a small source file. I've been trying to put it back together. Now I get unrelated errors. I've tried resetting dub.
>>
>
> To reset DUB state completely:
>
> - remove .dub/ directory in the project directory
> - remove dub.selections.json
> - remove the ~/.dub directory

Got it back to normal! I put this 'import dsfml.graphics;' at about the top of the file.

September 19, 2015
On Saturday, 19 September 2015 at 08:33:05 UTC, Joel wrote:
> On Saturday, 19 September 2015 at 07:24:01 UTC, ponce wrote:
>> On Saturday, 19 September 2015 at 01:54:08 UTC, Joel wrote:
>>> I accidentally wiped off a small source file. I've been trying to put it back together. Now I get unrelated errors. I've tried resetting dub.
>>>
>>
>> To reset DUB state completely:
>>
>> - remove .dub/ directory in the project directory
>> - remove dub.selections.json
>> - remove the ~/.dub directory
>
> Got it back to normal! I put this 'import dsfml.graphics;' at about the top of the file.

As first import. The reply should have been to my own post, not ponce.