rust-lang / rust-lang/rust-mode
Unable to get tree sitter to work
Nobody has claimed this yet.
- Dominant language
- Emacs Lisp
- Stars
- 1.3k
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Description
Running Emacs 30.1 on MacOS 15.1. This is my init.el file
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
(use-package rust-mode
:init
(setq rust-mode-treesitter-derive t))
Upon opening a rust buffer, the Warning buffer shows
Warning (treesit): Cannot activate tree-sitter, because language grammar for rust is unavailable (version-mismatch): 15
I can confirm that the language object is present at ~/.emacs.d/tree-sitter
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning with Emacs 30.1 on macOS 15.1 using the shown init.el and rust-mode configuration. Inspect the language object under ~/.emacs.d/tree-sitter and the tree-sitter activation path for the reported version-mismatch: 15. Done means opening a Rust buffer activates tree-sitter without the unavailable-grammar warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs, rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100