[pywin32-bugs] [ pywin32-Bugs-1037629 ] Framework exception on file save after confirmation
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-10-13 15:25:45
|
Bugs item #1037629, was opened at 2004-09-30 12:11 Message generated for change (Comment added) made by kxroberto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1037629&group_id=78018 Category: pythonwin Group: None Status: Open Resolution: Works For Me Priority: 9 Submitted By: Robert Kiendl (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: Framework exception on file save after confirmation Initial Comment: b201 - See the traceback below: after that the file is saved once, but when editing more in the editor window, the document-changed-flag is always OFF (toolbar-icon-disksave grey), thus no more saving is possible/or requested !! I regularly loose code by this! >>> Traceback (most recent call last): File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\framework\editor\document.py", line 83, in OnSaveDocument self._DocumentStateChanged() File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\framework\editor\document.py", line 175, in _DocumentStateChanged pywin.debugger.currentDebugger.UpdateDocumentLineStates(self) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 880, in UpdateDocumentLineStates doc.MarkerDeleteAll( MARKER_BREAKPOINT ) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\document.py", line 117, in MarkerDeleteAll self.GetEditorView().SCIMarkerDeleteAll(marker) AttributeError: SCIMarkerDeleteAll win32ui: OnSaveDocument() virtual handler (<bound method SyntEditDocument.OnSaveDocument of <pywin.framework.editor.color.coloreditor.SyntEditDocument instance at 0x01333878>>) raised an exception ---------------------------------------------------------------------- >Comment By: Robert Kiendl (kxroberto) Date: 2004-10-13 17:25 Message: Logged In: YES user_id=972995 don|t know if b203 solves it meanwhile. Yet I reproduce the problem most easyly when simply editing a file, CtrlF4 to try close, YES => exception and the changed flag is no more tracked. >>> >>> Traceback (most recent call last): File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\framework\editor\document.py", line 83, in OnSaveDocument self._DocumentStateChanged() File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\framework\editor\document.py", line 175, in _DocumentStateChanged pywin.debugger.currentDebugger.UpdateDocumentLineStates(self) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 880, in UpdateDocumentLineStates doc.MarkerDeleteAll( MARKER_BREAKPOINT ) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\document.py", line 117, in MarkerDeleteAll self.GetEditorView().SCIMarkerDeleteAll(marker) AttributeError: SCIMarkerDeleteAll win32ui: OnSaveDocument() virtual handler (<bound method SyntEditDocument.OnSaveDocument of <pywin.framework.editor.color.coloreditor.SyntEditDocument instance at 0x01134A80>>) raised an exception >>> ---------------------------------------------------------------------- Comment By: Robert Kiendl (kxroberto) Date: 2004-10-08 11:56 Message: Logged In: YES user_id=972995 I found how to reproduce (& getting lots of exception going on): - open clean pywin - open a .py file / no more editing (dont set save-request flag) - set breakpoint somewhere (on top) - F5-run into breakpoint - when debugger stops: in that line editi something (e.g. enter SPACEs) - then immediately Ctrl-F4 to try close-window - on Save-Confirm: Cancel - ==> exceptions like above going on - Shift - F5 to stop debugging - Save file once - Edit more in the file - ===> no more change of save-request-flag (grey save toolbar button) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2004-10-08 08:26 Message: Logged In: YES user_id=14198 That is very strange, and I certainly can't reproduce it. That method does exist (in 'control.py' in that same directory) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1037629&group_id=78018 |