tree-sitter / tree-sitter-haskell

Haskell grammar for tree-sitter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"undefined symbol: tree_sitter_haskell_external_scanner_create" when running "tree-sitter test"

Kleidukos opened this issue · comments

Version: tree-sitter 0.20.7

Hi! I'm trying to re-use the grammar for learning with a haskell-like language, an I get this message when I run tree-sitter test:

❯ tree-sitter test          
Error opening dynamic library "/home/hecate/.cache/tree-sitter/lib/haskell.so"

Caused by:
    /home/hecate/.cache/tree-sitter/lib/haskell.so: undefined symbol: tree_sitter_haskell_external_scanner_create

It's fairly hard to look up on search engines. Any idea what could be the cause?

hm, no clue. tree-sitter too old maybe? is that a fresh checkout? did you try deleting that haskell.so?

I know realise it looks a lot like #43 but I'm just trying to use the bindings from a Haskell program.

ah, how do you do that?

I just took the grammar files and I was intending to use https://flora.pm/packages/@hackage/tree-sitter.

That being said, I tried to run tree-sitter test in a fresh clone of the repo, and it worked! I'll try to see what I can remove without breaking everything :)

hmm there is a submodule in the repo here: https://github.com/tree-sitter/haskell-tree-sitter/tree/master/tree-sitter-haskell/vendor
that is from 2018, maybe that causes a conflict? how did you add the grammar files?

Just by copying them in my own repo, reproducing the grammar/ directory hierarchy. But the submodule is not yet a problem because I'm hitting the error on tree-sitter test and not from Haskell. I'm closing this issue now and I'll re-open when I have more concrete stuff to bring. For now I'll be using a full clone of the repo as a starting point. :)

good luck!