dstep icon indicating copy to clipboard operation
dstep copied to clipboard

dstep: an unknown error occurred: core.exception.AssertError@dstep/translator/Type.d(32): Assertion failure

Open qproger opened this issue 5 years ago • 3 comments

Hello, I try to translate C header file called "tcl.h" from Tcl/Tk C library. Used command: dstep -o tcl.di tcl.h After that get this error: dstep: an unknown error occurred: core.exception.AssertError@dstep/translator/Type.d(32): Assertion failure and a lot of lines ---------------- ??:? [0x3291b90] ??:? [0x329be4a] ??:? [0x328332d] ??:? [0x327a7ec] ??:? [0x52ad59] ??:? [0x532e96] ....

DStep is 1.0.0. OS: Redhat 6.5

qproger avatar Jan 24 '20 08:01 qproger

Found out that these three lines cause assertion failure: #define TCL_VOLATILE ((Tcl_FreeProc *) 1) #define TCL_STATIC ((Tcl_FreeProc *) 0) #define TCL_DYNAMIC ((Tcl_FreeProc *) 3)

qproger avatar Jan 24 '20 09:01 qproger

Which version of libclang are you using? You can run dstep --clang-version.

jacob-carlborg avatar Jan 24 '20 15:01 jacob-carlborg

I can not reproduce this with DStep linked with libclang 8.

jacob-carlborg avatar Jan 25 '20 13:01 jacob-carlborg