Skip to content

Commit

Permalink
feat: only report message if other backends aren't running
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay committed Nov 3, 2024
1 parent 27a2d1b commit 470aecc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parinfer-rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,13 @@ CHANGES."
parinfer-rust--in-debug)
(parinfer-rust-debug "./parinfer-rust-debug.txt" options answer))
(setq parinfer-rust--errors (list parinfer-error))
(if parinfer-error
;; If we have an error and are not being reported by a backend, warn the user
(if (and parinfer-error
(not (memq 'parinfer-rust flycheck--automatically-enabled-checkers))
(not (memq 'parinfer-rust-flymake (flymake-reporting-backends))))
(message "Problem on line %s: %s"
(plist-get parinfer-error :line_no)
(plist-get parinfer-error :message)) ;; TODO - Handler errors
(plist-get parinfer-error :message))
;; This stops Emacs from flickering when scrolling
(if (not (string-equal parinfer-rust--previous-buffer-text replacement-string))
(save-mark-and-excursion
Expand Down

0 comments on commit 470aecc

Please sign in to comment.