Static analysis will throw exception with message "Procedure cannot be resolved" for all user procedures in this case:
# main.ms
proc _path() {
return('test-2.ms')
}
proc _test() {
console('test')
}
include('test-1.ms')
# test-1.ms
include(_path())
ms.lang.IncludeException: There was a compile error when trying to include the script at C:\Users\A-y57\Dev\minecraft\plugins\CommandHelper\test-2.ms
Procedure cannot be resolved: _test :: test-2.ms:1
at <<include test-1.ms>>:C:\Users\A-y57\Dev\minecraft\plugins\CommandHelper\test-1.ms:1.9
at <<main code>>:C:\Users\A-y57\Dev\minecraft\plugins\CommandHelper\main.ms:9.2
If replace _path with 'test-2.ms' - everything works
If disable static analysis, everything works
Static analysis will throw exception with message "Procedure cannot be resolved" for all user procedures in this case:
If replace _path with 'test-2.ms' - everything works
If disable static analysis, everything works