#NEWLINE# @ classmethod #NEWLINE# def gen_loclist( cls , fpath , bufnr ) : #NEWLINE# #INDENT# if ( not cls . filter_file ( fpath ) ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# if ( not exe_exist ( cls . checker ) ) : #NEWLINE# #INDENT# logging . warn ( '{} not exist' . format ( cmd_args . checker ) ) #NEWLINE# return [ ] #NEWLINE# #UNINDENT# if ( not os . path . exists ( fpath ) ) : #NEWLINE# #INDENT# logging . warn ( '{} not exist' . format ( fpath ) ) #NEWLINE# return [ ] #NEWLINE# #UNINDENT# cmd_args = shlex . split ( cls . cmd ( os . path . basename ( fpath ) ) ) #NEWLINE# res = subprocess . Popen ( cmd_args , cwd = os . path . dirname ( fpath ) , stdout = subprocess . PIPE , stderr = subprocess . PIPE , close_fds = True ) #NEWLINE# out = res . communicate ( ) #NEWLINE# err_lines = '\n' . join ( out ) . strip ( ) . replace ( '\r' , '' ) . split ( '\n' ) #NEWLINE# loclists = cls . parse_loclist ( err_lines , bufnr ) #NEWLINE# return loclists