Skip to content

no highlighting: --health says ok, but when opening file, "the parser's shared library does not exist" #14900

@2-www

Description

@2-www

Summary

all black text for all languages, even tho --health reports ok:

# strace -e openat hx --health python
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/proc/self/cgroup", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/sys/fs/cgroup/cpu.max", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/root/.config/helix/languages.toml", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Немає такого файла або каталогу)
openat(AT_FDCWD, "/code/example/.helix/languages.toml", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Немає такого файла або каталогу)
Configured language servers:
  ✘ ty: 'ty' not found in $PATH
  ✘ ruff: 'ruff' not found in $PATH
  ✘ jedi: 'jedi-language-server' not found in $PATH
  ✓ pylsp: /usr/bin/pylsp
Configured debug adapter: None
Configured formatter: None
Tree-sitter parser: ✓
openat(AT_FDCWD, "/usr/lib/hx/runtime/queries/python/highlights.scm", O_RDONLY|O_CLOEXEC) = 9
Highlight queries: ✓
openat(AT_FDCWD, "/usr/lib/hx/runtime/queries/python/textobjects.scm", O_RDONLY|O_CLOEXEC) = 9
Textobject queries: ✓
openat(AT_FDCWD, "/usr/lib/hx/runtime/queries/python/indents.scm", O_RDONLY|O_CLOEXEC) = 9
Indent queries: ✓
+++ exited with 0 +++

Reproduction Steps

  1. hx --health python
  2. hx somecode.py

I expected this to happen: code is colorful

Instead, this happened: code is all black text(

Helix log

when running with -vv, a lot of junk about regex compiliation, then:

helix_core::syntax [INFO] Skipping syntax config for 'python' because the parser's shared library does not exist

Platform

Debian GNU/Linux unstable in podman

Terminal Emulator

Ptyxis

Installation Method

apt (unstable)

Helix Version

25.07.1

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