Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ensime_shared/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def display_notes(self, notes):
"""Renders "notes" reported by ENSIME, such as typecheck errors."""

# TODO: this can probably be a cached property like isneovim
hassyntastic = bool(self._vim.eval('exists(":SyntasticCheck")'))
hassyntastic = bool(int(self._vim.eval('exists(":SyntasticCheck")')))

if hassyntastic:
self.__display_notes_with_syntastic(notes)
Expand Down Expand Up @@ -395,7 +395,7 @@ def is_note_correct(note): # Server bug? See #200

def __display_notes(self, notes):
current_file = self.path()
highlight_cmd = r"matchadd('EnErrorStyle', '\\%{}l\\%>{}c\\%<{}c')"
highlight_cmd = r"matchadd('EnErrorStyle', '\%{}l\%>{}c\%<{}c')"

for note in notes:
l = note['line']
Expand Down
2 changes: 2 additions & 0 deletions ensime_shared/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def handle_typecheck_complete(self, call_id, payload):

Calls editor to display/highlight line notes and clears notes buffer.
"""
self.log.debug('handle_typecheck_complete: in')
if not self.currently_buffering_typechecks:
self.log.debug('Completed typecheck was not requested by user, not displaying notes')
return

self.editor.display_notes(self.buffered_notes)
Expand Down