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

Strange type of a new vec shown on a mouse hover #5

Closed
beetrootpaul opened this issue Feb 10, 2025 · 1 comment
Closed

Strange type of a new vec shown on a mouse hover #5

beetrootpaul opened this issue Feb 10, 2025 · 1 comment

Comments

@beetrootpaul
Copy link

I have local topbar_size = vec(128, 16) in my code. When I hover over topbar_size), the hover content says:

local topbar_size: {
    y: unknown,
}

It seems strange. I would rather expect a table of all x, y, z, u, v, w, t.

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.

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