From eb3e5a19e963dc3ac13b8cf304307122528e2e64 Mon Sep 17 00:00:00 2001 From: datnn Date: Wed, 22 Oct 2025 09:17:40 +0700 Subject: [PATCH] fix: correct function name mismatch in Python binding - Fix function name from tree_sitter_tree_sitter_vb_dotnet to tree_sitter_vb_dotnet - Resolves ImportError: symbol not found in flat namespace - Function name in binding.c now matches the actual function in parser.c --- bindings/python/tree_sitter_tree_sitter_vb_dotnet/binding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/tree_sitter_tree_sitter_vb_dotnet/binding.c b/bindings/python/tree_sitter_tree_sitter_vb_dotnet/binding.c index 8122c88..08e4018 100644 --- a/bindings/python/tree_sitter_tree_sitter_vb_dotnet/binding.c +++ b/bindings/python/tree_sitter_tree_sitter_vb_dotnet/binding.c @@ -2,10 +2,10 @@ typedef struct TSLanguage TSLanguage; -TSLanguage *tree_sitter_tree_sitter_vb_dotnet(void); +TSLanguage *tree_sitter_vb_dotnet(void); static PyObject* _binding_language(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args)) { - return PyCapsule_New(tree_sitter_tree_sitter_vb_dotnet(), "tree_sitter.Language", NULL); + return PyCapsule_New(tree_sitter_vb_dotnet(), "tree_sitter.Language", NULL); } static struct PyModuleDef_Slot slots[] = {