LuaLS / LuaLS/lua-language-server

requiring file with multiple|tuple return

オープン
#3,321 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Lua
スター
4.4k
フォーク
442
PR マージ指標
30日以内にマージされた PR はありません

説明

Zero-K uses multiple|tuple return e.g.

drone_defs.lua

......
return carrierDefs, thingsWhichAreDrones, unitRulesCarrierDefs
--carrierDefs is correct
--thingsWhichAreDrones and unitRulesCarrierDefs  are unknow
local carrierDefs, thingsWhichAreDrones, unitRulesCarrierDefs = VFS.Include("LuaRules/Configs/drone_defs.lua")

but in default settings LuaLS only detect the first return value and left others unknow.

Can you make a setting to enable it?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Start by reproducing the issue with drone_defs.lua and the VFS.Include call shown in the report, checking how LuaLS handles the three returned values. Trace the require/include analysis entry point and identify the relevant setting path; done means the second and third assigned values are recognized without breaking the existing first return value.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua
領域
devtools
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。