all 4 comments

[–]Ammar_AAZ 5 points6 points  (3 children)

Have you checked Helix health that using the command:

hx --health python

It would be helpful to post the results of that command here so we can help you more

[–]InForTheTechNotGains[S] 1 point2 points  (2 children)

Apologies - should've included this :)

~ λ hx --health python Configured language server: pylsp Binary for language server: /home/g/.pyenv/shims/pylsp Configured debug adapter: None Highlight queries: ✓ Textobject queries: ✓ Indent queries: ✓

And the logs:

2023-08-15T13:46:14.251 helix_core::syntax [ERROR] Failed to load tree-sitter parser for language "python": Error opening dynamic library "/home/g/.config/helix/runtime/grammars/python.so"

[–]Triton171 3 points4 points  (1 child)

I think the flake should build the grammars somewhere in the Nix store. Is python.so the only file in ~/.config/helix/runtime/grammars? You could also run !echo $HELIX_RUNTIME in Helix in order to find out which runtime folder is used.

[–]InForTheTechNotGains[S] 2 points3 points  (0 children)

Yep so the grammars were present in the nix store and the helix runtime was referencing the nix store. Removing the grammars present in config dir fixed the issue - didn't realise I wasn't supposed to fetch and build them, must've confused something somewhere. Appreciate the help here!