From 76715bd94cb1fa3bfbef51c3e0d97573848fd3a6 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 28 Jul 2012 12:06:59 -0700 Subject: [PATCH] Posting vim message when no clang candidates --- python/ycm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/ycm.py b/python/ycm.py index 61ccabcd..db4a73b8 100644 --- a/python/ycm.py +++ b/python/ycm.py @@ -170,7 +170,10 @@ class ClangCompleter( Completer ): def CandidatesFromStoredRequest( self ): if not self.future: return [] - return [ CompletionDataToDict( x ) for x in self.future.GetResults() ] + results = [ CompletionDataToDict( x ) for x in self.future.GetResults() ] + if not results: + PostVimMessage( 'No completions found; errors in the file?' ) + return results def OnFileReadyToParse( self ):