Skip to content

On LSP Shutdown, the process gets killed to early #5072

@sebastiaanspeck

Description

@sebastiaanspeck

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • I checked FAQ and Troubleshooting sections
  • You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

As described in StevenLooman/magik-tools#551.

The Magik LSP writes a file which can take some time to write to disk (~10MB). The process of writing this file, gets stopped too early, causing an incomplete file. On next startup the file is corrupted and can't be used by the LSP anymore.

Steps to reproduce

  1. Use the Magik LSP
  2. Open a Magik project (for example: https://github.com/StevenLooman/magik-tools/tree/develop/sw_type_dumper)
  3. Wait for the LSP to have fully indexed the workspace
  4. Shutdown the workspace (via M-x lsp-shutdown-workspace)
  5. The written JSONL is corrupted

Expected behavior

The written JSONL is okay after shutting down the workspace

Which Language Server did you use?

lsp-magik

OS

Linux

Error callstack

Anything else?

The same LSP in combination with VSCode didn’t have this issue.

Metadata

Metadata

Assignees

No one assigned

    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