Coder Social home page Coder Social logo

luals / vscode-lua Goto Github PK

View Code? Open in Web Editor NEW
175.0 7.0 47.0 18.99 MB

Release lua-language-server for VSCode

Home Page: https://github.com/LuaLS/lua-language-server

License: MIT License

TypeScript 78.83% Lua 20.44% Shell 0.49% Batchfile 0.24%
lua lua-language-server vscode-extension

vscode-lua's People

Contributors

actboy168 avatar arcanoxdragon avatar caitong93 avatar carsakiller avatar cassolette avatar cppcxy avatar dependabot[bot] avatar fesily avatar gowa2017 avatar jfchevrette avatar jlcvp avatar josa42 avatar koppchen avatar notpeter avatar pvj avatar sumneko avatar uhziel avatar vallode avatar williamboman avatar xiyaowong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-lua's Issues

Newline converts previous line's indentation into spaces regardless of settings, introduced in v3.5.4

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

Please report issue to us (so I submit this issue)

Retrieved Log
#### 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.


Auto complete on empty line

4DuxsCPPhd
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

`Lua.workspace.library` definition wrong

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"
]

Typo in schema.json?

Line 1086 "lua.runtime.fileEncoding": {
Is this a typo (lua -> Lua) or a special option?

Add a config to set custom language server path

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).

Unknow bug report

Which OS are you using?

Windows

Expected Behaviour

Don't have an error

Actual Behaviour

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.

Reproduction steps

  1. Open vscode (was working with a node.js discord.js bot project)
  2. See Error notification

Additional Notes

It's just it, i don't really know why this is happening bug i hope this report helps somehow...

Log

Retrieved Log
#### 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.


Ubuntu nvim format 会在行尾出现^M

感谢大佬的工作
我在Ubuntu1804上nvim0.61使用nvim-lsp-installer更新最新版sumneko_lua后,可以格式化lua代码了,耶✌️
但是在每行末尾都会出现^M(windows的换行符),哈哈🙈

Additional autocomplete definitions

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?

Build and Run (In VSCode) not working on pre-compile

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

Opened log-file after restarted `VSCode`

Which OS are you using?

MacOS

Expected Behaviour

I has restarted VSCode. And after that, the log-file was opened. Log added at next field of this issue

Actual Behaviour

...

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

An error occurred with the Lua Addon Manager. Please help us improve by reporting the issue ❤️

Which OS are you using?

MacOS

Expected Behaviour

Retrieved Log
#### 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


Actual Behaviour

...

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

Reproduction steps

  1. Go to '...'
  2. Click '...'
  3. See error '...'

Additional Notes

No response

Log

No response

Addon Manager git path issues on macOS

Which OS are you using?

MacOS

Expected Behaviour

The plugin should function after install

Actual Behaviour

...

I also see the following error:

Retrieved Log
#### 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


Reproduction steps

Install the plugin

Additional Notes

No response

Log

#### 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 extension breaks extension loading on 1.60-insider

Version Info ``` Version: 1.60.0-insider Commit: 1ee61f368ee0570feeb220605578a8768d99e762 Date: 2021-08-09T05:59:19.046Z (19 hrs ago) Electron: 13.1.8 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 18.7.0 ```

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

Many "Couldn't find message for key" errors when running VS Code

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.

好像不支持如何支持docker容器,从win10到centos7?

你好,看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,...

是否能具体说明下,或者我可以做些什么来改进?

Lua does not support this grammar (with some assignment operators in LuaU)

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?

support $/requestHint

目前inlay-hint貌似不太准确,总是缺了东西 #41 ,想问下啥时候发布支持server最新的$/requestHint。我也看了你的提交,貌似没有正常跑起来,不知道现在你解决了没

Lua went wrong

Which OS are you using?

MacOS

Expected Behaviour

went wrong in the background?

Actual Behaviour

...

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

Reproduction steps

  1. Go to '...'
  2. Click '...'
  3. See error '...'

Additional Notes

No response

Log

No response

Addon manager plugin support

Explain the feature

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.

Are there any potential drawbacks from adding the feature?

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.

missing bee.filesystem - cannot install via vscode task

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.

Plug-in startup failure

Which OS are you using?

Windows

Expected Behaviour

open vscode,Plugins run properly.

Actual Behaviour

...

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

Reproduction steps

  1. Go to 'open vscode'
  2. See error '...'

Additional Notes

No response

Log

STARTUP

[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

Language Server crashes on startup

Which OS are you using?

MacOS

Expected Behaviour

I expect the extension to startup with no problems

Actual Behaviour

...

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

Reproduction steps

  1. Install extension on VS Code Insiders for macOS (AARCH64, Ventura 13.2.1)
  2. Get errors lol

Additional Notes

No response

Log

STARTUP

[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

It doesn't seem to support your OS, please build it in your OS...

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

  1. PreCompile
  2. Compile
  3. Install
    这个Readme给的这个步骤着实有点懵(萌新),不知道该怎么执行,目前我使用的Ubuntu版本是16.04 LTS Server,望大佬指点一下。

Error

Which OS are you using?

Windows

Expected Behaviour

N/A

Actual Behaviour

...

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

Reproduction steps

  1. Go to '...'
  2. Click '...'
  3. See error '...'

Additional Notes

No response

Log

Retrieved Log
#### 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


Introduce a new regex for a special comment: howto?

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上需要手动安装
其中最后的步骤

  • Open repo and execute tasks in VSCode
    1. PreCompile
    2. Compile
    3. Install
      具体要怎样操作?
      拜求指点,谢谢!

Not installed properly

Which OS are you using?

MacOS

Expected Behaviour

Installed & running

Actual Behaviour

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

Reproduction steps

  1. Install VS Code
  2. Turn on settings sync
  3. Restart VS Code
  4. Voilà

Additional Notes

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.

Log

STARTUP

[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

`const` keyword not recognized using Lua 5.4 runtime

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
        }
      }
    }
  })

nvim-lualsp

[request] optional parameter annotation support

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.

source code for bin/*

hello

are the binaries in bin (lua-language-server, others) open source? this project has no c source code in it.

Blurry description images, missing icons

The buttons at the top of the description have 2 issues:

  1. build, and Average time to resolve an issue have missing icons
  2. VS Marketplace, installs, and downloads buttons have blurry images

It looks like this in VSCode (inside red rectangle):
image

Here is an example of a different plugin called Error Lens whose icons aren't blurry:
image
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.

Install task failing on package cpath quotation

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!

Annotation completion details pane is too small

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.
windowResize
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?

Errors in the versions 3.6.12 - 3.6.15

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Linux

What is the issue affecting?

Other

Expected Behaviour

No response

Actual Behaviour

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:

image

image

Version 3.6.11 works fine.

Reproduction steps

No response

Additional Notes

No response

Log File

No response

Unknown Error After Reload

Which OS are you using?

MacOS Ventura 13.0, Intel chip

Expected Behaviour

No error message after reloading for extension update

Actual Behaviour

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

Reproduction steps

  1. Go to 'reload after ext update'
  2. Click 'error message'
  3. See error 'as pasted into log'

Additional Notes

Not really sure what went wrong. Putting my faith in the log paste for this one.

Log

Retrieved Log
#### 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


Parameter hint is unreliable even at high search depth

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.

image
image
image

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.