Skip to content

Currently doesn't support syntax higlighting when use rust language #12245

@ilyaaay

Description

@ilyaaay

Summary

Editor doesn't show syntax higlighting when i use rust lang. Although with other languages ​​everything works correctly (for example typescript)

Reproduction Steps

Open any rust project with helix (version 24.7) and lsp (rust-analyzer 1 (b65911d5ee 2024-11-30))

Helix log

2024-12-13T15:53:04.402 helix_core::syntax [ERROR] Could not parse queries for language "rust". Are your grammars out of sync? Try running 'hx --grammar fetch' and 'hx --grammar build'. This query could not be parsed: QueryError { row: 84, column: 1, offset: 1717, message: "label", kind: NodeType }
2024-12-13T15:53:56.998 helix_core::syntax [ERROR] Could not parse queries for language "rust". Are your grammars out of sync? Try running 'hx --grammar fetch' and 'hx --grammar build'. This query could not be parsed: QueryError { row: 84, column: 1, offset: 1717, message: "label", kind: NodeType }
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified
2024-12-13T15:54:15.312 helix_lsp::transport [ERROR] rust-analyzer <- ServerError(-32801): content modified

Platform

Manjaro linux

Terminal Emulator

alacritty

Installation Method

yay aur

Helix Version

helix 24.7

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