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