EngineHub / EngineHub/CommandHelper

Static analysis exception "Procedure cannot be resolved" when procedure exists

Đang mở
#1,239 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
128
Fork
70
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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())
```
```
# test-2.ms
_test()
```
```
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 <>:C:\Users\A-y57\Dev\minecraft\plugins\CommandHelper\test-1.ms:1.9
at <>: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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.