LuaLS / LuaLS/lua-language-server
cannot recognize emmy field
オープン
まだ誰も着手していません。
feat/LuaCats Annotations
question
- 主要言語
- Lua
- スター
- 4.4k
- フォーク
- 442
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I have defined an emmy class role:
---@class role
---@field equipment_mgr equipment_mgr
an emmy class equipment_mgr:
---@class equipment_mgr
local data = {
role = role, ---@type role
equipment = orm_equipment, ---@type table<integer, db.Equipment>
}
then add some method to equipment_mgr:
---@type equipment_mgr
local mt = {}
mt.__index = mt
---@return db.Equipment
function mt:get_equipment(uid)
return self.equipment[uid]
end
Lua Diagnostics cannot recognize the method get_equipment:

while other extension can
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、示されている Lua のクラス、フィールド、メタテーブル、および get_equipment メソッドを Lua Diagnostics で再現します。メソッドの認識を、言及されているもう一方の拡張機能と比較します。Lua Diagnostics が報告された診断なしに equipment_mgr 上の get_equipment を認識すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100