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

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

Closed
Zardoz89 opened this issue Feb 16, 2016 · 7 comments
Closed

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

Zardoz89 opened this issue Feb 16, 2016 · 7 comments

Comments

@Zardoz89
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
#10 (comment)
.

@Zardoz89
Copy link
Author

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
Copy link
Owner

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.

rikkimax added a commit that referenced this issue Mar 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants