LuaLS / LuaLS/lua-language-server

Improve Lua code to get current version

オープン
#2,542 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

script/version.lua の loadVersion から開始し、現在のバージョンが changelog.md からどのように導出されているかを調べます。changelog.md が存在しないパッケージングのケースを再現し、その後、バージョンが最後の Git タグまたは明示的に定義された値から取得され、Unknown を返さないことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua
領域
devtools
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。