luals / vscode-lua Goto Github PK
View Code? Open in Web Editor NEWRelease lua-language-server for VSCode
Home Page: https://github.com/LuaLS/lua-language-server
License: MIT License
Release lua-language-server for VSCode
Home Page: https://github.com/LuaLS/lua-language-server
License: MIT License
On hitting enter at the end of a line to create a newline, the tabs on the previous line are converted into spaces, while the newline does have the correct tab indentation as per my VSC settings
I saw that in the changelog of v3.5.4 there was "NEW type-formatting: fix wrong indentation of VSCode" and then went to the prior version, and did not have this issue, and then tested that version, and the issue was there
Hi,
Here is an example of large lua project that heavily uses 'classes' and inheritance. Any chance to get auto-completion working with something like this?
I'm have no idea of the magnitude a solution this would require, just asking.
Thanks!
https://github.com/FlightControl-Master/MOOSE/tree/develop/Moose%20Development/Moose
#### STARTUP ####
[2023-03-03 23:56:50] | DEBUG | Filesystem | Created directory at "/root/.vscode-server/data/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 23:56:52] | DEBUG | Git | Cloned LLS-Addons to /root/.vscode-server/data/User/globalStorage/sumneko.lua/addonManager
[2023-03-03 23:58:53] | ERROR | Git | Failed to checkout repo!
[2023-03-03 23:58:53] | ERROR | Git | fatal: unable to access 'https://github.com/LuaLS/LLS-Addons.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
On empty lines suddenly the the autocomplete menu already opens.
So if I spam "Enter" a few times it keeps adding the first thing in the list.
I can only imagine that lua is causing this because the suggested syntax list hasn't been updated in more than a year.
Could be that your extention is not causing this. Maybe its even a VSC issue But I am just letting you know the issue.
Big Love <3 Ypsilon
schema.json
defines Lua.workspace.library
as array of strings, yet in that case it doesn't work.
Paths are included only when using old format, as object with keys as path and true as value.
Currently working:
"Lua.workspace.library": {
"path1" : true,
"path2" : true
}
Expected to work:
"Lua.workspace.library": [
"path1",
"path2"
]
Line 1086 "lua.runtime.fileEncoding": {
Is this a typo (lua -> Lua
) or a special option?
On NixOS the binary bundled with this plugin does not work because NixOS has unusual linker location.
I have to install sumneko-lua-language-server
package from the package manager and link it into the extension folder replacing bundled binary as a workaround.
However I have to update the link on every plugin update, which is tedious - it would be better if I was able to use the system language server (by setting the path to it in the config).
Windows
Don't have an error
Error notification with a report button
I also see the following error:
[2023-03-03 12:37:54] | ERROR | Git | Your configuration specifies to merge with the ref 'refs/heads/main'
from the remote, but no such ref was fetched.
It's just it, i don't really know why this is happening bug i hope this report helps somehow...
#### STARTUP ####
[2023-03-03 12:37:28] | DEBUG | Filesystem | Created directory at "/C:/Users/mbenl/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 12:37:53] | ERROR | Git | Failed to checkout repo!
[2023-03-03 12:37:54] | ERROR | Git | Your configuration specifies to merge with the ref 'refs/heads/main'
from the remote, but no such ref was fetched.
感谢大佬的工作
我在Ubuntu1804上nvim0.61使用nvim-lsp-installer更新最新版sumneko_lua后,可以格式化lua代码了,耶✌️
但是在每行末尾都会出现^M(windows的换行符),哈哈🙈
Hey,
Since LUA is often used with some custom API defined by another project, do you see possibility to register somehow additional methods for auto complete features through another VS Code extension?
Hello! I use this instructions https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(In-VSCode)
When i open the repository directory by VSCode and run task PreCompile it shows me this error
`> Executing task: chcp 65001 && msvc_x64.bat <
Active code page: 65001
'msvc_x64.bat' is not recognized as an internal or external command,
operable program or batch file.
The terminal process "C:\Windows\System32\cmd.exe /c chcp 65001 && msvc_x64.bat" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.`
I am using Windows 10 and VSCode 1.55.0
I have Visual Studio 2019 with C++ installed
MacOS
I has restarted VSCode
. And after that, the log-file was opened. Log added at next field of this issue
...
I also see the following error:
[2023-03-03 11:20:02] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
```]]
### Reproduction steps
1. Go to '...'
2. Click '...'
3. See error '...'
### Additional Notes
_No response_
### Log
#### STARTUP ####
[2023-03-03 11:20:01] | DEBUG | Filesystem | Created directory at "/Users/husky/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 11:20:02] | DEBUG | Git | Cloned LLS-Addons
[2023-03-03 11:20:02] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
MacOS
#### STARTUP ####
[2023-03-03 19:31:23] | DEBUG | Filesystem | Created directory at "/Users/myuser/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 19:31:23] | ERROR | Git | Failed to checkout repo!
[2023-03-03 19:31:23] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
...
I also see the following error:
[2023-03-03 19:31:23] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
No response
No response
MacOS
The plugin should function after install
...
I also see the following error:
#### STARTUP ####
[2023-03-02 11:20:40] | DEBUG | Filesystem | Created directory at "/Users/me/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-02 11:20:40] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
Install the plugin
No response
#### STARTUP ####
[2023-03-02 11:20:40] | DEBUG | Filesystem | Created directory at "/Users/me/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-02 11:20:40] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
Installing latest version from marketplace and restarting Insiders causes extension loading to fail, and installed extensions cannot be interacted with—uninstalling and restarting reverses the behaviour.
It seems there's a few extensions doing this: microsoft/vscode#130219
Since a recent update to this extension (I'm not sure which one, sorry), I've started seeing errors like the below whenever I run code
from a terminal (e.g. when provisioning vscode extensions from shell scripts).
Although it doesn't break anything, it does bloat the output of scripts and obfuscates important messages.
The values listed don't appear in the extension's package.nls.json
file, so presumably resolving the issue should be as simple as adding them?
Thanks for all of your work on a great extension!
[lua]: Couldn't find message for key config.diagnostics.circle-doc-class.
[lua]: Couldn't find message for key config.diagnostics.invisible.
[lua]: Couldn't find message for key config.diagnostics.circle-doc-class.
[lua]: Couldn't find message for key config.diagnostics.invisible.
[lua]: Couldn't find message for key config.runtime.builtin.basic.
[lua]: Couldn't find message for key config.runtime.builtin.bit.
[lua]: Couldn't find message for key config.runtime.builtin.bit32.
[lua]: Couldn't find message for key config.runtime.builtin.builtin.
[lua]: Couldn't find message for key config.runtime.builtin.coroutine.
[lua]: Couldn't find message for key config.runtime.builtin.debug.
[lua]: Couldn't find message for key config.runtime.builtin.ffi.
[lua]: Couldn't find message for key config.runtime.builtin.io.
[lua]: Couldn't find message for key config.runtime.builtin.jit.
[lua]: Couldn't find message for key config.runtime.builtin.math.
[lua]: Couldn't find message for key config.runtime.builtin.os.
[lua]: Couldn't find message for key config.runtime.builtin.package.
[lua]: Couldn't find message for key config.runtime.builtin.string.
[lua]: Couldn't find message for key config.runtime.builtin.string.buffer.
[lua]: Couldn't find message for key config.runtime.builtin.table.
[lua]: Couldn't find message for key config.runtime.builtin.table.clear.
[lua]: Couldn't find message for key config.runtime.builtin.table.new.
[lua]: Couldn't find message for key config.runtime.builtin.utf8.
[lua]: Couldn't find message for key config.runtime.fileEncoding.utf8.
[lua]: Couldn't find message for key config.runtime.fileEncoding.ansi.
[lua]: Couldn't find message for key config.runtime.fileEncoding.utf16le.
[lua]: Couldn't find message for key config.runtime.fileEncoding.utf16be.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.1.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.2.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.3.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.4.
[lua]: Couldn't find message for key config.runtime.version.LuaJIT.
[lua]: Couldn't find message for key config.typeFormat.config.
[lua]: Couldn't find message for key config.typeFormat.config.auto_complete_end.
[lua]: Couldn't find message for key config.typeFormat.config.auto_complete_table_sep.
[lua]: Couldn't find message for key config.typeFormat.config.format_line.
[lua]: Couldn't find message for key config.diagnostics.circle-doc-class.
[lua]: Couldn't find message for key config.diagnostics.invisible.
[lua]: Couldn't find message for key config.diagnostics.circle-doc-class.
[lua]: Couldn't find message for key config.diagnostics.invisible.
[lua]: Couldn't find message for key config.runtime.builtin.basic.
[lua]: Couldn't find message for key config.runtime.builtin.bit.
[lua]: Couldn't find message for key config.runtime.builtin.bit32.
[lua]: Couldn't find message for key config.runtime.builtin.builtin.
[lua]: Couldn't find message for key config.runtime.builtin.coroutine.
[lua]: Couldn't find message for key config.runtime.builtin.debug.
[lua]: Couldn't find message for key config.runtime.builtin.ffi.
[lua]: Couldn't find message for key config.runtime.builtin.io.
[lua]: Couldn't find message for key config.runtime.builtin.jit.
[lua]: Couldn't find message for key config.runtime.builtin.math.
[lua]: Couldn't find message for key config.runtime.builtin.os.
[lua]: Couldn't find message for key config.runtime.builtin.package.
[lua]: Couldn't find message for key config.runtime.builtin.string.
[lua]: Couldn't find message for key config.runtime.builtin.string.buffer.
[lua]: Couldn't find message for key config.runtime.builtin.table.
[lua]: Couldn't find message for key config.runtime.builtin.table.clear.
[lua]: Couldn't find message for key config.runtime.builtin.table.new.
[lua]: Couldn't find message for key config.runtime.builtin.utf8.
[lua]: Couldn't find message for key config.runtime.fileEncoding.utf8.
[lua]: Couldn't find message for key config.runtime.fileEncoding.ansi.
[lua]: Couldn't find message for key config.runtime.fileEncoding.utf16le.
[lua]: Couldn't find message for key config.runtime.fileEncoding.utf16be.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.1.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.2.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.3.
[lua]: Couldn't find message for key config.runtime.version.Lua 5.4.
[lua]: Couldn't find message for key config.runtime.version.LuaJIT.
[lua]: Couldn't find message for key config.typeFormat.config.
[lua]: Couldn't find message for key config.typeFormat.config.auto_complete_end.
[lua]: Couldn't find message for key config.typeFormat.config.auto_complete_table_sep.
[lua]: Couldn't find message for key config.typeFormat.config.format_line.
你好,看market上提示不支持linux和macos,需要编译。我在win10下工作。
经验证,实际使用中WSL是ok的,但容器里的centos7的确不行。
OUTPUT的提示如下
/root/.vscode-server/extensions/sumneko.lua-0.15.5/server/bin/Linux/lua-language-server: ...server/extensions/sumneko.lua-0.15.5/server/platform.lua:16: It doesn't seem to support your OS, please build it in your OS,...
是否能具体说明下,或者我可以做些什么来改进?
I want to secondary development.
I finished everything in tutorial https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(Standalone) .
Then I vsce package, but the extension show error.
LuaU is a gradually typed embeddable scripting language derived from Lua which you can read on here.
I know it isn't regular lua 5.4+ but it adds some extra assignment operators that lua is yet to add, which can be found in most other programming languages such as +=, -=, *=, /= etc
I couldn't find a "quick fix" for it appearing as a grammatical error, I tried to disable linting on them but it didn't work either, could you add support for these operators or an option to ignore highlighting?
目前inlay-hint貌似不太准确,总是缺了东西 #41 ,想问下啥时候发布支持server最新的$/requestHint
。我也看了你的提交,貌似没有正常跑起来,不知道现在你解决了没
I want to use the project with linux-arm64 platform but no binary release exists now. How about add support?
MacOS
went wrong in the background?
...
I also see the following error:
[2023-03-02 20:27:49] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
No response
No response
I am working on API headers for the Minetest game engine.
One of the objects provided represent a vector and allows to use lua operators for vector operations by the use of metatables.
How can I specify the types of the objects returned by these metatables?
The Lua Language Server supports plugins that allow users to write custom Lua scripts that the language server will then run to output a modified file. As of right now, the addon manager will download the plugin.lua
file, but it will not tell the server to use it. There should be some easy (and safe) way for users to enable a plugin that they have installed.
There are some serious security concerns with downloading a script off the internet and running it automatically on the user's computer. While the addons being installed should be reviewed and trusted before being merged into LLS-addons, there is always the chance of something slipping through.
We could ask the user to review the code themselves before approving the request to enable it - but at the end of the day, the safest option will always be to not run code created by other users.
This is my first attempt to use vscode-lua. I have used your lua-language-server for a long time, and I opened this ticket: LuaLS/lua-language-server#109
I am trying to install this extension. I have installed sumneko.lua, extension-path, and ninja. I closed the code and updated sub modules.
I then successfully ran PreCompile and Compile, and Install failed.
> Executing task: ninja -f ninja/linux.ninja <
[0/3] cd 3rd/bee.lua && ninja -f ninja/linux.ninja
[89/89] build/linux/bin/bootstrap test/test.lua
..................................................................................
Ran 82 tests in 0.135 seconds, 82 successes, 0 failures
OK
[3/3] cp 3rd/bee.lua/build/linux/bin/bootstrap luamake
Terminal will be reused by tasks, press any key to close it.
> Executing task: /home/payonel/code/vscode-lua/server/3rd/luamake/luamake rebuild <
[1/97] Compile C build/linux/obj/lua/lctype.obj
[2/97] Compile C build/linux/obj/lua/lbaselib.obj
[3/97] Compile C build/linux/obj/lua/lcorolib.obj
[4/97] Compile C build/linux/obj/lua/ldblib.obj
[5/97] Compile C build/linux/obj/lua/lfunc.obj
[6/97] Compile C build/linux/obj/lua/ldump.obj
[7/97] Compile C build/linux/obj/lua/linit.obj
[8/97] Compile C build/linux/obj/lua/lauxlib.obj
[9/97] Compile C build/linux/obj/lua/ldebug.obj
[10/97] Compile C build/linux/obj/lua/ldo.obj
[11/97] Compile C build/linux/obj/lua/lopcodes.obj
[12/97] Compile C build/linux/obj/lua/liolib.obj
[13/97] Compile C build/linux/obj/lua/lmem.obj
[14/97] Compile C build/linux/obj/lua/lmathlib.obj
[15/97] Compile C build/linux/obj/lua/loadlib.obj
[16/97] Compile C build/linux/obj/lua/lapi.obj
[17/97] Compile C build/linux/obj/lua/lcode.obj
[18/97] Compile C build/linux/obj/lua/loslib.obj
[19/97] Compile C build/linux/obj/lua/lobject.obj
[20/97] Compile C build/linux/obj/lua/lstate.obj
[21/97] Compile C build/linux/obj/lua/ltablib.obj
[22/97] Compile C build/linux/obj/lua/lstring.obj
[23/97] Compile C build/linux/obj/lua/ltm.obj
[24/97] Compile C build/linux/obj/lua/lua.obj
[25/97] Compile C build/linux/obj/lua/llex.obj
[26/97] Compile C build/linux/obj/lua/lgc.obj
[27/97] Compile C build/linux/obj/lua/lzio.obj
[28/97] Compile C build/linux/obj/lua/ltable.obj
[29/97] Compile C build/linux/obj/lua/lutf8lib.obj
[30/97] Compile C build/linux/obj/lua/lundump.obj
[31/97] Compile C build/linux/obj/lua/lstrlib.obj
[32/97] Compile C build/linux/obj/bee/lua-seri.obj
[33/97] Compile CXX build/linux/obj/bee/error.obj
[34/97] Compile C build/linux/obj/lua/lparser.obj
[35/97] Compile CXX build/linux/obj/bee/file_helper.obj
[36/97] Compile CXX build/linux/obj/bee/lua_embed.obj
[37/97] Compile CXX build/linux/obj/bee/exception.obj
[38/97] Compile CXX build/linux/obj/bee/endpoint.obj
[39/97] Compile CXX build/linux/obj/bee/socket.obj
[40/97] Compile CXX build/linux/obj/bee/lua_platform.obj
[41/97] Compile CXX build/linux/obj/bee/lua_serialization.obj
[42/97] Compile CXX build/linux/obj/bee/lua_filewatch.obj
[43/97] Compile C build/linux/obj/lua/lvm.obj
[44/97] Link Executable build/linux/bin/lua
[45/97] Compile CXX build/linux/obj/bee/path_helper.obj
[46/97] Compile C build/linux/obj/bootstrap/lauxlib.obj
[47/97] Compile CXX build/linux/obj/bee/subprocess_posix.obj
[48/97] Compile C build/linux/obj/bootstrap/lapi.obj
[49/97] Compile C build/linux/obj/bootstrap/lbaselib.obj
[50/97] Compile C build/linux/obj/bootstrap/lcorolib.obj
[51/97] Compile C build/linux/obj/bootstrap/lctype.obj
[52/97] Compile CXX build/linux/obj/bee/lua_filesystem.obj
[53/97] Compile C build/linux/obj/bootstrap/ldblib.obj
[54/97] Compile CXX build/linux/obj/bee/lua_socket.obj
[55/97] Compile C build/linux/obj/bootstrap/lfunc.obj
[56/97] Compile CXX build/linux/obj/bee/lua_subprocess.obj
[57/97] Compile C build/linux/obj/bootstrap/linit.obj
[58/97] Compile C build/linux/obj/bootstrap/ldump.obj
[59/97] Compile C build/linux/obj/bootstrap/lcode.obj
[60/97] Compile C build/linux/obj/bootstrap/ldo.obj
[61/97] Compile C build/linux/obj/bootstrap/ldebug.obj
[62/97] Compile C build/linux/obj/bootstrap/lmem.obj
[63/97] Compile CXX build/linux/obj/bee/fsevent_linux.obj
[64/97] Compile C build/linux/obj/bootstrap/lopcodes.obj
[65/97] Compile C build/linux/obj/bootstrap/lmathlib.obj
[66/97] Compile C build/linux/obj/bootstrap/loadlib.obj
[67/97] Compile C build/linux/obj/bootstrap/llex.obj
[68/97] Compile C build/linux/obj/bootstrap/lobject.obj
[69/97] Compile C build/linux/obj/bootstrap/liolib.obj
[70/97] Compile C build/linux/obj/bootstrap/loslib.obj
[71/97] Compile C build/linux/obj/bootstrap/lgc.obj
[72/97] Compile CXX build/linux/obj/bee/lua_thread.obj
[73/97] Compile C build/linux/obj/bootstrap/lstring.obj
[74/97] Compile C build/linux/obj/bootstrap/lstate.obj
[75/97] Compile C build/linux/obj/bootstrap/ltm.obj
[76/97] Compile C build/linux/obj/bootstrap/ltablib.obj
[77/97] Link SharedLibrary build/linux/bin/bee.so
[78/97] Compile C build/linux/obj/bootstrap/lzio.obj
[79/97] Compile C build/linux/obj/bootstrap/lundump.obj
[80/97] Compile C build/linux/obj/bootstrap/lutf8lib.obj
[81/97] Compile CXX build/linux/obj/bootstrap/progdir.obj
[82/97] Compile C build/linux/obj/bootstrap/ltable.obj
[83/97] Compile CXX build/linux/obj/bootstrap/main.obj
[84/97] Compile C build/linux/obj/lpeglabel/lpprint.obj
[85/97] Compile C build/linux/obj/lpeglabel/lpcap.obj
[86/97] Compile C build/linux/obj/bootstrap/lstrlib.obj
[87/97] Compile C build/linux/obj/bootstrap/lparser.obj
[88/97] Compile C build/linux/obj/lpeglabel/lpvm.obj
[89/97] Compile C build/linux/obj/lpeglabel/lpcode.obj
[90/97] Compile C build/linux/obj/lpeglabel/lptree.obj
[91/97] Link SharedLibrary build/linux/bin/lpeglabel.so
[92/97] Compile CXX build/linux/obj/lni/main.obj
[93/97] Link SharedLibrary build/linux/bin/lni.so
[94/97] Compile C build/linux/obj/bootstrap/lvm.obj
[95/97] Link Executable build/linux/bin/bootstrap
[96/97] /home/payonel/code/vscode-lua/server/3rd/luamake/luamake lua make/install.lua linux
[97/97] /home/payonel/code/vscode-lua/server/3rd/luamake/luamake lua make/unittest.lua linux
测试[core]...
测试[core]用时[0.079]
测试[definition]...
测试[definition]用时[0.361]
测试[rename]...
测试[rename]用时[0.014]
测试[highlight]...
测试[highlight]用时[0.013]
测试[references]...
测试[references]用时[0.021]
测试[diagnostics]...
测试[diagnostics]用时[0.328]
测试[type_inference]...
测试[type_inference]用时[0.079]
测试[find_lib]...
测试[find_lib]用时[0.042]
测试[hover]...
测试[hover]用时[0.448]
测试[completion]...
测试[completion]用时[0.209]
测试[signature]...
测试[signature]用时[0.025]
测试[document_symbol]...
测试[document_symbol]用时[0.027]
测试[crossfile]...
测试[crossfile]用时[0.169]
测试[full]...
基准编译测试[vm.txt]单次耗时:0.1019337000
基准诊断测试[vm.txt]单次耗时:0.0194134038
基准编译测试[largeGlobal.txt]单次耗时:0.9434485000
基准诊断测试[largeGlobal.txt]单次耗时:0.9623730000
测试[full]用时[5.976]
测试[other]...
测试[other]用时[0.000]
测试完成
Terminal will be reused by tasks, press any key to close it.
> Executing task: /home/payonel/code/vscode-lua/server/build/lua make/copy.lua /home/payonel/.vscode-insiders/extensions/ <
/home/payonel/code/vscode-lua/server/build/lua: make/copy.lua:1: module 'bee.filesystem' not found:
no field package.preload['bee.filesystem']
no file '/usr/local/share/lua/5.4/bee/filesystem.lua'
no file '/usr/local/share/lua/5.4/bee/filesystem/init.lua'
no file '/usr/local/lib/lua/5.4/bee/filesystem.lua'
no file '/usr/local/lib/lua/5.4/bee/filesystem/init.lua'
no file './bee/filesystem.lua'
no file './bee/filesystem/init.lua'
no file '/usr/local/lib/lua/5.4/bee/filesystem.so'
no file '/usr/local/lib/lua/5.4/loadall.so'
no file './bee/filesystem.so'
no file '/usr/local/lib/lua/5.4/bee.so'
no file '/usr/local/lib/lua/5.4/loadall.so'
no file './bee.so'
stack traceback:
[C]: in function 'require'
make/copy.lua:1: in main chunk
[C]: in ?
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
Windows
open vscode,Plugins run properly.
...
I also see the following error:
[2023-03-03 09:34:16] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
No response
[2023-03-03 09:33:53] | DEBUG | Filesystem | Created directory at "/C:/Users/zengyq/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 09:34:16] | ERROR | Git | Cloning into 'C:/Users/zengyq/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager'...
fatal: unable to access 'https://github.com/LuaLS/LLS-Addons.git/': Failed to connect to github.com port 443: Timed out
[2023-03-03 09:34:16] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
MacOS
I expect the extension to startup with no problems
...
I also see the following error:
[2023-03-03 21:00:33] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
No response
[2023-03-03 21:00:33] | DEBUG | Filesystem | Created directory at "/Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 21:00:33] | ERROR | Git | Failed to checkout repo!
[2023-03-03 21:00:33] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
Connection to server got closed. Server will restart.
/root/.vscode-server/extensions/sumneko.lua-0.16.1/server/bin/Linux/lua-language-server: ...server/extensions/sumneko.lua-0.16.1/server/platform.lua:16: It doesn't seem to support your OS, please build it in your OS, see https://github.com/sumneko/vscode-lua/wiki/Build
exePath: /root/.vscode-server/extensions/sumneko.lua-0.16.1/server/bin/Linux/lua-language-server
exeDir: /root/.vscode-server/extensions/sumneko.lua-0.16.1/server/bin/Linux
dll: so
cpath: /root/.vscode-server/extensions/sumneko.lua-0.16.1/server/bin/Linux/?.so
stack traceback:
[C]: in function 'error'
...server/extensions/sumneko.lua-0.16.1/server/platform.lua:16: in main chunk
...ode-server/extensions/sumneko.lua-0.16.1/server/main.lua:3: in main chunk
[C]: in ?
更新到最新的0.16.1版本之后就出现这个问题了, 我知道是我的Ubuntu版本太老的问题,但是我想知道怎么编译自己的版本啊:
Open repo and execute tasks in VSCode
Windows
N/A
...
I also see the following error:
[2023-03-03 08:27:24] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
No response
#### STARTUP ####
[2023-03-03 08:27:17] | DEBUG | Filesystem | Created directory at "/C:/Users/nao/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 08:27:22] | ERROR | Git | Cloning into 'C:/Users/nao/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager'...
fatal: unable to access 'https://github.com/LuaLS/LLS-Addons.git/': SSL certificate problem: self signed certificate in certificate chain
[2023-03-03 08:27:24] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
I tried to introduce a special comment for CPP-directives like
#include "bla.lua"
in lua.tmLanguage.json
.vscode-oss/extensions/sumneko.lua-2.5.3/syntaxes
But now luck with
```
{
"begin": "^\\s*#[a-z]+",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.lua"
}
},
"end": "\\n",
"name": "comment.line.double-dash.lua"
},
看到在macos上需要手动安装
其中最后的步骤
MacOS
Installed & running
Installed and not running
I also see the following error:
[2023-03-03 14:57:12] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
The directory structure looks like this:
'/Users/$USERNAME/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager/Users/$USERNAME/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager'.
The files needed are located in the second 'addonManager' folder.
Installation succeeds after moving the files manually.
[2023-03-03 14:57:12] | DEBUG | Filesystem | Created directory at "/Users/$USERNAME/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 14:57:12] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git
Using version 3.2.2 of lua-language-server, it hints const as a variable, not as a keyword.
require("lsp-config").setup("sumneko_lua", {
settings = {
rootPatterns = {".git/"},
Lua = {
runtime = {
version = 'Lua 5.4',
path = {
'?.lua',
'?/init.lua',
vim.fn.expand'~/.luarocks/share/lua/5.4/?.lua',
vim.fn.expand'~/.luarocks/share/lua/5.4/?/init.lua',
'/usr/share/5.4/?.lua',
'/usr/share/lua/5.4/?/init.lua'
}
},
diagnostics = {
enable = true,
globals = {"vim"},
disable = {"lowercase-global"}
},
workspace = {
library = {
vim.fn.expand'~/.luarocks/share/lua/5.4',
'/usr/share/lua/5.4'
}
},
telemetry = {
enable = false
}
}
}
})
Specifically, as implemented in LDoc:
@param**[opt]**
which denotes optional parameters and displays them as function FunctionName([, optional param])
in hints/tips
@param[opt=**param default**]
which denotes the default value of the optional parameter and displays them as function FunctionName([, optional param=param default])
in hints/tips
@param[optchain]
to denote a chain of optional parameters that depend on previous parameters and displays them as function FunctionName(param [, optional param [, optchain layer 1 [, optchain layer 2, etc.]]])
.
Other, unrelated features from LDoc would be very appreciated. Such as:
@return[#]
as return groups, denoting variables that are returned together when there are conditional returns and displays them as
->return group 1 with only one variable: type
2.
1. return group 2 variable 1: type
2. return group 2 variable 2: type
3. return group 3 with only one variable: type
@see
to reference another documented item and displays them as a link to their documentation on hints/tips
.
Most other features of LDoc are only useful for generating HTML documentation, so should probably be explicitly ignored unless you want to bother figuring out how to display them.
hello
are the binaries in bin (lua-language-server, others) open source? this project has no c source code in it.
The buttons at the top of the description have 2 issues:
It looks like this in VSCode (inside red rectangle):
Here is an example of a different plugin called Error Lens whose icons aren't blurry:
The comparisons above don't illustrate the issue best. I'd recommend opening both images in a new tab, still for an accurate comparison see the issues in VSCode.
The desired looks are obviously non-blurry icons and buttons with icons for the first described issue.
uname:
Darwin 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
vscode:
Version: 1.76.0
Commit: 92da9481c0904c6adfe372c12da3b7748d74bdcb
Date: 2023-03-01T10:23:45.993Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Darwin x64 22.2.0
Sandboxed: Yes
Thanks for this language server!
Can I ask you to upload a vsix file to GitHub release when I version up?
e.g. vscode-eslint: https://github.com/microsoft/vscode-eslint/releases/tag/release%2F2.1.4-next.1
I mainly use Vim and use lua-language-server built, but would like to use the pre-built version if possible.
The vsix files for VSCode that come with bin/lua-language-server
and server
directories are very useful.
Hi,
It seems #2 fix introduced side-effects. Downloaded vcode-lua, pathextension, ninja, precompile & compile tasks succeeded but then w/ install you get:
> Executing task: /Users/pv/w/codelua/server/build/lua -e 'package.cpath = './server/build/?.so;' .. package.cpath' make/copy.lua /Users/pv/.vscode/extensions/ <
/Users/pv/w/codelua/server/build/lua: (command line):1: unexpected symbol near '.'
/bin/bash: .. package.cpath: command not found
The terminal process terminated with exit code: 127
I can see ./server/build/bee.so
exists and by the error message it seemed like quotation issue. I fixed it by changing this line:
"package.cpath = './server/build/?.so;' .. package.cpath",
to escaped quotation marks:
"package.cpath = \"./server/build/?.so;\" .. package.cpath",
Seems to work:
> Executing task: /Users/pv/w/vscode-lua/server/build/lua -e 'package.cpath = "./server/build/?.so;"' make/copy.lua /Users/pv/.vscode/extensions/ <
./server/build/?.so;
copy ./server/bin/macOS/lua-language-server /Users/pv/.vscode/extensions/sumneko.lua-0.14.5/server/bin/macOS/lua-language-server
copy ./server/bin/macOS/lpeglabel.so /Users/pv/.vscode/extensions/sumneko.lua-0.14.5/server/bin/macOS/lpeglabel.so
copy ./server/bin/macOS/bee.so /Users/pv/.vscode/extensions/sumneko.lua-0.14.5/server/bin/macOS/bee.so
copy ./server/bin/macOS/lni.so /Users/pv/.vscode/extensions/sumneko.lua-0.14.5/server/bin/macOS/lni.so
ok
I opened PR for you. Let me know if this is acceptable to you. Cheers & thank you for your work on vscode-lua!
When receiving completions for annotations, the details window that appears to offer info on completions is too narrow and it cuts off the text. The window can be resized manually but it appears to always default back to being too small when VS Code is restarted.
Is there any way this can be adjusted? The dev that implemented the resizing feature says it can be auto-resized but I haven't had any luck doing so.
I found a comment from one of the VS Code devs that says font size and line height can be suggested, but nothing about suggested width 😕. This could just be a VS Code issue but maybe you know of a option that allows the width to be suggested?
Visual Studio Code Extension (sumneko.lua)
Linux
Other
No response
Versions between 3.6.12
and 3.6.14
doesn't work at all in my VSCodium on Manjaro Linux.
Version 3.6.15
works, but showing broken error message:
Version 3.6.11
works fine.
No response
No response
No response
MacOS Ventura 13.0, Intel chip
No error message after reloading for extension update
Error message after reloading for extension update
I also see the following error:
[2023-03-03 17:32:38] | ERROR | Git | fatal: Not a git repository (or any of the parent directories): .git
Not really sure what went wrong. Putting my faith in the log paste for this one.
#### STARTUP ####
[2023-03-03 17:32:35] | DEBUG | Filesystem | Created directory at "/Users/levimiller/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager"
[2023-03-03 17:32:38] | DEBUG | Git | Cloned LLS-Addons
[2023-03-03 17:32:38] | ERROR | Git | fatal: Not a git repository (or any of the parent directories): .git
I can do a PR request if that would help.
https://code.visualstudio.com/api/advanced-topics/remote-extensions
I want to use this extension when developing on a WSL Remote.
I tried toying around with the settings, but can't get all :gsub calls to display the parameter name.
It seems like it's not fully the fault of the parameter hint processor, because where the parameter name hint is not displayed, the function signature is also invalid.
This seems to be very intermitten. Most of the times only the first 3 display (like on the screenshot), but sometimes even 5 displays if I keep changing the search depth, search time, and other relevant config values.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.