Fri, 15 Apr 2011 18:53:04 +0200
Fixed an issue with automatic syntax check of an unsaved file.
Debugger/DebugServer.py | file | annotate | diff | comparison | revisions | |
QScintilla/Editor.py | file | annotate | diff | comparison | revisions |
--- a/Debugger/DebugServer.py Fri Apr 15 18:23:15 2011 +0200 +++ b/Debugger/DebugServer.py Fri Apr 15 18:53:04 2011 +0200 @@ -116,8 +116,8 @@ utPrepared = pyqtSignal(int, str, str) utStartTest = pyqtSignal(str, str) utStopTest = pyqtSignal() - utTestFailed = pyqtSignal(str, str) - utTestErrored = pyqtSignal(str, str) + utTestFailed = pyqtSignal(str, list) + utTestErrored = pyqtSignal(str, list) utFinished = pyqtSignal() passiveDebugStarted = pyqtSignal(str, bool) @@ -1228,7 +1228,7 @@ Public method to process the client test failed info. @param testname name of the test (string) - @param traceback lines of traceback info (string) + @param traceback lines of traceback info (list of strings) """ self.utTestFailed.emit(testname, traceback) @@ -1237,7 +1237,7 @@ Public method to process the client test errored info. @param testname name of the test (string) - @param traceback lines of traceback info (string) + @param traceback lines of traceback info (list of strings) """ self.utTestErrored.emit(testname, traceback)
--- a/QScintilla/Editor.py Fri Apr 15 18:23:15 2011 +0200 +++ b/QScintilla/Editor.py Fri Apr 15 18:53:04 2011 +0200 @@ -4219,7 +4219,7 @@ self.clearFlakesWarnings() if self.isPy3File(): syntaxError, _fn, errorline, errorindex, _code, _error = \ - Utilities.compile(self.fileName, self.text()) + Utilities.compile(self.fileName or "(Unnamed)", self.text()) if syntaxError: self.toggleSyntaxError( int(errorline), int(errorindex), True, _error) @@ -4249,7 +4249,7 @@ else: msg = err.msg self.toggleSyntaxError(err.lineno, True, msg) - elif self.isPy2File(): + elif self.isPy2File() and self.fileName is not None: syntaxError, _fn, errorline, errorindex, _code, _error, \ warnings = Utilities.py2compile( self.fileName,