It seems the usage of template package template DECLARE_HANDLE(string name, base = HANDLE) { mixin ("alias " ~ base.stringof ~ " " ~ name ~ ";"); in druntime is superfluous but causes headaches for IDEs like IntelliJ as it cannot find the source of e.g. SC_HANDLE which is defined as mixin DECLARE_HANDLE!("SC_HANDLE"); As far as I understand the template can be removed and the handles can be defined as e.g. alias HANDLE SC_HANDLE; See also https://forum.dlang.org/post/jqifbzadmpzxqxhzfsyl@forum.dlang.org
@vabenil created dlang/dmd pull request #16038 "Fix issue 19702 - Remove usage of DECLARE_HANDLE" fixing this issue: - Fix issue 19702 - Remove usage of DECLARE_HANDLE Replace DECLARE_HANDLE in favor of aliases to avoid weird compilation issues. https://github.com/dlang/dmd/pull/16038
dlang/dmd pull request #16038 "Fix issue 19702 - Remove usage of DECLARE_HANDLE" was merged into master: - 85cc0cad7920f3f93dd83a9a9ff47484d617a7b9 by vabenil: Fix issue 19702 - Remove usage of DECLARE_HANDLE Replace DECLARE_HANDLE in favor of aliases to avoid weird compilation issues. https://github.com/dlang/dmd/pull/16038