vls icon indicating copy to clipboard operation
vls copied to clipboard

Crashes immediately (in terminal, and in editor)

Open Zizaco opened this issue 1 year ago • 0 comments

System Information

V doctor

V full version: V 0.4.4 10aaeeb.96e4a09
OS: linux, Ubuntu 20.04.6 LTS
Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz

getwd: /home/zizaco/Projects/v/vls/bin
vexe: /home/zizaco/Projects/v/v/v
vexe mtime: 2024-02-02 22:50:31

vroot: OK, value: /home/zizaco/Projects/v/v
VMODULES: OK, value: /home/zizaco/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.25.1
Git vroot status: weekly.2024.05-20-gabd2b647
.git/config present: true

CC version: cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3

VLS info

vls version: 0.0.1.c8fe689
vls server arguments: --child --socket --port 5008 --timeout 15

Problem Description

vls crashes immediately from vscode, so I tried to get it to run it directly from terminal. I have the same issue:

 git clone https://github.com/vlang/vls && cd vls
 v run build.vsh gcc
 cd bin
 ./vls
Content-Length: 195

{"jsonrpc":"2.0","method":"window/showMessage","params":{"type":1,"message":"VLS has encountered an error. The error report is saved in /home/zizaco/.cache/vls/reports/vls_report_1706990688.md"}}

I tried with gcc and clang. Both crash with the very same error message.

Expected Output

vls listening on port 5008

Actual Output

Content-Length: 195

{"jsonrpc":"2.0","method":"window/showMessage","params":{"type":1,"message":"VLS has encountered an error. The error report is saved in /home/zizaco/.cache/vls/reports/vls_report_1706990688.md"}}

exit status 1

Steps to Reproduce

Option 1

git clone https://github.com/vlang/vls && cd vls
v run build.vsh gcc # or clang
cd bin
./vls

Option 2

v ls --install
v ls

Option 3

v ls --install
cd $(VROOT)/cmd/tools
./vls

Last Recorded LSP Requests

Request


Response


Zizaco avatar Feb 03 '24 20:02 Zizaco