code-google-com / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

[projects] traceback after folder rename #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. added a new folder under editra-plugins/pytools/pytools
2. close and re-open editra
3. renamed the new folder from 'Untitled Folder' to 'tests'
4. got the following traceback:
  *** Sat Feb 07 23:34:58 2009 ***
  Traceback (most recent call last):
    File "build\bdist.win32\egg\projects\ProjectPane.py", line 653,
    in OnSyncNode
    node = children[item]
    KeyError: u'Untitled Folder'

5. clicked on the renamed folder ('tests'): appcrash

Original issue reported on code.google.com by rudi.pet...@gmail.com on 7 Feb 2009 at 10:39

GoogleCodeExporter commented 9 years ago
No need to do all those steps: just rename a folder or a file and it happens 
(testing
on Vista)

Original comment by rudi.pet...@gmail.com on 7 Feb 2009 at 10:45

GoogleCodeExporter commented 9 years ago
Should be fixed now.

Was likely caused by the changes for the other node sync event fixes.

p.s) I also (blindly) integrated your new trash module the other day, is it 
working
correctly (haven't tested on windows yet.).

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 7 Feb 2009 at 10:58

GoogleCodeExporter commented 9 years ago
Thanks, now it works.

About trash module: I just fixed a few minutes ago an easy bug but (it was 
reporting
non existent errors because the error code was set to True instead of False)

Original comment by rudi.pet...@gmail.com on 7 Feb 2009 at 11:20

GoogleCodeExporter commented 9 years ago
Great thanks,

I am hoping to release another updated version of the plugin tonight for the
Mercurial support I added the other week, and for the delete crash fixes.

cody

Original comment by CodyPrec...@gmail.com on 7 Feb 2009 at 11:32

GoogleCodeExporter commented 9 years ago
I'm making a small change to _win_trash. Just changing the c struct so that it 
uses
ctypes.wintypes constants, e.g. wintypes.LPCWSTR instead of c_wchar_p (I didn't 
know
them). Should I commit it? 

Original comment by rudi.pet...@gmail.com on 7 Feb 2009 at 11:57

GoogleCodeExporter commented 9 years ago
Sure go ahead. I am still working on one more feature that I want to finish up 
before
making the release.

cody

Original comment by CodyPrec...@gmail.com on 8 Feb 2009 at 12:01