Skip to content

LSP fails to bind with a Neovim Buffer #202

Closed
@gmmyung

Description

@gmmyung

Describe the problem

I am not sure if this is a duplicate, but I cannot make arduino-language-server work on neovim.

LSP Log:

[START][2024-12-02 15:24:46] LSP logging initiated
[ERROR][2024-12-02 15:24:46] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/gmmyung/go/bin/arduino-language-server"	"stderr"	"15:24:46.322330 arduino-cli found at /opt/homebrew/bin/arduino-cli\n15:24:46.322454 clangd found at /opt/homebrew/opt/llvm/bin/clangd\n"
[ERROR][2024-12-02 15:24:46] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/gmmyung/go/bin/arduino-language-server"	"stderr"	"15:24:46.323107 \27[97mLS: : Initial board configuration: arduino:avr:nano\27[0m\n15:24:46.323114 \27[97mLS: : arduino-language-server Version: 0.0.0-git Commit:  Date: \27[0m\n"
[ERROR][2024-12-02 15:24:46] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/gmmyung/go/bin/arduino-language-server"	"stderr"	"15:24:46.323124 \27[97mLS: : Language server temp directory: /private/var/folders/pn/1x_sn6ws1qz96cvyl5jqjfxh0000gn/T/arduino-language-server3193239731\27[0m\n15:24:46.323126 \27[97mLS: : Language server build path: /private/var/folders/pn/1x_sn6ws1qz96cvyl5jqjfxh0000gn/T/arduino-language-server3193239731/build\27[0m\n15:24:46.323128 \27[97mLS: : Language server build sketch root: /private/var/folders/pn/1x_sn6ws1qz96cvyl5jqjfxh0000gn/T/arduino-language-server3193239731/build/sketch\27[0m\n15:24:46.323129 \27[97mLS: : Language server FULL build path: /private/var/folders/pn/1x_sn6ws1qz96cvyl5jqjfxh0000gn/T/arduino-language-server3193239731/fullbuild\27[0m\n"
[ERROR][2024-12-02 15:24:46] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/gmmyung/go/bin/arduino-language-server"	"stderr"	"15:24:46.323495 IN Elapsed: 266.917µs\n"
[ERROR][2024-12-02 15:24:46] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/gmmyung/go/bin/arduino-language-server"	"stderr"	"15:24:46.323665 \27[92mIDE --> LS REQU initialize 1\27[0m\n"

Nvim version:

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1731601260

To reproduce

Open the ino file buffer

Expected behavior

The LSP should bind to the buffer

Arduino Language Server version

0.7.6

Arduino CLI version

arduino-cli Version: 1.1.1 Commit: Homebrew Date: 2024-11-22T08:56:36Z

Operating system

macOS

Operating system version

15.1.1 (24B91)

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions