Static analysis exception "Procedure cannot be resolved" when procedure exists
まだ誰も着手していません。
評価
調査の方向性
main.ms、test-1.ms、test-2.ms を使って静的解析の失敗を再現し、動的な include(_path()) のケースとリテラルなパスを比較します。まず、インクルードされたスクリプトの静的解析とプロシージャの解決を追跡します。静的解析を有効にしたまま、既存の _test プロシージャが例外なしに解決されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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 <<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
- 主要言語
- Java
- スター
- 128
- フォーク
- 70
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EngineHub/CommandHelper のほかの issue
-
discussion wanted documentation
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1403 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1370 · コメント 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
EngineHub/CommandHelper#1354 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
EngineHub/CommandHelper#1349 · コメント 3 件 ·
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1341 · コメント 2 件 ·
EngineHub/CommandHelper の issue をすべて見る
似ている issue
-
certification
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's オープンbug ecr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Needs: Triage Type: Feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2760 ·