JonathanSalwan / Triton

Triton is a dynamic binary analysis library. Build your own program analysis tools, automate your reverse engineering, perform software verification or just emulate code.
https://triton-library.github.io
Apache License 2.0
3.4k stars 524 forks source link

Unable to use autocompletion in VSCode #1207

Closed deadc0re closed 1 year ago

deadc0re commented 1 year ago

I've tried to use the generate_complete.py to configure it, but it does not work, i got this error.

Is there something i'm missing ?

error: argument name not unique
 'dict getModel(AstNode node, status=False, timeout=0)', arg_name 'args'
... in module TritonContext
error: argument name not unique
 'List[dict] getModels(AstNode node, int limit, status=False, timeout=0)', arg_name 'args'
... in module TritonContext
set()
set()
set()
set()
{'    class ARM: pass'}
set()
set()
{'    class ARM: pass'}
{'    class AARCH64: pass', '    class X86: pass', '    class ARM32: pass'}
set()
{'    class X86: pass'}
{'    class ARM: pass'}
set()
set()
set()
warning: empty namespace STUBS
set()
set()
set()
autocomplete generation done
JonathanSalwan commented 1 year ago

Note that even with this error, the file triton_autocomplete/__init__.py is generated. However, I've fixed those two errors so that getModel and getModels are now take into account in the autocomplete module.