pherrymason / c3-lsp

Language Server for C3 Language
https://pherrymason.github.io/c3-lsp/
GNU General Public License v3.0
74 stars 10 forks source link

Could not find URI color scheme #82

Open vssukharev opened 1 month ago

vssukharev commented 1 month ago

Description LSP suddenly stops with a message: Could not find URI color scheme in neovim

To Reproduce Steps to reproduce the behavior:

  1. Import any .c3l library (for example, sdl2 from vendor repo)
  2. Type something
  3. Get an error

Expected behavior No error

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Neovim :LspLog: [ERROR][2024-10-06 10:55:39] .../vim/lsp/rpc.lua:770 "rpc" "/nix/store/b3dd09bxczhmf0hdhmi5l2y19a7732yz-c3-lsp-0.3.2/bin/c3-lsp" "stderr" '2024/10/06 10:55:39.955 DEBUG [C3-LSP:rpc] jsonrpc2: <-- notif: textDocument/publishDiagnostics: {"uri":"/home/starleks/coding/probe/c3/vlk_tutorial/src/main.c3","diagnostics":[]}\n'

pherrymason commented 1 month ago

Are you sure this is not a neovim or a neovim plugin error?
LSP is not doing not providing anything related to color scheme

vssukharev commented 1 month ago

Here is the actual error image

vssukharev commented 1 month ago

It seems like an issue with URI request: "uri":"/home/starleks/coding/probe/c3/vlk_tutorial/src/main.c3". I mean, shouldn't LSP add file:// before file name? So the actual URI path must be: "file:///home/starleks/coding/probe/c3/vlk_tutorial/src/main.c3"

pherrymason commented 1 month ago

Now it makes more sense to me. Will review this.