Closed pcinereus closed 1 year ago
Do you install the r.dll or r.so as descripted in the README? The dynamic lib is not shipped with this package or tree-sitter-langs.
Thanks @ShuguangSun. I did copy R.so to the suggested path (I think)
The steps I followed were:
init.el
(use-package tree-sitter
:ensure t
)
(use-package tree-sitter-langs
:ensure t
)
References https://emacs-tree-sitter.github.io/installation/ https://github.com/ShuguangSun/tree-sitter-ess-r/tree/2781d18303110549b4e61cb6b465b1dcbe3635f8
How about this way? The tree-sitter-r changed some code to using stdc++ recently.
gcc ./src/parser.c ./src/scanner.cc -lstdc++ -fPIC -I./ -I./src/ -I./src/tree_sitter --shared -o r.so
Yes. that seems to have done the trick. I must apologize , I did see that note at the end of your instructions, but I had thought that it was specific to windows - since it referred to r.dll and came after that section. I should really have adapted it and tried it first. Thanks again
I'll update the README
Hi,
When I attempt to install
tree-sitter-ess-r
viause-package
, I get the following:.... undefined symbol: tree_sitter_r_external_scanner_create"
If I install via
M-x package-install
, it installs, but then I get the same error when attempting to do something like:M-x tree-sitter-ess-r-using-r-faces
Any thoughts would be most welcome.