lexical-lsp / lexical

Lexical is a next-generation elixir language server
874 stars 80 forks source link

Fix: give proper argument to `TaskQueue.add/2` in Server.handle_message #791

Closed bangalcat closed 2 months ago

bangalcat commented 2 months ago

This will fix the issue that appears in lexical.log

10:02:38.610 [error] ** (FunctionClauseError) no function clause matching in LXical.Server.Provider.Handlers.DocumentSymbols.handle/2 
    (lx_server 0.5.0) lib/lexical/server/provider/handlers/document_symbols.ex:13: LXical.Server.Provider.Handlers.DocumentSymbols.handle...
    (lx_server 0.5.0) lib/lexical/server/task_queue.ex:77: anonymous fn/4 in LXical.Server.TaskQueue.State.as_task/2
    (elixir 1.17.1) lib/task/supervised.ex:101: Task.Supervised.invoke_mfa/2
    (elixir 1.17.1) lib/task/supervised.ex:36: Task.Supervised.reply/4
zachallaun commented 2 months ago

Thank you for the fix!