LuaLS / LuaLS/lua-language-server
Test failure: attempt to yield from outside a coroutine
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 442
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
How are you using the lua-language-server?
Other
Which OS are you using?
Linux
What is the issue affecting?
Other
Expected Behaviour
The test suite should pass consistently.
Actual Behaviour
One time when running the tests, I saw this failure. However, I haven't seen it since.
bin/lua-language-server: attempt to yield from outside a coroutine
stack traceback:
[C]: in function 'coroutine.yield'
script/await.lua:152: in function 'await.wait'
script/workspace/workspace.lua:529: in function 'workspace.workspace.awaitReady'
test/full/self.lua:35: in main chunk
[C]: in upvalue 'originRequire'
test.lua:42: in function 'require'
test/full/init.lua:28: in main chunk
[C]: in upvalue 'originRequire'
test.lua:42: in function 'require'
test.lua:48: in upvalue 'test'
test.lua:109: in local 'main'
test.lua:115: in main chunk
(bootstrap.lua):85: in main chunk
[C]: in ?
The test failed in Alpine's build system CI and the full output is here: https://gitlab.alpinelinux.org/xordspar0/aports/-/jobs/1554206
Reproduction steps
git clone --recursive https://github.com/LuaLS/lua-language-server.gitcd lua-language-serverninja -C 3rd/luamake -f compile/ninja/linux.ninja3rd/luamake/luamake all3rd/luamake/luamake unit-test- Rarely see the above failure.
Additional Notes
lua-language-server version: 3.11.1
Log File
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách chạy các lệnh build và unit-test đã liệt kê, sau đó kiểm tra script/await.lua, workspace/workspace.lua và test/full/self.lua xung quanh stack coroutine.yield được báo cáo. Sử dụng log Alpine CI và chạy lại các test nhiều lần để điều tra lỗi xảy ra không thường xuyên. Hoàn tất khi bộ unit-test luôn chạy qua thành công mà không yield bên ngoài một coroutine.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- lua
- Lĩnh vực
- testing-qa
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100