Skip to content

invalid memory address or nil pointer dereference on an empty config file #3

@diegoroccia

Description

@diegoroccia

Thank you for the effort! I am getting error though:

Installed with
go install github.com/ewen-lbh/hyprls/cmd/hyprls@latest

verified that it starts by running it from the console
❯ hyprls
2024-04-28T14:52:39.174+0200 DEBUG hyprls/main.go:25 going to start server
2024-04-28T14:52:39.175+0200 DEBUG hyprls@v0.1.0/main.go:18 starting server

created an empty hyprland.conf file and ran
vim.lsp.start { name = "hyprlang", cmd = {"hyprls"}, root_dir = vim.fn.getcwd(), }

but as soon as I insert the first character, I get an error,
Client hyprlang quit with exit code 2 and signal 0. Check log for errors

checking with LspLog gives
[ERROR][2024-04-28 14:52:22] .../vim/lsp/rpc.lua:770 "rpc" "hyprls" "stderr" "panic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x709695]\n\ngoroutine 10 [running]:\n"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions