LuaLS / LuaLS/lua-language-server
Improve Lua code to get current version
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Other
What is the issue affecting?
Other
Expected Behaviour
I would like to get the current version for lua-language-server without changelog.md file.
Improve Lua code in script/version.lua to get current version (last Git tag).
Actual Behaviour
When a contributor packages lua-language-server for a distribution (Linux or BSD), the changelog.md file is not always included.
In script/version.lua file, the current version is defined (function loadVersion) with parsing of the changelog.md file. If this file is not present, the returned version is Unknown.
It will be better to get the current version without parsing of changelog.md file => get version from the last Git tag or define the current version in script/version.lua file.
Reproduction steps
N/A
Additional Notes
No response
Log File
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 script/version.lua 中的 loadVersion 開始,檢查目前版本是如何從 changelog.md 推導出來的。重現缺少 changelog.md 的打包情境,然後驗證版本來自最後一個 Git 標籤或明確定義的值,而不是回傳 Unknown。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100