rikkimax / alphaPhobos

Assume License: Boost
11 stars 1 forks source link

Error compiling with DMD , windows 7 and VStudio 2015 #10

Closed Zardoz89 closed 8 years ago

Zardoz89 commented 8 years ago

With the latest version of dmd 2.70 and VStudio 2015 comunity version with the last update. both on 32 and 64 bits

alphaphobos

rikkimax commented 8 years ago

I just checked druntime, and my code. I do not see how HMONITOR could be unknown. There are issues with building with 64bit, but not 32bit.

So there must be something different about our environments.

Zardoz89 commented 8 years ago

I would recheck it again tomorrow (work computer). Perhaps DMD installer not grab the correct paths . I had similar issues previously with gtkd on windows.

Zardoz89 commented 8 years ago

Yep, was my enviroment on my work cormputer :

B:/r/p/alphaPhobos (master)> dub build alphaphobos:tests
Building package alphaphobos:tests in B:\repos\pruebas\alphaPhobos\
Performing "debug" build using dmd for x86.
alphaphobos ~master: building configuration "library"...
alphaphobos:tests ~master: building configuration "application"...
Linking...
B:/r/p/alphaPhobos (master)> ls
alphaphobos.lib*        dlang.org/  dub.json*  dub.selections.json*  project.ddoc*  source/      tests/
alphaphobos_tests.exe*  docs/       dub.sdl*   outputDocs.sh*        README.md*     testAssets/
B:/r/p/alphaPhobos (master)> ./alphaphobos_tests.exe
Unittests for alphaPhobos has run successfully.
B:/r/p/alphaPhobos (master)>

Not should print stuff like "Running test X" ?

Zardoz89 commented 8 years ago

Also, I just try with 64 bits, give me some warning, but works :

>dub build alphaphobos:tests -a x86_64
Building package alphaphobos:tests in B:\repos\pruebas\alphaPhobos\
Performing "debug" build using dmd for x86_64.
alphaphobos ~master: building configuration "library"...
alphaphobos:tests ~master: building configuration "application"...
Linking...
alphaphobos.lib(package.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info
alphaphobos.lib(package.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info
alphaphobos.lib(base.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info
alphaphobos.lib(package.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info
B:/r/p/alphaPhobos (master)> ./alphaphobos_tests.exe
Unittests for alphaPhobos has run successfully.
rikkimax commented 8 years ago

You'll need to compile with unittesting enabled. I should really output if it isn't.

On Thu, Feb 18, 2016 at 1:58 AM, Luis notifications@github.com wrote:

Also, I just try with 64 bits, give me some warning, but works :

dub build alphaphobos:tests -a x86_64 Building package alphaphobos:tests in B:\repos\pruebas\alphaPhobos\ Performing "debug" build using dmd for x86_64. alphaphobos ~master: building configuration "library"... alphaphobos:tests ~master: building configuration "application"... Linking... alphaphobos.lib(package.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info alphaphobos.lib(package.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info alphaphobos.lib(base.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info alphaphobos.lib(package.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info B:/r/p/alphaPhobos (master)> ./alphaphobos_tests.exe Unittests for alphaPhobos has run successfully.

— Reply to this email directly or view it on GitHub https://github.com/rikkimax/alphaPhobos/issues/10#issuecomment-185190285 .

Zardoz89 commented 8 years ago

Ok. Now I get errors :( :

> dub build alphaphobos:tests --build=unittest
Building package alphaphobos:tests in B:\repos\pruebas\alphaPhobos\
Performing "unittest" build using dmd for x86.
alphaphobos ~master: building configuration "library"...
alphaphobos:tests ~master: building configuration "application"...
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(65,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth2,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(94,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth2,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth4,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(123,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth4,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth8,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(152,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth8,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth16,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(181,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth16,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.Adam7));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(213,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.Adam7));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
dmd failed with exit code 1.

B:/r/p/alphaPhobos (master) [2]> dub build alphaphobos:tests -a x86_64 --build=unittest
Building package alphaphobos:tests in B:\repos\pruebas\alphaPhobos\
Performing "unittest" build using dmd for x86_64.
alphaphobos ~master: building configuration "library"...
test disabled on x86_64, see bug 5628
alphaphobos:tests ~master: building configuration "application"...
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(65,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth2,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(94,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth2,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth4,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(123,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth4,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth8,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(152,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth8,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth16,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(181,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth16,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.NoInterlace));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d(16,10): Error: template instance tests.png.test1.png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.Adam7));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    ".png_test1.check!(PNGFileFormat!(HeadersOnly)) error instantiating
tests\png\test1.d(213,5):        instantiated from here: png_test1!"\x0a        assert(image.checkIDHR(32, 32,\x0a                PngIHDRBitDepth.BitDepth1,\x0a                PngIHDRColorType.Grayscale,\x0a                PngIHDRCompresion.DeflateInflate,\x0a                PngIHDRFilter.Adaptive,\x0a                PngIHDRInterlaceMethod.Adam7));\x0a        \x0a        assert(image.PLTE is null);\x0a        assert(image.tRNS is null);\x0a        \x0a        assert(image.gAMA !is null);\x0a        assert(image.gAMA.value == 100_000);\x0a        \x0a        assert(image.cHRM is null);\x0a        assert(image.sRGB is null);\x0a        assert(image.iCCP is null);\x0a        assert(image.bKGD is null);\x0a        assert(image.pPHs is null);\x0a        assert(image.sBIT is null);\x0a        assert(image.tIME is null);\x0a        \x0a        assert(image.tEXt.__internalKeys.length == 0);\x0a        assert(image.zEXt.__internalKeys.length == 0);\x0a        \x0a        assert(image.sPLT.length == 0);\x0a        assert(image.hIST.length == 0);\x0a    "
tests\png\test1.d-mixin-9(31,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
tests\png\test1.d-mixin-9(32,26): Error: no property '__internalKeys' for type 'Map!(PngTextKeywords, string)'
dmd failed with exit code 1.
rikkimax commented 8 years ago

There is one more issue left to solve which should allow all tests to pass. When I was replacing my dummy map/list types I missed a few things. Those __internalKeys are one of them. The other is I mucked up the keys/values getting (as a whole array).

It'll take me a bit. But I should be able to solve it without much trouble.