Julian / Julian/tree-sitter-lean

`_binding` C extension not built — `ModuleNotFoundError` on import

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
58
Forks
25
Avg merge
48m
Merged PRs (30d)
1

Description

Hi, thanks for maintaining this grammar.

Installing from `main` and importing raises:

```
$ uv pip install git+https://github.com/Julian/tree-sitter-lean.git
$ python -c "import tree_sitter_lean; tree_sitter_lean.language()"
ModuleNotFoundError: No module named 'tree_sitter_lean._binding'
```

The installed package has `__init__.py` and `binding.c` but no compiled `_binding.so` — hatchling's wheel target packages the `.py` files but doesn't compile the C extension.

Repro: `main` at `30f05c80e`, Python 3.14, macOS arm64, uv.

For reference, `tree-sitter-cpp` and similar grammars use `setuptools` with a `setup.py` defining an `Extension` over `binding.c + src/parser.c + src/scanner.c`. Happy to send a PR if that'd be useful.

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the hatchling wheel configuration and binding.c, then compare the setup.py Extension pattern used by tree-sitter-cpp and similar grammars. Verify the package built from main contains a compiled _binding extension and that the reported Python import command succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.