Comments (5)
Similar bug for https://github.com/postsolar/tree-sitter-purescript and https://github.com/tree-sitter/tree-sitter-haskell.
>>> Language.build_library("/dev/shm/a.so", ["vendor/tree-sitter-purescript", "vendor/tree-sitter-haskell"])
/nix/store/idiaraknw071d20nlqp49s18gbvw4wa0-binutils-2.40/bin/ld: /tmp/tmprbdxway9tree_sitter_language/vendor/tree-sitter-haskell/src/scanner.o: in function `state_new':
scanner.c:(.text+0x1906): multiple definition of `state_new'; /tmp/tmprbdxway9tree_sitter_language/vendor/tree-sitter-purescript/src/scanner.o:scanner.c:(.text+0x1906): first defined here
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/wzy/.local/lib/python3.11/site-packages/tree_sitter/__init__.py", line 118, in build_library
compiler.link_shared_object(
File "/nix/store/3rv445i5nn55xlkvmk2ai7spv0vrn0c9-python3-3.11.6-env/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py", line 752, in link_shared_object
self.link(
File "/nix/store/3rv445i5nn55xlkvmk2ai7spv0vrn0c9-python3-3.11.6-env/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 277, in link
raise LinkError(msg)
distutils.errors.LinkError: command '/run/current-system/sw/bin/cc' failed with exit code 1
from py-tree-sitter.
these are bugs in the parsers
see also
tree-sitter/tree-sitter-html#63
tree-sitter/tree-sitter-html#64
from py-tree-sitter.
Yes, grantjenks/py-tree-sitter-languages@e38ce31 disable some languages.
disabled_langs = [
"vue", # html, angular
"angular", # html
"purescript", # haskell, unison
"unison", # haskell
"svelte", # org
"terraform", # hcl
]
When two parsers define same definitions, the symbols should have a namespace-like prefix.
from py-tree-sitter.
this works with all grammars except svelte and vue
from py-tree-sitter.
fixed in milahu/nur-packages@85dccc2
from py-tree-sitter.
Related Issues (20)
- Miss distutils in Windows HOT 1
- Documentation is required.
- Is it possible to understand if an object is an instance of a certain class that may be defined in another file?
- How to use tree-sitter in Windows 10? HOT 6
- Special case not managed by the parser, when an expression is split without a backslash and the second line is dedented. HOT 4
- Example mismatch HOT 1
- Captures are not grouped HOT 3
- How to sync node after code edit? HOT 1
- README.md needs updates
- Tree-sitter Fails with Core Dump on Processing Large Input Code File HOT 4
- query failing in py-tree-sitter but compiling in tree-sitter playground HOT 1
- a __main__.py to build `vendor/tree-sitter-X` from command line HOT 1
- The Python parser appears to be parsing comments and strings with unmatched parentheses as code HOT 2
- py-tree-sitter is 10x slower than lezer-parser HOT 9
- FileNotFoundError: [Errno 2] No such file or directory: 'tree-sitter-java/src/parser.c' HOT 2
- UTF-16 encoding support is wanted HOT 1
- Can't install tree-sitter-python HOT 1
- [tree-sitter-python] `No matching distribution found for tree-sitter-python` HOT 1
- Broken (?) README instructions to pip install pre-compiled binary wheels HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-tree-sitter.