emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
827 stars 74 forks source link

Fix error on NetBSD #256

Open 0-wiz-0 opened 1 year ago

0-wiz-0 commented 1 year ago

I'm running emacs from git, and I have tree-sitter-lang installed from MELPA (perhaps I don't need this any longer since emacs has native tree-sitter support now). From list-packages:

...
tree-sitter                    20220212.1632  installed             Incremental parsing system
...
tree-sitter-langs              20230622.719   installed             Grammar bundle for tree-sitter
...

Anyway, while upgrading packages I noticed:

Compiling file /home/wiz/.emacs.d/elpa/tree-sitter-langs-20230622.719/tree-sitter-langs.el at Fri Jun 23 21:37:44 2023
tree-sitter-langs.el:40:2: Error: Unsupported system-type berkeley-unix

Line 40 in that file is just

(require 'tree-sitter)

so I dug deeper and found the problematic code in this repository. I then tried to build it using GNU make and found another problem. The build now proceeds until cask is used, which I don't have installed. Please check if the diffs look sane and merge them if appropriate. Thanks!