Comments (4)
In contrast, this package installs its non-elisp data relative to the compiled library (via load-library). This breaks when using gccemacs, because gccemacs compiles files into their own directory.
Can you provide details on how it breaks?
If you used the convention and installed into ~/.emacs.d/ , or at least allowed the user to control where the data was installed, it would fix this problem.
This is a reasonable solution for grammar binaries installed by tree-sitter-langs.el
, as they are handled by the library itself. I'll make it customizable.
The dynamic module's binary installed by tree-sitter.el
should be on load-path
, as it is handled by the library loading mechanism. The directory that contains tree-sitter.el[cn]
is currently the most sensible location. Depending on how it currently breaks on gccemacs, it may be an issue with gccemacs itself.
from elisp-tree-sitter.
Can you provide details on how it breaks?
Sure!
When I native compile tree sitter, then run "tree-sitter-hl-mode" in, for instance, java, I get the error: tree-sitter-load: cannot find shared library for language: java.
Going into tree sitter I can see that it is /home/jacob/.emacs.d/straight/build/tree-sitter-langs/eln-x86_64-pc-linux-gnu-3fa98b4db038dd53/bin/
which obviously doesn't contain anything because the "eln" folder is a subfolder of the treesitter build directory, because native-compile-async
creates a subfolder.
Thank you :)
from elisp-tree-sitter.
Going into tree sitter I can see that it is /home/jacob/.emacs.d/straight/build/tree-sitter-langs/eln-x86_64-pc-linux-gnu-3fa98b4db038dd53/bin/
Is this directory listed in tree-sitter-load-path
? Does it contain the .so
language files?
If you execute M-x tree-sitter-langs-install-grammars
, where does it download the file to?
Does it work if you change the definition of tree-sitter-langs--dir
to this?
(defconst tree-sitter-langs--dir
(file-name-directory (locate-library "tree-sitter-langs.el")))
from elisp-tree-sitter.
#63 introduced the custom option tree-sitter-langs-grammar-dir
.
Please reopen if you still encounter this issue.
from elisp-tree-sitter.
Related Issues (20)
- Tree sitter highlighting breaks buffer content during search/replace (reproducible example within)
- Nested template strings arenβt (can't be?) highlighted properly
- Building melpa packages from the master branch HOT 2
- `tsc-traverse-mapc` doesn't forward DEPTH to FUNC when PROPS is fed nil
- Doesn't highlight Rust documentation code examples
- Swift support, revisited. HOT 1
- wrong ELF class: ELFCLASS64 on RPI4 HOT 1
- `Unsupported Operating System: OpenBSD` HOT 7
- bin/build not work on linux because builtin cd will output the folder name. HOT 1
- tree-sitter languages download of windows binaries failed with error
- tsc-lang-abi-too-new when installing new language HOT 11
- Crash when large file contains an ERROR node
- Invalid version syntax: β[email protected] HOT 2
- Colors look wrong in haskell mode. HOT 3
- `tree-sitter-debug-mode` is broken
- Crash when loading one particular Markdown file HOT 7
- Reporting Vulnerability
- (ts-fold-indicators-mode) not working when running emacs from terminal
- How do I add a new grammer to this mode? HOT 2
- why the submodule langs pointed to an old commit?
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 elisp-tree-sitter.