Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Relax `@meta` module name format for Scribunto

Aperta
#3,468 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
lua
Ambito
tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
  1. Reproduction can be done with local _args = require('Module:Arguments').getArgs and checking the type.
Additional Notes

No response

Log File

No response

Lingua principale
Lua
Stelle
4.4k
Fork
446
Merge medio
8g 9h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LuaLS/lua-language-server

Tutte le issue di LuaLS/lua-language-server

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.