"Copy publish" command not able to locate extensions
Short:
Executing task: luamake lua compile/copy.lua publish publish "C:\Users\Andrii.vscode\extensions" throws following error
D:/Repositories/lua-debug/compile/copy.lua:113: `C:/Users/Andrii/.vscode/extensions"/actboy168.lua-debug-2.0.12` is not installed.
stack traceback:
D:/Repositories/lua-debug/compile/copy.lua:113: in local 'detectPlatform'
D:/Repositories/lua-debug/compile/copy.lua:118: in main chunk
Long:
I just discovered your luamake, lua-debug projects and trying to setup everthing.
I installed extensionPath 0.0.4 through vscode extensions, cloned and installed luamake. Now, when I tried to follow lua-debug installation guide I am unable to proceed with publishing.
It seems like extensionPath returns double quote at the end of the string (C:/Users/Andrii/.vscode/extensions"). Not sure exactly what causes that but for myself I was able to fix by changing task definition from:
"label": "Copy Extension",
"command": "luamake",
"args": [
"lua",
"compile/copy.lua",
"extension",
"extension",
"${command:extensionPath}"
]
To:
"label": "Copy Extension",
"command": "luamake",
"args": [
"lua",
"compile/copy.lua",
"extension",
"extension",
"C:/Users/Andrii/.vscode/extensions/actboy168.lua-debug-2.0.12"
]
I am on Win 11. Installed luamake using msvc.
The implementation of extensionPath is a simple one-line. You can test it yourself to see why it is wrong.
https://github.com/actboy168/vscode-extensionPath/blob/master/extension.js
This is probably a trivial issue, but I am new to all this, so I can only provide the results of my little investigation.
It seems that extensionPath returns pure string with no quotes:
Executing task: echo C:\Users\Andrii V\.vscode\extensions\
C:\Users\Andrii
V\.vscode\extensions\
* Terminal will be reused by tasks, press any key to close it.
But vscode for some reason wraps path in quotes when calling lua . Maybe it has something to do with the fact that in windows terminal you must put quotes for paths which contains blank space in it.
Here is the results of Copy Publish (with added log msg) command
Executing task: luamake lua compile/copy.lua publish publish "C:\Users\Andrii V\.vscode\extensions\"
DEBUG: extensionPath: C:\Users\Andrii V\.vscode\extensions" extensionDirName: actboy168.lua-debug-2.0.12 extensionDirPrefix: C:/Users/Andrii V/.vscode/extensions"/actboy168.lua-debug-2.0.12
D:/Repositories/lua-debug/compile/copy.lua:114: `C:/Users/Andrii V/.vscode/extensions"/actboy168.lua-debug-2.0.12` is not installed.
stack traceback:
D:/Repositories/lua-debug/compile/copy.lua:114: in local 'detectPlatform'
D:/Repositories/lua-debug/compile/copy.lua:119: in main chunk
I have removed extension-path because VSCode already supports similar feature.
So, it looks like actboy168.extension-path is not needed? Maybe remove it from Marketplace then?