EngineHub / EngineHub/CommandHelper

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

Offen
#1,239 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
128
Forks
70
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.