Relax `@meta` module name format for Scribunto
まだ誰も着手していません。
評価
調査の方向性
Start by tracing how @meta annotations parse module names and compare that path with require('Module:Arguments'). Check the existing annotation and module-resolution tests, if present. Done means @meta Module:Arguments is treated as the complete module name and the reproduction resolves getArgs with the expected type.
索引モデルが issue の本文から書いたものです。
説明
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations
Expected Behaviour
In Mediawiki (Scribunto) environment, Lua modules are prefixed with Module:, but currently such names cannot be specified with @meta.
Actual Behaviour
This meta file will not work (Module is recognized as module name instead):
---@meta Module:Arguments
local p = {}
---@param frame Frame
---@param args { trim: boolean, removeBlanks: boolean, valueFunc: fun(key: any, value: any): any, frameOnly: boolean, parentOnly: boolean, parentFirst: boolean, wrappers: string|string[], readOnly: boolean, noOverwrite: boolean }?
---@return table
function p.getArgs ( frame, args ) end
return p
Reproduction steps
- Reproduction can be done with
local _args = require('Module:Arguments').getArgsand checking the type.
Additional Notes
No response
Log File
No response
- 主要言語
- Lua
- スター
- 4.4k
- フォーク
- 446
- 平均マージ
- 8日 9時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LuaLS/lua-language-server のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
LuaLS/lua-language-server#1776 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
LuaLS/lua-language-server#3470 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
LuaLS/lua-language-server#3469 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
LuaLS/lua-language-server#3463 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
LuaLS/lua-language-server#3461 ·
LuaLS/lua-language-server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 3 日以内に返信
-
Campaign WC
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
public-transport/transitous#2569 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
core: a monitored method's raise rewrites every ? of its message, a resumed runtime's text includedオープンseverity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
luainkernel/lunatik#1861 ·
メンテナーはふだん 1 日以内に返信