LuaLS / LuaLS/lua-language-server

can't auto detect love2d project (3.71 is OK, 3.7.2 and 3.7.3 are broken).

未關閉
#2,419 3 則留言 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?

MacOS 13.4 intel

### What is the issue affecting?

Can't auto detect love2d project, no popup for write configure for love2d project. (NOTICE: 3.71 is OK, 3.7.2 and 3.7.3 are broken)

### Expected Behaviour

this popup should be popup when the Lua file contains love. load or love.update ..., but currently version no popup shows.

Screenshot 2023-11-18 at 11 57 07

### Actual Behaviour

Screenshot 2023-11-18 at 11 57 07
this popup should show when detecting the love2d project

### Reproduction steps

[t1.zip](https://github.com/LuaLS/lua-language-server/files/13398870/t1.zip)

1. use vscode to open this folder
2. open main.lua
3. should popup the configure popup(see image).
Screenshot 2023-11-18 at 11 57 07

### Additional Notes

3.71 is OK, 3.7.2 and 3.7.3 are broken

### Log File

_No response_

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

透過在 VS Code 中開啟附加的 t1.zip 資料夾,然後開啟 main.lua,重現此問題,並比較 3.71、3.7.2 和 3.7.3 版本中的行為。追蹤 Love2D 自動偵測路徑,並驗證當檔案包含 love.load 或 love.update 時,設定彈出視窗會出現。

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

評估

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

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

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