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

lack of vec(x,y) definition #3

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

lack of vec(x,y) definition #3

beetrootpaul opened this issue Feb 10, 2025 · 2 comments

Comments

@beetrootpaul
Copy link

I think vec(x, y) lacks a signature. I get a following warning for vec(-1, -1): "This function expects a maximum of 0 argument(s) but instead it is receiving 2.Lua Diagnostics.(redundant-parameter)" If I am not wrong, the only one defined is the 0-argument one.

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 12, 2025

The userdata part has not been completed yet, and its content is basically just a placeholder. Issue #3 #5 is all because of this. I will finish this part as soon as possible.

I'll just keep this issue until the problem is solved.

@ahai64 ahai64 closed this as completed Feb 12, 2025
@ahai64 ahai64 reopened this Feb 12, 2025
ahai64 pushed a commit that referenced this issue Feb 13, 2025
@ahai64
Copy link
Owner

ahai64 commented Feb 13, 2025

The APIs of userdata are basically completed. This problem should be solved now.
This part of APIs are still unstable and faulty in Picotron 0.1.1d, so it still needs some work.

@ahai64 ahai64 closed this as completed Feb 13, 2025
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