Skip to content
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

Error in the compilation of the server in linux #426

Closed
Yagua opened this issue Feb 25, 2021 · 18 comments
Closed

Error in the compilation of the server in linux #426

Yagua opened this issue Feb 25, 2021 · 18 comments
Assignees
Labels
bug Something isn't working compile Related to compiling the server from source

Comments

@Yagua
Copy link

Yagua commented Feb 25, 2021

Describe the bug
error in compiling the server code in linux, I am simply following the installation guide provided in the same repository.
notorious errors:
--FAILED: build/linux//unittest
--FAILED: build/linux/
/test
-- ninja: build stopped: subcommand failed.

To Reproduce
The only thing I do is to follow the steps stipulated in the guide for the construction (compilation).
executed commands:

--clone project
git clone https://github.com/sumneko/lua-language-server
cd lua-language-server
git submodule update --init --recursive

--build
cd 3rd/luamake
ninja -f ninja/linux.ninja
cd ../...
./3rd/luamake/luamake rebuild

Screenshots

faildCompile

Environment (please complete the following information):

  • OS: Arch Linux
  • Client: NVIM (v0.5.0-dev+1109-g6b7cc45c4)
@sumneko sumneko added the bug Something isn't working label Feb 26, 2021
@Yagua
Copy link
Author

Yagua commented Feb 26, 2021

The problem persist for me...

@sumneko sumneko reopened this Feb 26, 2021
@sumneko
Copy link
Collaborator

sumneko commented Feb 26, 2021

Please provide the new screenshot

@Yagua
Copy link
Author

Yagua commented Feb 26, 2021

hi @sumneko, look I jump to commit 54b4809 of version 1.14.3 (I know it's from a while ago) and there I do compile.
Look, this is the new screenshot
the "FAILED: build/linux//unittest" desapears, but
"FAILED: build/linux//tes" persist

error

@sumneko
Copy link
Collaborator

sumneko commented Feb 26, 2021

Please checkout the latest version

@Yagua
Copy link
Author

Yagua commented Feb 26, 2021

persists, the same error of the last screenshot continues, I do not know what happens, but it is strange that the version that I mentioned to you if it compiles me

@Yagua
Copy link
Author

Yagua commented Feb 26, 2021

I just recompiled, after the submodule update, it compiles correctly.
now it works correctly for me. thanks

@actboy168
Copy link
Collaborator

This is a gcc bug, and the latest bee added a temporary patch.

@actboy168 actboy168 added the compile Related to compiling the server from source label Feb 26, 2021
@Sawrz
Copy link

Sawrz commented Mar 17, 2021

I have a similar issue but with crossfile:

测试[crossfile]...
/home/sandro/Downloads/lua-language-server/3rd/luamake/luamake: ...e/sandro/Downloads/lua-language-server/make/unittest.lua:22: /home/sandro/Downloads/lua-language-server/bin/Linux/lua-language-server: ...nloads/lua-language-server/test/crossfile/definition.lua:92: assertion failed!
stack traceback:
	[C]: in function 'assert'
	...nloads/lua-language-server/test/crossfile/definition.lua:92: in function 'TEST'
	...nloads/lua-language-server/test/crossfile/definition.lua:746: in main chunk
	[C]: in function 'require'
	...ro/Downloads/lua-language-server/test/crossfile/init.lua:1: in main chunk
	[C]: in function 'require'
	/home/sandro/Downloads/lua-language-server/test.lua:55: in local 'test'
	/home/sandro/Downloads/lua-language-server/test.lua:77: in local 'main'
	/home/sandro/Downloads/lua-language-server/test.lua:85: in main chunk
	[C]: in ?

stack traceback:
	[C]: in function 'error'
	...e/sandro/Downloads/lua-language-server/make/unittest.lua:22: in main chunk
	...wnloads/lua-language-server/3rd/luamake/scripts/util.lua:56: in function 'util.sandbox'
	.../lua-language-server/3rd/luamake/scripts/command/lua.lua:58: in main chunk
	...wnloads/lua-language-server/3rd/luamake/scripts/util.lua:52: in function 'util.command'
	...wnloads/lua-language-server/3rd/luamake/scripts/main.lua:6: in main chunk
	[C]: in function 'require'
	...andro/Downloads/lua-language-server/3rd/luamake/main.lua:5: in main chunk
	[C]: in ?
ninja: build stopped: subcommand failed.

OS, Compiler, etc. is the same as @DilanGMB. @actboy168 mentioned a gcc bug. Is there anything I can do except for waiting for the new version?

@sumneko
Copy link
Collaborator

sumneko commented Mar 17, 2021

I have a similar issue but with crossfile:

测试[crossfile]...
/home/sandro/Downloads/lua-language-server/3rd/luamake/luamake: ...e/sandro/Downloads/lua-language-server/make/unittest.lua:22: /home/sandro/Downloads/lua-language-server/bin/Linux/lua-language-server: ...nloads/lua-language-server/test/crossfile/definition.lua:92: assertion failed!
stack traceback:
	[C]: in function 'assert'
	...nloads/lua-language-server/test/crossfile/definition.lua:92: in function 'TEST'
	...nloads/lua-language-server/test/crossfile/definition.lua:746: in main chunk
	[C]: in function 'require'
	...ro/Downloads/lua-language-server/test/crossfile/init.lua:1: in main chunk
	[C]: in function 'require'
	/home/sandro/Downloads/lua-language-server/test.lua:55: in local 'test'
	/home/sandro/Downloads/lua-language-server/test.lua:77: in local 'main'
	/home/sandro/Downloads/lua-language-server/test.lua:85: in main chunk
	[C]: in ?

stack traceback:
	[C]: in function 'error'
	...e/sandro/Downloads/lua-language-server/make/unittest.lua:22: in main chunk
	...wnloads/lua-language-server/3rd/luamake/scripts/util.lua:56: in function 'util.sandbox'
	.../lua-language-server/3rd/luamake/scripts/command/lua.lua:58: in main chunk
	...wnloads/lua-language-server/3rd/luamake/scripts/util.lua:52: in function 'util.command'
	...wnloads/lua-language-server/3rd/luamake/scripts/main.lua:6: in main chunk
	[C]: in function 'require'
	...andro/Downloads/lua-language-server/3rd/luamake/main.lua:5: in main chunk
	[C]: in ?
ninja: build stopped: subcommand failed.

OS, Compiler, etc. is the same as @DilanGMB. @actboy168 mentioned a gcc bug. Is there anything I can do except for waiting for the new version?

This has been fixed and nothing to do with this issue.

See latest commits.

@dj8yfo
Copy link

dj8yfo commented Mar 17, 2021

Doesn't compile on master 1f1f00f,
but compiles ok on 54b4809
According to instructions in current issue's header.

@sumneko
Copy link
Collaborator

sumneko commented Mar 17, 2021

Doesn't compile on master 1f1f00f,
but compiles ok on 54b4809
According to instructions in current issue's header.

Checkout the latest commit

@Cussa
Copy link

Cussa commented Mar 26, 2021

Hello, I am trying to build following the steps specified in the documentation, but I am receiving the following error:

> Executing task: ninja -f ninja/linux.ninja <

[0/3] cd 3rd/bee.lua && ninja -f ninja/linux.ninja
[59/59] build/linux/bin/bootstrap test/test.lua
FAILED: build/linux/_/test 
build/linux/bin/bootstrap test/test.lua
OS:             Linux
Arch:           64
Compiler:       GCC 9.3.0
CRT:            libstdc++ 20200422 glibc 2.27
DEBUG:          false
........................................................................................F..
Failed tests:
-------------
1) filewatch.test_2
test/test_filewatch.lua:90: expected: nil, actual: <userdata:/gitlab/sumneko/server/3rd/luamake/3rd/bee.lua/temp/test1>
stack traceback:
        test/test_filewatch.lua:90: in local 'assertHas'
        test/test_filewatch.lua:92: in local 'f'
        test/test_filewatch.lua:46: in upvalue 'test'
        test/test_filewatch.lua:59: in upvalue 'filewatch.test_2'

