Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Crashes immediately (in terminal, and in editor) #452

Open
Zizaco opened this issue Feb 3, 2024 · 0 comments
Open

Crashes immediately (in terminal, and in editor) #452

Zizaco opened this issue Feb 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Zizaco
Copy link

Zizaco commented Feb 3, 2024

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 Zizaco added the bug Something isn't working label Feb 3, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant