{"id":28412,"library":"tree-sitter-groovy","title":"tree-sitter-groovy","description":"Groovy grammar for tree-sitter, version 0.1.2. Provides a parser and syntax tree for Groovy files. Low release cadence; mature grammar.","status":"active","version":"0.1.2","language":"python","source_language":"en","source_url":"https://github.com/amaanq/tree-sitter-groovy","tags":["tree-sitter","groovy","parser"],"install":[{"cmd":"pip install tree-sitter-groovy","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for loading and using the grammar","package":"tree-sitter","optional":false}],"imports":[{"note":"Direct import of the function avoids namespace confusion","wrong":"import tree_sitter_groovy; tree_sitter_groovy.language()","symbol":"language","correct":"from tree_sitter_groovy import language"}],"quickstart":{"code":"from tree_sitter import Language, Parser\nfrom tree_sitter_groovy import language\n\nLang = Language(language())\nparser = Parser()\nparser.set_language(Lang)\n\ntree = parser.parse(b'println \"hello\"')\nroot = tree.root_node\nprint(root.sexp())","lang":"python","description":"Parse a Groovy snippet and print the syntax tree."},"warnings":[{"fix":"Test thoroughly; consider contributing to grammar improvements.","message":"The grammar is incomplete and may fail on complex Groovy constructs.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `from tree_sitter_groovy import language` instead of `import tree_sitter_groovy; tree_sitter_groovy.language()`.","message":"The old API of directly calling `language` without importing from the specific package is deprecated.","severity":"deprecated","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run `pip install tree-sitter-groovy` in the correct environment.","cause":"tree-sitter-groovy not installed or installed in a different environment.","error":"ModuleNotFoundError: No module named 'tree_sitter_groovy'"},{"fix":"Call `language()` with no arguments; it returns the language object directly.","cause":"Passing arguments to `language()` which is no longer supported.","error":"TypeError: language() takes 0 positional arguments but 1 was given"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}