You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugger entered--Lisp error: (file-missing "Searching for program" "No such file or directory" "rust-analyzer")
make-process(:name "EGLOT (spec-protect/(rustic-mode))" :command ("rust-analyzer") :connection-type pipe :coding utf-8-emacs-unix :noquery t :stderr # :file-handler t)
#f(compiled-function () #)()
#f(compiled-function (conn slots) #)(# (:name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #)))
apply(#f(compiled-function (conn slots) #) (# (:name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #))))
#f(compiled-function (&rest args) #)(# (:name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #)))
apply(#f(compiled-function (&rest args) #) # (:name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #)))
initialize-instance(# (:name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #)))
#f(compiled-function (class &rest slots) "Default constructor for CLASS `eieio-default-superclass'.\nSLOTS are the initialization slots used by `initialize-instance'.\nThis static method is called when an object is constructed.\nIt allocates the vector used to represent an EIEIO object, and then\ncalls `initialize-instance' on that object." #)(eglot-rust-analyzer :name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #))
apply(#f(compiled-function (class &rest slots) "Default constructor for CLASS `eieio-default-superclass'.\nSLOTS are the initialization slots used by `initialize-instance'.\nThis static method is called when an object is constructed.\nIt allocates the vector used to represent an EIEIO object, and then\ncalls `initialize-instance' on that object." #) eglot-rust-analyzer (:name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #)))
make-instance(eglot-rust-analyzer :name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown :process #f(compiled-function () #))
apply(make-instance eglot-rust-analyzer :name "EGLOT (spec-protect/(rustic-mode))" :events-buffer-config (:size 2000000 :format full) :notification-dispatcher #f(compiled-function (server method params) #) :request-dispatcher #f(compiled-function (server method params) #) :on-shutdown eglot--on-shutdown (:process #f(compiled-function () #)))
eglot--connect((rustic-mode) (vc Git "~/s/spec-protect/") eglot-rust-analyzer ("rust-analyzer") ("rust"))
apply(eglot--connect ((rustic-mode) (vc Git "~/s/spec-protect/") eglot-rust-analyzer ("rust-analyzer") ("rust")))
#f(compiled-function () #)()
citre--eglot-after-jump()
apply(citre--eglot-after-jump nil)
citre--call-backend-fn(eglot after-jump-fn)
citre-backend-after-jump(eglot)
citre-peek-through()
funcall-interactively(citre-peek-through)
command-execute(citre-peek-through)
To Reproduce
Steps to reproduce:
Ensure you have rust-analyzer installed, and then run $ emacs -Q
Evaluate the following in the scratch buffer:
(add-to-list'package-archives
'("melpa-stable"."https://stable.melpa.org/packages/") t)
(use-package citre :ensuret)
(use-package rust-mode :ensuret)
;; only necessary for me because the rust project is a nix project w/an isolated rust-analyzer, not;; necessary if you have it installed globally
(add-to-list'exec-path"/nix/store/m8db0w1l880a5i8lxymjf34i7xd6viyg-rust-analyzer-2024-04-29/bin/")
Navigate to any rust file, and run citre-peek on an identifier. From there, run citre-peek-through and select a target. Any target results in the error above.
System information
OS: NixOS 24.05
Emacs version: 31.0.50
Are you using the latest version of Citre on master branch: no, using the version on melpa stable
Additional context
n/a
The text was updated successfully, but these errors were encountered:
I got some chance to play with rust. From what I see, rust analyzer spent some time building the cache, then all the xref and Citre commands works fine:
My guess is you didn't run M-x eglot before using Citre commands, or the building process isn't finished.
Oh no worries, I had forgotten about opening this, and I appreciate your looking into it. I resolved the issue some time ago, although I do not remember exactly what I did that fixed it.
It looks from my backtrace like that there may have been an issue in the peek window context of finding rust-analyzer, which in my environment is generally defined by a nix-shell activated by dotenv. It is quite possible that tidying up my envrc setup is what resolved the problem.
Describe the bug
When using citre-peek with the eglot backend, the initial
peek
works well, but subsequently usingcitre-peek-through
results in the following:Backtrace in the fold:
Backtrace
To Reproduce
Steps to reproduce:
Ensure you have
rust-analyzer
installed, and then run$ emacs -Q
Evaluate the following in the scratch buffer:
Navigate to any rust file, and run
citre-peek
on an identifier. From there, runcitre-peek-through
and select a target. Any target results in the error above.System information
Additional context
n/a
The text was updated successfully, but these errors were encountered: