4992 @param line number where the error occured (int) |
4992 @param line number where the error occured (int) |
4993 @param index the column where the error occured (int) |
4993 @param index the column where the error occured (int) |
4994 @param code the part of the code where the error occured (str) |
4994 @param code the part of the code where the error occured (str) |
4995 @param error the name of the error (str) |
4995 @param error the name of the error (str) |
4996 @param warnings a list of strings containing the warnings |
4996 @param warnings a list of strings containing the warnings |
4997 (marker, file name, line number, message) |
4997 (marker, file name, line number, col, message) |
4998 """ |
4998 """ |
4999 # Check if it's the requested file, otherwise ignore signal |
4999 # Check if it's the requested file, otherwise ignore signal |
5000 if fn != self.fileName and ( |
5000 if fn != self.fileName and ( |
5001 self.fileName is not None or fn != "(Unnamed)"): |
5001 self.fileName is not None or fn != "(Unnamed)"): |
5002 return |
5002 return |
5005 self.clearFlakesWarnings() |
5005 self.clearFlakesWarnings() |
5006 |
5006 |
5007 if nok: |
5007 if nok: |
5008 self.toggleSyntaxError(line, index, True, error) |
5008 self.toggleSyntaxError(line, index, True, error) |
5009 else: |
5009 else: |
5010 for warning in warnings: |
5010 for marker, _fn, lineno, col, msg in warnings: |
5011 self.toggleWarning(warning[2], True, warning[3]) |
5011 self.toggleWarning(lineno, True, msg) |
5012 |
5012 |
5013 def __initOnlineSyntaxCheck(self): |
5013 def __initOnlineSyntaxCheck(self): |
5014 """ |
5014 """ |
5015 Private slot to initialize the online syntax check. |
5015 Private slot to initialize the online syntax check. |
5016 """ |
5016 """ |