Skip to content

Test failure: attempt to yield from outside a coroutine #2896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xordspar0 opened this issue Oct 11, 2024 · 4 comments
Open

Test failure: attempt to yield from outside a coroutine #2896

xordspar0 opened this issue Oct 11, 2024 · 4 comments

Comments

@xordspar0
Copy link

xordspar0 commented Oct 11, 2024

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

  1. git clone --recursive https://github.com/LuaLS/lua-language-server.git
  2. cd lua-language-server
  3. ninja -C 3rd/luamake -f compile/ninja/linux.ninja
  4. 3rd/luamake/luamake all
  5. 3rd/luamake/luamake unit-test
  6. Rarely see the above failure.

Additional Notes

lua-language-server version: 3.11.1

Log File

No response

@RossComputerGuy
Copy link

I've ran into this same problem when cross compiling for RISC-V on aarch64 with NixOS.

@mcepl
Copy link

mcepl commented Mar 29, 2025

We are getting this quite often when building for openSUSE/Factory.

@vicho314
Copy link

vicho314 commented Apr 8, 2025

I can confirm this bug while trying to build it on a x86 Debian distro (AntiX).

@heojaehun
Copy link

This issue was also seen in Raspbian on the ARMV7L architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants