Relax `@meta` module name format for Scribunto
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 446
- Merge trung bình
- 8 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của LuaLS/lua-language-server
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
LuaLS/lua-language-server#1776 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
LuaLS/lua-language-server#3470 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
LuaLS/lua-language-server#3469 ·
-
泛型for迭代器的类型推导漏掉了带__call的类Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
LuaLS/lua-language-server#3463 · 5 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
LuaLS/lua-language-server#3461 ·
Tất cả issue của LuaLS/lua-language-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
public-transport/transitous#2569 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
bug: (profiler): E484 "Can't open file .../vim/_core/shared" when stopping profiler on Neovim 0.12Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
folke/snacks.nvim#2971 ·
-
severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
luainkernel/lunatik#1853 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Recognise more linters: yamllint, hlint, luacheck, sqlfluff, buf, tflint, swiftformat --lintĐang mởenhancement good first issue hacktoberfest runner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100