Skip to content

Doesn't work on helix: [FATAL ERROR] The client should provide one workspace folder at least!\n" #283

@zhaob1n

Description

@zhaob1n

I use helix editor, which has builtin lsp support.
Setup:

> ./clice --version
clice version: 0.0.1
llvm version: 20
[language-server.clice]
command = "/home/xxx/clice/clice"
args = ["--resource-dir", "/home/xxx/clice/lib/clang/20/"]

Open a simple .cpp file and clice crashes.
Log from helix:

2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] argv[0] = /home/ykpcx/clice/clice\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] argv[1] = --resource-dir\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] argv[2] = /home/ykpcx/clice/lib/clang/20/\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] No configuration file specified, using default settings\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] Resource directory found: /home/ykpcx/clice/lib/clang/20/\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] Server starts listening on stdin/stdout\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] Handling request: initialize\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [INFO] Initialize from client: helix, version: \n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 09:46:39.058] [FATAL ERROR] The client should provide one workspace folder at least!\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "Please report bugs to https://github.com/clice-project/clice/issues and include the crash backtraceStack dump:\n"
2025-10-20T17:46:39.058 helix_lsp::transport [ERROR] clice err <- "0.\tProgram arguments: /home/ykpcx/clice/clice --resource-dir /home/ykpcx/clice/lib/clang/20/\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #0 0x0000558be1267ff1 (/home/ykpcx/clice/clice+0xe0fff1)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #1 0x0000558be1268988 (/home/ykpcx/clice/clice+0xe10988)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #2 0x00007fea5750e070 __restore_rt (/lib64/libc.so.6+0x1a070)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #3 0x00007fea57567e9c __pthread_kill_implementation (/lib64/libc.so.6+0x73e9c)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #4 0x00007fea5750df3e gsignal (/lib64/libc.so.6+0x19f3e)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #5 0x00007fea574f56d0 abort (/lib64/libc.so.6+0x16d0)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #6 0x0000558be0ff1be6 (/home/ykpcx/clice/clice+0xb99be6)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #7 0x0000558be0ff5cc9 (/home/ykpcx/clice/clice+0xb9dcc9)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #8 0x0000558be0fd54e9 (/home/ykpcx/clice/clice+0xb7d4e9)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- " #9 0x0000558be112dafa (/home/ykpcx/clice/clice+0xcd5afa)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- "#10 0x0000558be0fd58d2 (/home/ykpcx/clice/clice+0xb7d8d2)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- "#11 0x0000558be0fb7aed (/home/ykpcx/clice/clice+0xb5faed)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- "#12 0x00007fea574f7575 __libc_start_call_main (/lib64/libc.so.6+0x3575)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- "#13 0x00007fea574f7628 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3628)\n"
2025-10-20T17:46:39.069 helix_lsp::transport [ERROR] clice err <- "#14 0x0000558be0fb5d65 (/home/ykpcx/clice/clice+0xb5dd65)\n"
2025-10-20T17:46:39.152 helix_lsp::transport [ERROR] clice err: <- StreamClosed

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions