ariovistus / pyd

Interoperability between Python and D
MIT License
157 stars 32 forks source link

DDOCs warnings #136

Closed andre2007 closed 3 years ago

andre2007 commented 4 years ago

Building ddoc/ddox is not possible, dmd fails with many ddoc warnings

dub build -b ddox -c python37 Performing "ddox" build using C:\Develop\D\dmd2\windows\bin64\dmd.exe for x86_64. pyd 0.13.1: building configuration "python37"...

infrastructure\deimos\python\bytearrayobject.d(13,1): Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use $(RPAREN) instead for unpaired right parentheses. infrastructure\deimos\python\compile.d(97,23): Warning: Ddoc: parameter count mismatch, expected 5, got 1 infrastructure\deimos\python\floatobject.d(113,5): Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use $(RPAREN) instead for unpaired right parentheses. infrastructure\deimos\python\floatobject.d(113,5): Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use $(RPAREN) instead for unpaired right parentheses. infrastructure\deimos\python\import.d(94,19): Warning: Ddoc: parameter count mismatch, expected 2, got 1 infrastructure\deimos\python\import.d(113,13): Warning: Ddoc: parameter count mismatch, expected 3, got 2 infrastructure\deimos\python\object.d(48,1): Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use $(RPAREN) instead for unpaired right parentheses. infrastructure\deimos\python\pythonrun.d(261,11): Warning: Ddoc: function declaration has no parameter 'l' infrastructure\deimos\python\symtable.d(81,12): Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use $(RPAREN) instead for unpaired right parentheses. infrastructure\deimos\python\symtable.d(83,12): Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use $(RPAREN) instead for unpaired right parentheses. infrastructure\deimos\python\unicodeobject.d(1238,17): Warning: Ddoc: function declaration has no parameter 'error' infrastructure\deimos\python\unicodeobject.d(1253,17): Warning: Ddoc: function declaration has no parameter 'error' infrastructure\deimos\python\unicodeobject.d(1268,17): Warning: Ddoc: function declaration has no parameter 'error' infrastructure\deimos\python\unicodeobject.d(1268,17): Warning: Ddoc: parameter count mismatch, expected 5, got 4 infrastructure\deimos\python\unicodeobject.d(1536,15): Warning: Ddoc: function declaration has no parameter 'base64SetO'infrastructure\deimos\python\unicodeobject.d(1536,15): Warning: Ddoc: function declaration has no parameter 'base64WhiteSpace' infrastructure\deimos\python\unicodeobject.d(1721,15): Warning: Ddoc: function declaration has no parameter 'data' infrastructure\deimos\python\unicodeobject.d(1865,14): Warning: Ddoc: parameter count mismatch, expected 2, got 1 infrastructure\pyd\class_wrap.d(281,1): Warning: Ddoc: function declaration has no parameter 'fn_t' infrastructure\pyd\class_wrap.d(281,1): Warning: Ddoc: function declaration has no parameter 'pyname' infrastructure\pyd\class_wrap.d(281,1): Warning: Ddoc: function declaration has no parameter 'docstring' infrastructure\pyd\class_wrap.d(351,1): Warning: Ddoc: function declaration has no parameter 'fn_t' infrastructure\pyd\class_wrap.d(351,1): Warning: Ddoc: function declaration has no parameter 'pyname' infrastructure\pyd\class_wrap.d(351,1): Warning: Ddoc: function declaration has no parameter 'docstring' infrastructure\pyd\class_wrap.d(398,1): Warning: Ddoc: function declaration has no parameter 'pyname' infrastructure\pyd\class_wrap.d(398,1): Warning: Ddoc: function declaration has no parameter 'mode' infrastructure\pyd\class_wrap.d(398,1): Warning: Ddoc: function declaration has no parameter 'docstring' infrastructure\pyd\class_wrap.d(482,1): Warning: Ddoc: function declaration has no parameter 'fn' infrastructure\pyd\class_wrap.d(795,1): Warning: Ddoc: function declaration has no parameter 'op' infrastructure\pyd\class_wrap.d(848,1): Warning: Ddoc: function declaration has no parameter 'rhs_t' infrastructure\pyd\class_wrap.d(1539,6): Warning: Ddoc: function declaration has no parameter 'pyname' infrastructure\pyd\class_wrap.d(1539,6): Warning: Ddoc: function declaration has no parameter 'modulename' infrastructure\pyd\class_wrap.d(1539,6): Warning: Ddoc: function declaration has no parameter 'docstring' infrastructure\pyd\class_wrap.d(1539,6): Warning: Ddoc: parameter count mismatch, expected 0, got 3 infrastructure\pyd\def.d(198,6): Warning: Ddoc: function declaration has no parameter 'fn' infrastructure\pyd\def.d(198,6): Warning: Ddoc: function declaration has no parameter 'modulename' infrastructure\pyd\def.d(198,6): Warning: Ddoc: function declaration has no parameter 'pyname' infrastructure\pyd\def.d(198,6): Warning: Ddoc: function declaration has no parameter 'fn_t' infrastructure\pyd\def.d(198,6): Warning: Ddoc: function declaration has no parameter 'docstring' infrastructure\pyd\def.d(198,6): Warning: Ddoc: parameter count mismatch, expected 0, got 5 infrastructure\pyd\embedded.d(109,7): Warning: Ddoc: parameter count mismatch, expected 3, got 1 infrastructure\pyd\embedded.d(134,10): Warning: Ddoc: parameter count mismatch, expected 3, got 1 infrastructure\pyd\embedded.d(175,19): Warning: Ddoc: parameter count mismatch, expected 3, got 0 infrastructure\pyd\embedded.d(175,19): Note that the format is param = description infrastructure\pyd\embedded.d(228,3): Warning: Ddoc: parameter count mismatch, expected 4, got 2 infrastructure\pyd\embedded.d(262,6): Warning: Ddoc: parameter count mismatch, expected 4, got 2 infrastructure\pyd\struct_wrap.d(102,1): Warning: Ddoc: function declaration has no parameter 'pyname' infrastructure\pyd\struct_wrap.d(102,1): Warning: Ddoc: function declaration has no parameter 'mode' infrastructure\pyd\struct_wrap.d(102,1): Warning: Ddoc: function declaration has no parameter 'docstring'

andre2007 commented 4 years ago

Workaround: Add to pyd dub.json this attribute "buildRequirements": ["allowWarnings"]