Skip to content

Help using tabby-agent lsp #10

@Askath

Description

@Askath

Hey there,

I am currently trying to use the tabby-agent lsp Tabby-Agent (copilot like autocomplete) with lspx.

My current setup is

(add-to-list 'eglot-server-programs '(typescript-ts-mode . ("lspx" "--lsp" "node --no-warnings /Users/taradruffel/.workspace/repos/tabby/tabby/clients/tabby-agent/dist/node/index.js --stdio" "--lsp" "ngserver --stdio --tsProbeLocations /opt/homebrew/lib/node_modules/ --ngProbeLocations /opt/homebrew/lib/node_modules" "--lsp" "typescript-language-server --stdio")))

Using the lsp without lspx, everything works

Now I get some Errors when opening a typescript file with lspx:

jsonrpc-request: jsonrpc-error: "request id=5 failed:", (jsonrpc-error-code . -1), (jsonrpc-error-message . "Server died"), (jsonrpc-error-data) Error in post-command-hook (icomplete-post-command-hook): (error "Process EGLOT (phoenix-frontend/(typescript-ts-mode)) not running: exited abnormally with code 1 ")

and in the eglot log:

`[stderr]
[stderr]
[stderr] nil
[stderr] nil
[stderr] Process EGLOT (phoenix-frontend/(typescript-ts-mode)) stderr finished
[stderr] TypeError: Cannot read properties of undefined (reading 'reduce')
[stderr] at defaultMerge (file:///var/folders/f3/7zqgt1bj17n0dkr8shh_ybnr0000gn/T/deno-compile-lspx/lib/dispatch.ts:141:20)
[stderr] at defaultRequest (file:///var/folders/f3/7zqgt1bj17n0dkr8shh_ybnr0000gn/T/deno-compile-lspx/lib/dispatch.ts:50:10)
[stderr] at defaultRequest.next ()
[stderr] at Object.request (file:///var/folders/f3/7zqgt1bj17n0dkr8shh_ybnr0000gn/T/deno-compile-lspx/lib/lifecycle.ts:91:25)
[stderr] at request.next ()
[stderr] at request (file:///var/folders/f3/7zqgt1bj17n0dkr8shh_ybnr0000gn/T/deno-compile-lspx/lib/lifecycle.ts:19:37)
[stderr] at request.next ()
[stderr] at file:///var/folders/f3/7zqgt1bj17n0dkr8shh_ybnr0000gn/T/deno-compile-lspx/lib/json-rpc-connection.ts:68:35
[stderr] at Generator.next ()
[stderr] at Object.with (https://jsr.io/@effection/effection/4.0.0-alpha.7/lib/context.ts:23:23)

----------b---y---e---b---y---e----------
[stderr]
[stderr]
[stderr] nil
[stderr] nil
[stderr] Process EGLOT (phoenix-frontend/(typescript-ts-mode)) stderr<1> finished
`
I am a bit unsure on how to debug this. I assume its the tabby-agent that is doing something strange, that breaks lspx.

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