rust-lang / rust-lang/rust-mode

Unable to get tree sitter to work

Open
#568 4 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.