You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ida: address IDA 9.5 IDAPython DeprecationWarnings #3222
Hi @mr-tz, I would like to work on this issue. I think we can have a fallback mechanism for functions in the newer version are not there in the older version.
For example:
ifhasattr(idaapi, "get_segment_info_by_num"):
# Use the newer API version (9.5+)else:
# Fallback for older versions (CI versions)
note that we check a single time at the top level of the file and then define helpers based on whats available. please do not check for IDA features directly within the program's logic.
Hi @williballenthin thanks for pinpoint me to the pr, I just now got the broader level understanding of Domain API integration obv I would be deep diving in! Would you prefer me contributing to Domain API migration rather than introducing individual compatibility shims?
stick to fixing just the deprecation warnings for this PR. it's possible we take an alternative approach with the domain API, but it's not the plan right now.
Activity
Pratham21223 commentedon Nov 5, 2026
Hi @mr-tz, I would like to work on this issue. I think we can have a fallback mechanism for functions in the newer version are not there in the older version.
For example:
williballenthin commentedon Nov 5, 2026
@Pratham21223
we already have a pattern somewhat like this here:
capa/capa/features/extractors/ida/helpers.py
Lines 32 to 82 in ad6077d
note that we check a single time at the top level of the file and then define helpers based on whats available. please do not check for IDA features directly within the program's logic.
williballenthin commentedon Nov 5, 2026
alternatively we could migrate to the Domain API
#2810
Pratham21223 commentedon Nov 5, 2026
Hi @williballenthin thanks for pinpoint me to the pr, I just now got the broader level understanding of Domain API integration obv I would be deep diving in! Would you prefer me contributing to Domain API migration rather than introducing individual compatibility shims?
williballenthin commentedon Nov 5, 2026
stick to fixing just the deprecation warnings for this PR. it's possible we take an alternative approach with the domain API, but it's not the plan right now.