Auto-refresh ENSIME error buffer
Asked Answered
H

1

7

Is there a way I can make ENSIME errors buffer (the one invoked with C-c C-v e) to automatically refresh whenever I save my Scala source file?

Hullabaloo answered 4/10, 2012 at 10:51 Comment(0)
O
0

Try to add following code after loading of ensime:

(add-hook 'ensime-source-buffer-saved-hook 
          'ensime-show-all-errors-and-warnings)
Oraorabel answered 29/12, 2012 at 14:18 Comment(1)
Actually, in my tests this shows the current errors aware by SBT. So if I introduce an error in my code and save, SBT takes 2-3 seconds to figure it out, but ensime has already opened the "error" buffer, which shows "0 errors, 0 warnings". In plain words, this needs an async notification from SBT when the compilation is completed...Hurried

© 2022 - 2024 — McMap. All rights reserved.