Ran 91 tests in 0.501 seconds, 90 successes, 1 failures
ninja: build stopped: subcommand failed.
FAILED: build/linux/_/bee 
cd 3rd/bee.lua && ninja -f ninja/linux.ninja
ninja: build stopped: subcommand failed.
The terminal process "/bin/bash '-c', 'ninja -f ninja/linux.ninja'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Docker container with Ubuntu 18.04.

To Reproduce
The only thing I do is to follow the steps stipulated in the guide for compilation specified here https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(In-VSCode)

@sumneko
Copy link
Collaborator

sumneko commented Dec 1, 2021

Is this fixed?

@Yagua
Copy link
Author

Yagua commented Dec 5, 2021

@sumneko, I am not 100% sure, I remember this happening to me when I was using Arch linux, however I am currently using Ubuntu and the server compiles without problems.

@bellini666
Copy link

Hello,

This started happening to me the last couple of days. This is the end of the traceback:

stack traceback:
	script/await.lua:35: in function 'await.checkResult'
	(...tail calls...)
	[C]: in function 'xpcall'
	script/timer.lua:51: in upvalue 'mWakeup'
	script/timer.lua:92: in upvalue 'onTick'
	script/timer.lua:220: in function 'timer.update'
	test/tclient/lclient.lua:86: in method 'start'
	test.lua:85: in local 'main'
	test.lua:106: in main chunk
	/home/bellini/.local_build/lua-language-server/bin/main.lua:79: in main chunk
	[C]: in ?

stack traceback:
	test/tclient/lclient.lua:68: in function 'await.errorHandle'
	script/await.lua:35: in function 'await.checkResult'
	(...tail calls...)
	[C]: in function 'xpcall'
	script/timer.lua:51: in upvalue 'mWakeup'
	script/timer.lua:92: in upvalue 'onTick'
	script/timer.lua:220: in function 'timer.update'
	test/tclient/lclient.lua:86: in method 'start'
	test.lua:85: in local 'main'
	test.lua:106: in main chunk
	/home/bellini/.local_build/lua-language-server/bin/main.lua:79: in main chunk
	[C]: in ?

[20:50:55.492][warn] [#0:script/proto/proto.lua:207]: Response id not found: {
}

[20:50:55.492][debug][#0:script/provider/diagnostic.lua:379]: 全文诊断耗时:	0.00033900000000001

bin/lua-language-server: test/tclient/lclient.lua:96: two hours later ...
====== C -> S ======
====== S -> C ======
002 workspace/semanticTokens/refresh
====================
stack traceback:
	[C]: in function 'error'
	test/tclient/lclient.lua:96: in method 'start'
	test.lua:85: in local 'main'
	test.lua:106: in main chunk
	/home/bellini/.local_build/lua-language-server/bin/main.lua:79: in main chunk
	[C]: in ?
FAILED: build/_/unit-test 
bin/lua-language-server test.lua
ninja: build stopped: subcommand failed.

I can provide more info if required

@hsequeda
Copy link

same error

@sumneko
Copy link
Collaborator

sumneko commented Jan 19, 2022

@bellini666 @hsequeda should fixed.

@bellini666
Copy link

@sumneko it is indeed fixed! Thank you!

@sumneko sumneko closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compile Related to compiling the server from source
Projects
None yet
Development

No branches or pull requests

8 participants