jenndhemus / editra-plugins

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

Project Directory Error when name changed outside of plugin #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Change the name of a directory that is in the projects view
2. Try to expand the tree node for it
3.

What is the expected output? What do you see instead?
I would expect that the project directory would sync with the file system or 
simply remove the 
directory from the listing. Instead I get the following traceback.

*** Wed Nov 28 07:37:34 2007 ***
Traceback (most recent call last):
  File "build/bdist.macosx-10.3-fat/egg/projects/ProjectPane.py", line 612, in OnItemExpanded
OSError: [Errno 2] No such file or directory: 
'/Users/cody/Desktop/Python/wx_stuff/wxPython'

Original issue reported on code.google.com by CodyPrec...@gmail.com on 28 Nov 2007 at 1:41

GoogleCodeExporter commented 8 years ago
I made a change so that it at least won't traceback at the moment.  Project 
directories are handled a bit 
differently than directories within a project.  They don't get synchronized 
because it's really the parent directory 
that does the synchronization.  Since a project directory doesn't have a parent 
in the tree view, it doesn't get 
synchronized.  I'll leave this defect open in case I think of a more elegant 
way of dealing with this situation.

Original comment by Kevin.Da...@gmail.com on 4 Dec 2007 at 4:09

GoogleCodeExporter commented 8 years ago
Thanks,

That fixes the problem that occurs when clicking on the project folder, when it 
expands however there is 
another empty node inside of it and when clicking on that, I get the following 
traceback

*** Thu Dec  6 17:35:44 2007 ***
Traceback (most recent call last):
  File "build/bdist.macosx-10.3-fat/egg/projects/ProjectPane.py", line 611, in OnItemExpanded
    path = self.tree.GetPyData(parent)['path']
TypeError: 'NoneType' object is unsubscriptable

Would it be possible that when clicking on the project directory to simply 
check if it still exists and if not then 
block the expansion from happening, then prompt a message dialog stating the 
problem and perhaps 
suggests to remove the node from the project list.

Also if the directory was removed or renamed, it still shows up in the tree on 
the next program launch. Maybe 
when loading the config verify that each path exists and remove it from the 
config before adding it to the 
tree.

Original comment by CodyPrec...@gmail.com on 7 Dec 2007 at 12:56

GoogleCodeExporter commented 8 years ago
Made some changes that should solve this issue today.

Original comment by CodyPrec...@gmail.com on 4 Jul 2008 at 11:48

GoogleCodeExporter commented 8 years ago
Move old 'fixed' issues to verified

Original comment by CodyPrec...@gmail.com on 3 Feb 2009 at 8:18