Comments (12)
- What is your OS? What is the version?
- What is your Emacs version? Was it built with dynamic module support? You can check that with
(functionp 'module-load)
) andmodule-file-suffix
. - Does this work:
(module-load "full/path/to/tree-sitter-dyn.so")
?
from elisp-tree-sitter.
- Linux Mint 19.2 Tessa
- it evals to
nil
and the variable is not defined - module-load is a void function
gonna re-compile Emacs with the dynamic modules option on and try again
from elisp-tree-sitter.
With the latest two items:
- now it evals to
t
and the suffix is.so
- the evaluation of that returns
t
too.
the repository directory is part of the load-path
variable, so, at this point I don't know what's wrong:
Loading 00debian-vars...
Loading /etc/emacs/site-start.d/50asymptote.el (source)...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading cjk-enc...
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...
Loading /etc/emacs/site-start.d/50mu4e.el (source)...
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...
Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...
Cannot open load file: No existe el archivo o el directorio, tree-sitter-dyn
Makefile:18: recipe for target 'test' failed
make: *** [test] Error 255
from elisp-tree-sitter.
Sorry I forgot about this. Have you tried using module-load
directly, after recompiling Emacs with dynamic module support?
from elisp-tree-sitter.
from elisp-tree-sitter.
I mean, have you tried (module-load "full/path/to/tree-sitter-dyn.so")
after recompiling Emacs?
require
uses module-load
underneath, and was/is buggy in certain combinations of Emacs+OS.
Cannot open load file
looks like an error reported by require
.
Using module-load
directly would have reported Module could not be opened
.
from elisp-tree-sitter.
I tried exactly that and module-load
((module-load "/home/jorge/code/emacs/emacs-tree-sitter/tree-sitter-dyn.so")
) returns t
for me.
from elisp-tree-sitter.
also, running (require 'tree-sitter-dyn)
works, too (after evaluating (add-to-list 'load-path "/home/jorge/code/emacs/emacs-tree-sitter")
).
from elisp-tree-sitter.
So it's now working in your setup, or am I misunderstanding?
from elisp-tree-sitter.
it works, but if I run make test
the command fails, this has to be something related to my Emacs setup maybe? there is a chance that running make test
loads my configuration and because I don't have (add-to-list 'load-path "/home/jorge/code/emacs/emacs-tree-sitter")
anywhere in it may be the cause of the failure
So, if I'm right (I will check the code related to the testing right now) this should work differently I think
from elisp-tree-sitter.
Okay, I think I know what's going on.
in bin/env.bash
you have an export for EMACS with the name of the emacs
command, if I do which emacs
this name points to /usr/bin/emacs
but this is wrong because I use Emacs from Snapcraft, the Emacs provided by Snapcraft is the one with the dynamic module turned on.
Gonna test something and provide a pull request if my experiment works
from elisp-tree-sitter.
PR made, please review it
from elisp-tree-sitter.
Related Issues (20)
- 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 1
- 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?
- tree-sitter-hl-mode doesn't honor the :extend font face in single line comments HOT 1
- request to rebuild tsc-dyn.so with older Linux OS
- Provide `aarch64` build of `tsc-dyn.so` for AArch64 Linux
- Repetitions and Predicate Problems
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.