LuaLS / LuaLS/lua-language-server

BUG:远程开发插件报错,无法定位引用变量

Open
#2,628 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

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

能够在ssh远程开发时正常运行,定位被引用变量

### Actual Behaviour

更新到3.8.0后,由windows使用ssh远程连接到linux上开发,插件启动报错。
![remote_dump](https://github.com/LuaLS/lua-language-server/assets/49309646/cb27d589-eb1b-486a-b267-6a568a92637c)

使用ctrl + 鼠标左键点击,无法定位到被引用变量
![xx](https://github.com/LuaLS/lua-language-server/assets/49309646/6f2f4707-a3d1-4721-9631-43eaffe680ef)

3.8.0插件在windows上运行并不会报错,能够正常定位到被引用变量。之前的版本也能够在ssh远程开发时正常运行。

### Reproduction steps

1. 更新插件到3.8.0版本
2. 使用ssh远程开发插件(Remote-SSH)连接linux系统开发(CentOS Linux 7)
3. 插件启动报错,11个错误
![remote_dump](https://github.com/LuaLS/lua-language-server/assets/49309646/8874b400-bdc7-41a3-bb5d-bff5444b24cd)

### Additional Notes

_No response_

### Log File

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce with the 3.8.0 VS Code extension using Remote-SSH from Windows to CentOS Linux 7, then inspect the startup errors shown in the attached screenshots. Compare this with local Windows execution and an earlier extension version. Done means the remote plugin starts without errors and Ctrl+click locates referenced variables.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, lua, vscode
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.