tonsky / Clojure-Sublimed

Clojure support for Sublime Text 4
MIT License
359 stars 22 forks source link

Wrong highlight of the source of error. #79

Closed DeLaGuardo closed 1 year ago

DeLaGuardo commented 1 year ago

It looks like a corner case, btw. If there is an error after evaling the defprotocol form with a problem, e.g. var mapped to the java interface, Sublime highlights only the comment placed above protocol declaration and not the source of the Exception.

image

Code to reproduce:

;; Readable is already mapped to java interface java.lang.Readable
(defprotocol Readable
  (read [this search-clause]))
tonsky commented 1 year ago

Might be Clojure problem (reporting wrong line number) or nREPL or mine :) Will look into it, thanks

tonsky commented 1 year ago

Should be fixed in 6daeabc68af9d6b7492d2d59a6a63241a641b7f5

Screenshot 2023-01-04 at 20 50 04