Skip to content

bug: Missing "src/scanner.c" in source distribution #325

@rd4398

Description

@rd4398

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-python

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

0.25.0

Describe the bug

The tree-sitter-python package is missing "src/scanner.c" in source distribution. This was identified when I tried to build the package from source and import it.

Steps To Reproduce/Bad Parse Tree

  1. Build the package from source and install it
  2. import the package using python3 -c "import tree_sitter_python"
  3. The error is as follows
python3 -c "import tree_sitter_python"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/app-root/lib64/python3.12/site-packages/tree_sitter_python/__init__.py", line 5, in <module>
    from ._binding import language
ImportError: /opt/app-root/lib64/python3.12/site-packages/tree_sitter_python/_binding.abi3.so: undefined symbol: tree_sitter_python_external_scanner_create

Expected Behavior/Parse Tree

No error after building tree-sitter-python from source and importing it.

Repro

# Example code that causes the issue
def foo():
  # Code that fails to parse, or causes an error
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions