LuaLS / LuaLS/lua-language-server

Class are both the correct class type and undefined

未關閉
#2,522 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Lua
星號
4.4k
分支
442
PR 合併指標
30 天內沒有已合併 PR

描述

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Linux

What is the issue affecting?

Type Checking

Expected Behaviour

IPv4Router should be a kind of Object.

Actual Behaviour

image

Reproduction steps
  1. Clone https://github.com/AR2000AR/openComputers_codes
  2. Install the definitions https://github.com/AR2000AR/opencomputers-openos-definitions to reduce the number of errors. Wireshark related files errors can be ignored (since there is not complete definitions for Wireshark available yet)
  3. Open network/lib/network/ipv4/IPv4Layer.lua:108
Additional Notes

312 errors with 3.7.4
9 errors with 3.6.21

Log File

3.7.4 file_home_ar2000_Documents_Programmation_Lua_openComputers_codes.worktrees_lls-rework.log
3.6.21 file_home_ar2000_Documents_Programmation_Lua_openComputers_codes.worktrees_lls-rework.log

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

使用 openComputers_codes 儲存庫、其中的 opencomputers-openos-definitions 以及 network/lib/network/ipv4/IPv4Layer.lua:108 重現該報告。比較 3.7.4 和 3.6.21 版本的診斷資訊與日誌,然後追蹤導致 IPv4Router 同時被視為一個類別和未定義的型別檢查行為。重現不再產生報告中所述的錯誤診斷資訊,即視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
lua
領域
devtools
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。