Skip to content

TS Parser failed #9257

@solaeus

Description

@solaeus

Summary

The editor frequently loses syntax highlighting for the active buffer. Other buffers still have syntax highlighting and closing and reopening the buffer restores syntax highlighting.

Reproduction Steps

This has been happening while editing Rust in a modestly-sized codebase but I have also experienced the issue with a JavaScript file.

Helix log

~/.cache/helix/helix.log
2024-01-06T05:30:47.077 helix_core::syntax [ERROR] TS parser failed, disabling TS for the current buffer: Err(Cancelled)
2024-01-06T05:36:55.508 helix_view::editor [ERROR] editor error: No code actions available
2024-01-06T05:38:46.810 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(5953)), original request likely timed out
2024-01-06T05:49:02.078 helix_view::document [ERROR] TS parser failed, disabling TS for the current buffer: Err(Cancelled)

Platform

Linux

Terminal Emulator

kitty 0.31.0

Installation Method

dnf

Helix Version

helix 23.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions