tree-edit
tree-edit copied to clipboard
`dash` not found when attempting to generator new language files
trafficstars
Hey! tree-edit is fantastic. I've wanted common structural editing for so long, and Treesitter seems to be the way forward.
Elixir is the primary language I use at work, so I thought that I would try and add it. I'm stuck at generating the required files though as the Emacs dash package isn't being found.
I added it to the Cask file.
diff --git a/Cask b/Cask
index 662a999..6167461 100644
--- a/Cask
+++ b/Cask
@@ -10,4 +10,5 @@
;; relies on tree-edit (which causes a dependency error). manually declaring
;; the deps. instead.
(depends-on "evil")
+ (depends-on "dash")
(depends-on "avy"))
Shell output:
jesse@lima-default:~/src/github.com/ethan-leba/tree-edit$ ~/.emacs.d/elpa/cask-0.8.9pre/bin/cask
Loading package information... done
Package operations: 12 installs, 0 removals
- Installing [ 1/12] s (0.0.0)... done
- Installing [ 2/12] reazon (0.4.0)... done
- Installing [ 3/12] tree-sitter-langs (0.10.0)... done
- Installing [ 4/12] tsc (0.15.0)... already present
- Installing [ 5/12] tree-sitter (0.15.0)... already present
- Installing [ 6/12] avy (latest)... done
- Installing [ 7/12] dash (latest)... done
- Installing [ 8/12] evil (latest)... done
- Installing [ 9/12] buttercup (latest)... done
- Installing [10/12] emacs (24.1)... already present
- Installing [11/12] cl-lib (0.5)... already present
- Installing [12/12] goto-chg (1.6)... already present
jesse@lima-default:~/src/github.com/ethan-leba/tree-edit$ ~/.emacs.d/elpa/cask-0.8.9pre/bin/cask emacs --script dev/tree-edit-generate-grammars.el ~/src/github.com/emacs-tree-sitter/tree-sitter-langs/repos/elixir/src/grammar.json elixir elixir-mode
Cannot open load file: No such file or directory, dash
I'm relatively new to Emacs, so there may very well be something silly that I'm missing. I tried this both on macOS and then on a Ubuntu VM.
Update: It's not just dash, it's just that that it's in the first require call in dev/tree-edit-generate-grammars.el.