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
In "include/log4sp.inc", when the LOG4SP_NO_EXT macro is not defined, header files in "include/log4sp" folder will be included.
Conversely, if the LOG4SP_NO_EXT macro is defined, header files in "include/log4sp_no_ext" folder will be included.
Therefore, it should be possible to include or jump to header files different folders depending on whether the macro LOG4SP_NO_EXT is defined.
But the actual situation is that regardless of whether the LOG4SP_NO_EXT macro is defined, Go To Logger will jump to "include/log4sp_no_ext/logger.inc"
Even without include "include/log4sp/common.inc" and "include/log4sp_no_ext/common.inc", but after deleting these two files, the error will disappear.
To Reproduce
test_log4sp.sp
#include<log4sp>publicvoidOnPluginStart()
{
// Go to Logger jumps to "include/log4sp_no_ext/logger.inc"// Not "include/log4sp/logger.inc"Loggerlog=newLogger("name");
// Error: no method `GetLevel` on type `Logger`// But it compiles fine.log.GetLevel();
}
include
log4sp.inc
#if defined _log_for_sourcepawn_included
#endinput#endif#define _log_for_sourcepawn_included
#if !defined LOG4SP_NO_EXT
#include<log4sp/logger>#else#include<log4sp_no_ext/logger>#endif
log4sp
common.inc
#if defined _log_for_sourcepawn_common_included
#endinput#endif#define _log_for_sourcepawn_common_included
Basic informations
Further Information
In
"include/log4sp.inc"
, when theLOG4SP_NO_EXT
macro is not defined, header files in"include/log4sp"
folder will be included.Conversely, if the
LOG4SP_NO_EXT
macro is defined, header files in"include/log4sp_no_ext"
folder will be included.Therefore, it should be possible to include or jump to header files different folders depending on whether the macro
LOG4SP_NO_EXT
is defined.But the actual situation is that regardless of whether the
LOG4SP_NO_EXT
macro is defined, Go To Logger will jump to"include/log4sp_no_ext/logger.inc"
Even without include
"include/log4sp/common.inc"
and"include/log4sp_no_ext/common.inc"
, but after deleting these two files, the error will disappear.To Reproduce
test_log4sp.sp
include
log4sp.inc
log4sp
common.inc
logger.inc
log4sp_no_ext
common.inc
logger.inc
Code to reproduce the behaviour
Go To Definition incorrect
No method
GetLevel
on typeLogger
Expected behaviour
If
LOG4SP_NO_EXT
is not defined, should jump to the include files of"include/log4sp/**"
.The text was updated successfully, but these errors were encountered: