PiRSquared17 / editra-plugins

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

compareToPrevious "TypeError: NoneType object is unsubscriptable" #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Got this from a user via the error reporter today,

#---- Traceback Info ----#
*** Mon Feb 11 02:12:12 2008
***Traceback (most recent call last): 
File 
"/home/danielp/.Editra/plugins/Projects-0.2-py2.5.egg/projects/ProjectPane.py",
line 1283, in lambda evt: self.onPopupSCDiff(),
File 
"/home/danielp/.Editra/plugins/Projects-0.2-py2.5.egg/projects/ProjectPane.py",
line 1493, in onPopupSCDiff self.compareToPrevious(node)
File 
"/home/danielp/.Editra/plugins/Projects-0.2-py2.5.egg/projects/ProjectPane.py",
line 1086, in compareToPrevious self.compareToPrevious(child)
File 
"/home/danielp/.Editra/plugins/Projects-0.2-py2.5.egg/projects/ProjectPane.py",
line 1086, in compareToPrevious self.compareToPrevious(child)
File 
"/home/danielp/.Editra/plugins/Projects-0.2-py2.5.egg/projects/ProjectPane.py",
line 1082, in compareToPrevious path = self.tree.GetPyData(node)[path]
TypeError: NoneType object is unsubscriptable

Not sure if it is related but while working on adding bazaar support I noticed 
an issue that I 
haven't tracked down yet where if the 'fetch' command returned an empty string 
it would raise 
errors.

i.e
Add an empty file to source control and check it in
make some changes to the file
try to do a diff (compare to previous) on the file

When doing this I get an exception with Bazaar, and an error dialog with CVS.

Cody

Original issue reported on code.google.com by CodyPrec...@gmail.com on 11 Feb 2008 at 1:30

GoogleCodeExporter commented 9 years ago
Without know what the state of the file system was, it's hard to say what the 
problem was.  It's looking at a 
directory node and getting the path information from the node's data 
dictionary.  For some reason, this data 
dictionary doesn't exist.  I put in a fix to simply ignore nodes that don't 
have data dictionaries.

Original comment by Kevin.Da...@gmail.com on 11 Feb 2008 at 3:16

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

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