-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add devilspie2 addon #182
Add devilspie2 addon #182
Conversation
Thanks for the merge! I can see this in the Addon Manager now, and can install/enable it, which puts Having installed the addon, the folder button in the addon manager takes me to |
@sparr, are you on |
I am on EndeavourOS (~Arch Linux), running VSCodium 1.93.1 and sumneko.lua-3.11.0-linux-x64. I have no user or workspace settings for the lua extension. Here are the settings from defaultSettings.json: defaultSettings.json{
"Lua.addonManager.enable": true,
"Lua.codeLens.enable": false,
"Lua.completion.autoRequire": true,
"Lua.completion.callSnippet": "Disable",
"Lua.completion.displayContext": 0,
"Lua.completion.enable": true,
"Lua.completion.keywordSnippet": "Replace",
"Lua.completion.postfix": "@",
"Lua.completion.requireSeparator": ".",
"Lua.completion.showParams": true,
"Lua.completion.showWord": "Fallback",
"Lua.completion.workspaceWord": true,
"Lua.diagnostics.disable": [],
"Lua.diagnostics.disableScheme": [
"Lua.diagnostics.enable": true,
"Lua.diagnostics.globals": [],
"Lua.diagnostics.globalsRegex": [],
"Lua.diagnostics.groupFileStatus": {},
"Lua.diagnostics.groupSeverity": {},
"Lua.diagnostics.ignoredFiles": "Opened",
"Lua.diagnostics.libraryFiles": "Opened",
"Lua.diagnostics.neededFileStatus": {},
"Lua.diagnostics.severity": {},
"Lua.diagnostics.unusedLocalExclude": [],
"Lua.diagnostics.workspaceDelay": 3000,
"Lua.diagnostics.workspaceEvent": "OnSave",
"Lua.diagnostics.workspaceRate": 100,
"Lua.doc.packageName": [],
"Lua.doc.privateName": [],
"Lua.doc.protectedName": [],
"Lua.doc.regengine": "glob",
"Lua.docScriptPath": "",
"Lua.format.defaultConfig": {},
"Lua.format.enable": true,
"Lua.hint.arrayIndex": "Auto",
"Lua.hint.await": true,
"Lua.hint.enable": false,
"Lua.hint.paramName": "All",
"Lua.hint.paramType": true,
"Lua.hint.semicolon": "SameLine",
"Lua.hint.setType": false,
"Lua.hover.enable": true,
"Lua.hover.enumsLimit": 5,
"Lua.hover.expandAlias": true,
"Lua.hover.previewFields": 50,
"Lua.hover.viewNumber": true,
"Lua.hover.viewString": true,
"Lua.hover.viewStringMax": 1000,
"Lua.language.completeAnnotation": true,
"Lua.language.fixIndent": true,
"Lua.misc.executablePath": "",
"Lua.misc.parameters": [],
"Lua.nameStyle.config": {},
"Lua.runtime.builtin": {},
"Lua.runtime.fileEncoding": "utf8",
"Lua.runtime.meta": "${version} ${language} ${encoding}",
"Lua.runtime.nonstandardSymbol": [],
"Lua.runtime.path": [
"Lua.runtime.pathStrict": false,
"Lua.runtime.plugin": "",
"Lua.runtime.pluginArgs": [],
// "Lua.runtime.special" : {
"Lua.runtime.special": {},
"Lua.runtime.unicodeName": false,
"Lua.runtime.version": "Lua 5.4",
"Lua.semantic.annotation": true,
"Lua.semantic.enable": true,
"Lua.semantic.keyword": false,
"Lua.semantic.variable": true,
"Lua.signatureHelp.enable": true,
"Lua.spell.dict": [],
"Lua.type.castNumberToInteger": true,
"Lua.type.checkTableShape": false,
"Lua.type.inferParamType": false,
"Lua.type.weakNilCheck": false,
"Lua.type.weakUnionCheck": false,
"Lua.typeFormat.config": {},
"Lua.window.progressBar": true,
"Lua.window.statusBar": true,
"Lua.workspace.checkThirdParty": "",
"Lua.workspace.ignoreDir": [
"Lua.workspace.ignoreSubmodules": true,
"Lua.workspace.library": [],
"Lua.workspace.maxPreload": 5000,
"Lua.workspace.preloadFileSize": 500,
"Lua.workspace.useGitIgnore": true,
"Lua.workspace.userThirdParty": [], When I open the Lua Addon Manager, depending on where I am in troubleshooting (with reinstalling various things, resetting settings, etc) I see one of the following four states:
From state 2 or state 3 if I click {
"Lua.workspace.library": [
"${addons}/devilspie2/module/library"
],
"Lua.workspace.checkThirdParty": false
} Clicking Clicking Retrieved Log
At that point the
I can't reproduce it right now, but I suspect the git error mentioned earlier is somewhere downstream of this situation. At no point during any of the process described above, including when the module was apparently successfully enabled in my workspace settings, did the language server stop showing an |
I just discovered/noticed that the addons/*/module directories are empty. The git submodules for the addons repo were never updated / checked out. If I do a {
"Lua.workspace.library": [
"/home/sparr/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/devilspie2/module/library"
],
"Lua.workspace.checkThirdParty": false
} and it works, so at least I know that library/devispie2.lua is good. |
aaaaaand I found the (a?) problem! elseif platform.os == "linux" then
local serverPath = util.expandPath(fs.path("~/.vscode-server/data"):string())
if fs.exists(serverPath) then
-- addons are installed via SSH remote
return serverPath .."/" .. dataPath
else
return "~/.config/Code/" .. dataPath
end The path is hardcoded for |
This addon is for writing scripts and config for https://github.com/dsalt/devilspie2