Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Unintentionally global variables stat and ret in async_lib?

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
lua
領域
tooling

調査の方向性

Open lua/plenary/async_lib/util.lua around lines 292-302 and inspect how stat and ret are assigned and used. The issue is done when those names no longer unintentionally create or modify globals while preserving the existing async_lib behavior.

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

説明

It looks like stat and ret should be local in this code and not global.

This is a common mistake in lua that happens easily I guess. Found by lua language server autocomplete.

To make them local would make them encapsulated, and you avoid risk - people using the unintentionally used variables, or overwriting people's globals.

Link:

https://github.com/nvim-lua/plenary.nvim/blob/08e301982b9a057110ede7a735dd1b5285eb341f/lua/plenary/async_lib/util.lua#L292-L302

主要言語
Lua
スター
3.5k
フォーク
341
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

nvim-lua/plenary.nvim のほかの issue

nvim-lua/plenary.nvim の issue をすべて見る

似ている issue

Lua の issue をもっと見る

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

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