Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texlab lsp server exits on unicode letter 1F582 #4469

Open
2 of 3 tasks
rommeswi opened this issue Jun 3, 2024 · 0 comments
Open
2 of 3 tasks

Texlab lsp server exits on unicode letter 1F582 #4469

rommeswi opened this issue Jun 3, 2024 · 0 comments
Labels

Comments

@rommeswi
Copy link

rommeswi commented Jun 3, 2024

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

Please see latex-lsp/texlab#1130

Steps to reproduce

Both when I paste 🖂 or use insert-char BACK OF ENVELOPE, the LSP server exits. Deleting the character causes the LSP server again to exit. However, undo after inserting the character leaves the LSP server running.

According to the texlab and emacs developers, the issue arises from lsp-mode sending faulty notifications:

  "jsonrpc": "2.0",
  "method": "textDocument/didChange",
  "params": {
    "textDocument": { "uri": "...", "version": 1 },
    "contentChanges": [
      {
        "range": {
          "start": { "line": 0, "character": 0 },
          "end": { "line": 0, "character": 0 }
        },
        "rangeLength": 0,
        "text": "🖂"
      }
    ]
  }
}```

### Expected behavior

Language server should not crash when inserting unicode symbols.

### Which Language Server did you use?

texlab

### OS

Linux

### Error callstack

_No response_

### Anything else?

_No response_
@rommeswi rommeswi added the bug label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant