question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Kleidukoscommented, Dec 5, 2022

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. 😃

0reactions
tekcommented, Dec 5, 2022

good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parser doesn't start until re-installed · Issue #3153 - GitHub
Describe the bug When I open a file in NeoVim, treesitter starts but ... /packer/opt/nvim-treesitter/parser/beancount.so: undefined symbol: ...
Read more >
Creating Parsers - Tree-sitter
It recompiles your parser as-needed whenever you update it by re-running tree-sitter generate . Syntax Highlighting Tests. The tree-sitter test command will ...
Read more >
Linking a C library (tree-sitter) into a C++ project cmake issues
Undefined symbols for architecture x86_64: "tree_sitter_json()", referenced from: PlainTextEdit::onTextChanged() in TextEditor.cpp.o ld: ...
Read more >
How to write a tree-sitter grammar in an afternoon
The rows of equal signs denote the name of the test, followed by the program to parse, then a line of dashes followed...
Read more >
nvim-treesitter - Vim Awesome
Warning: Treesitter and nvim-treesitter highlighting are an experimental ... Run tree-sitter generate in this directory (followed by tree-sitter test for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found