Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btnp definition has optional arguments, but Lua extension still warns about a lack of a param in the btnp call #4

Closed
beetrootpaul opened this issue Feb 10, 2025 · 2 comments

Comments

@beetrootpaul
Copy link

I get this warning for my btnp(1) call: "This function requires 2 argument(s) but instead it is receiving 1.Lua Diagnostics.(missing-parameter)"

Just in case, I am attaching my <folder-name>.code-workspace file here:

{
	"extensions": {
		"recommendations": [
			"sumneko.lua"
		]
	},
	"folders": [
		{
			"path": "."
		}
	],
	"settings": {
		"files.associations": {
			"*.lua": "lua"
		},
		"files.exclude": {
			"**/.DS_Store": false,
			"**/.git": false,
			"tmp/": false
		},
		"files.insertFinalNewline": true,
		"files.trimFinalNewlines": true,
		"files.trimTrailingWhitespace": true,
		"Lua.codeLens.enable": true,
		"Lua.completion.callSnippet": "Both",
		"Lua.completion.displayContext": 4,
		"Lua.completion.showWord": "Enable",
		"Lua.diagnostics.disable": [
			"lowercase-global",
			"undefined-doc-name",
			"err-esc"
		],
		"Lua.doc.privateName": [
			"_*"
		],
		"Lua.format.enable": true,
		"Lua.hint.arrayIndex": "Enable",
		"Lua.hint.semicolon": "Disable",
		"Lua.hint.setType": true,
		"Lua.runtime.builtin": {
			"basic": "enable",
			"bit": "disable",
			"bit32": "disable",
			"builtin": "enable",
			"coroutine": "enable",
			"debug": "enable",
			"ffi": "disable",
			"io": "disable",
			"jit": "disable",
			"math": "enable",
			"os": "disable",
			"package": "disable",
			"string": "enable",
			"table": "enable",
			"table.clear": "disable",
			"table.new": "disable",
			"utf8": "enable"
		},
		"Lua.runtime.nonstandardSymbol": [
			"!=",
			"+=",
			"-=",
			"*=",
			"/=",
			"%=",
			"^=",
			"|=",
			"&=",
			"<<=",
			">>=",
			"//",
		],
		"Lua.runtime.pathStrict": true,
		"Lua.runtime.special": {
			"include": "require"
		},
		"Lua.runtime.version": "LuaJIT",
		"Lua.semantic.keyword": false,
		"Lua.type.checkTableShape": true,
		"Lua.type.inferParamType": true,
		"Lua.type.inferTableSize": 20,
		"Lua.typeFormat.config": {
			"auto_complete_end": "true",
			"auto_complete_table_sep": "true",
			"format_line": "true"
		},
		"Lua.workspace.checkThirdParty": false,
		"Lua.workspace.library": [
			"./external-repositories/pico-api/picotron/"
		]
	}
}

@ahai64
Copy link
Owner

ahai64 commented Feb 10, 2025

fixed this in 5447f7c

@beetrootpaul
Copy link
Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants