LuaLS / LuaLS/lua-language-server
`luamake test` doesn't find packages
まだ誰も着手していません。
- 主要言語
- Lua
- スター
- 4.4k
- フォーク
- 442
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
How are you using the lua-language-server?
Command Line
Which OS are you using?
MacOS
What is the issue affecting?
Other
Expected Behaviour
luamake test runs the same tests with the same results as luamake rebuild
Actual Behaviour
luamake rebuild works.
luamake test can't find packages:
module 'log' not found:
no field package.preload['log']
no file 'log.lua'
no file 'log/init.lua'
no file './test/log.lua'
no file './test/log/init.lua'
no file 'log.so'
no file 'build/bin/log.so'
stack traceback:
/Users/sparr/src/lua-language-server/test.lua:20: in main chunk
Updating package.path to point to the log module leads to another failed package load, then multiple additions to package.path to find more modules, eventually leading to needing to compile lpeglabel.so manually, then a dead end when I couldn't figure out how to resolve this one (note the new paths being searched from all the additions I made to package.path to get this far)
module 'luamake' not found:
no field package.preload['luamake']
no file 'luamake.lua'
no file 'luamake/init.lua'
no file './test/luamake.lua'
no file './test/luamake/init.lua'
no file './script/luamake.lua'
no file './script/luamake/init.lua'
no file './test/plugins/ffi/luamake.lua'
no file './make/luamake.lua'
no file 'luamake.so'
no file 'build/bin/luamake.so'
stack traceback:
...rs/clarence/src/lua-language-server/make/code_format.lua:1: in main chunk
...e/src/lua-language-server/script/provider/formatting.lua:1: in main chunk
...e/src/lua-language-server/script/provider/capability.lua:8: in main chunk
...nce/src/lua-language-server/script/provider/provider.lua:2: in main chunk
/Users/clarence/src/lua-language-server/script/lclient.lua:11: in main chunk
/Users/clarence/src/lua-language-server/test.lua:82: in local 'main'
/Users/clarence/src/lua-language-server/test.lua:119: in main chunk
Reproduction steps
- Run
3rd/luamake/luamake rebuild - Run
3rd/luamake/luamake test
Additional Notes
No response
Log File
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず報告されたコマンド 3rd/luamake/luamake rebuild と 3rd/luamake/luamake test を実行し、それらのパッケージパスを比較します。test.lua を読み、make/code_format.lua と参照されている script ファイルをたどって、失敗している import を追跡します。luamake test がパッケージを見つけ、luamake rebuild と同じテストを同じ結果で実行できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- build-system, cli, testing
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100