Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py

changeset 4503
d68dcbe1deb3
parent 4235
81278aff6af9
child 4631
5c1a96925da4
equal deleted inserted replaced
4502:76f2b46437a6 4503:d68dcbe1deb3
26 connect directly to the background service. 26 connect directly to the background service.
27 27
28 @signal syntaxChecked(str, dict) emitted when the syntax check was done for 28 @signal syntaxChecked(str, dict) emitted when the syntax check was done for
29 one file 29 one file
30 @signal batchFinished() emitted when a syntax check batch is done 30 @signal batchFinished() emitted when a syntax check batch is done
31 @signal error(str, str) emitted in case of an error
31 """ 32 """
32 syntaxChecked = pyqtSignal(str, dict) 33 syntaxChecked = pyqtSignal(str, dict)
33 batchFinished = pyqtSignal() 34 batchFinished = pyqtSignal()
35 error = pyqtSignal(str, str)
34 36
35 def __init__(self): 37 def __init__(self):
36 """ 38 """
37 Constructor 39 Constructor
38 """ 40 """
181 Private slot handling service errors. 183 Private slot handling service errors.
182 184
183 @param fn file name (string) 185 @param fn file name (string)
184 @param msg message text (string) 186 @param msg message text (string)
185 """ 187 """
186 self.syntaxChecked.emit(fn, {'warnings': [(fn, 1, 0, '', msg)]}) 188 self.error.emit(fn, msg)
187 189
188 def serviceErrorPy2(self, fx, lang, fn, msg): 190 def serviceErrorPy2(self, fx, lang, fn, msg):
189 """ 191 """
190 Public method handling service errors for Python 2. 192 Public method handling service errors for Python 2.
191 193

eric ide

mercurial