Skip to content

inspect connection is lost on restart - agent: socket.send() raised exception #238

@Andrej730

Description

@Andrej730

Met it using zed and using rust-analyzer.

  1. In zed add this to the settings.json, to wrap rust-analyzer with lsp-devtools
"lsp": {
    "rust-analyzer": {
      "binary": {
        "path": "lsp-devtools",
        "arguments": ["agent", "--", "rust-analyzer"],
      },
    },
  },
  1. cargo init . in a new folder to create rust project
  2. zed . to open this folder in zed
  3. lsp-devtools inspect in some terminal to be able to expect logs
  4. Open src/main.rs in zed and hover over anything, this will launch server and you will see logs coming in inspect.
  5. Now restart lsp-devtools inspect and hover over anything.
  6. No new logs will occur in inspect, connection is lost.
  7. In zed - f1 - open language server logs - select rust-analyzer and server-logs,it shows that agent keeps sending socket.send() raised exception..

Workarounds:

  • don't restart inspect
  • if you restarted inspect, restart agent / language server also

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions