lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Class are both the correct class type and undefined

Open AR2000AR opened this issue 1 year ago • 0 comments

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

AR2000AR avatar Feb 13 '24 20:02 AR2000AR