jenndhemus / editra-plugins

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

I got the following error running the projects plugin on windows xp sp3 #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What Plugin does this relate to?

The projects plugin

What steps will reproduce the problem?
1. Install the plugin on windows xp and editra 0.3.38
2. Attempt to create a new project.
3. A folder can be created but when trying to expand it the error pops up.

What is the expected output? What do you see instead?

What version of Editra are you using? On what operating system?
0.3.38 on Windows XP sp3

Please provide any additional information below.

#---- Notes ----#
Please provide additional information about the crash here

I was testing out the Projects plugin in my XP workstation at work. It
allowed me to create a folder on my desktop but then when I tried to expand
it I got the following crash.

#---- System Information ----#
Editra Version: 0.3.38
Operating System: Windows XP (build 2600, Service Pack 3)
Python Version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32
bit (Intel)]
wxPython Version: 2.8.8.0 (msw-ansi)
wxPython Info: (__WXMSW__, wxMSW, ansi, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii  File=mbcs
wxPython Encoding: cp1252
System Architecture: 32bit 
Byte order: little
Frozen: False
#---- End System Information ----#
#---- Runtime Variables ----#
AALIASING=False
ALPHA=255
APPSPLASH=True
AUTO_COMP=True
AUTO_INDENT=True
BRACKETHL=True
BSUNINDENT=True
CHECKMOD=True
CHECKUPDATE=True
CODE_FOLD=True
DEFAULT=False
DEFAULT_LEX=Plain Text
DEFAULT_VIEW=Automatic
EDGE=80
EOL=Windows (\r\n)
FFILTER=0
FHIST_LVL=9
FONT1=Courier New,10
FONT2=Arial,10
GUIDES=True
HLCARETLINE=False
ICONS=Crystal
ICON_SZ=(16, 16)
INDENTWIDTH=4
ISBINARY=False
KEY_PROFILE=None
LANG=Default
Launch.Config={'postscript': ('gs2in32c', [('gswin32c', 'gswin32c')]),
'pike': ('pike', [('pike', 'pike')]), 'nsis': ('makensis', [('makensis',
'makensis')]), 'python': ('python', [('pylint', 'pylint'), ('python',
'python')]), 'handler': ('', []), 'boo': ('booi', [('booi', 'booi')]),
'tcl/tk': ('wish', [('wish', 'wish')]), 'perl': ('perl', [('perl',
'perl')]), 'lua': ('lua', [('lua', 'lua'), ('luac', 'luac')]), 'c shell':
('csh', [('csh', 'csh')]), 'ferite': ('ferite', [('ferite', 'ferite')]),
'ada': ('gcc -c', [('gcc -c', 'gcc -c')]), 'haskell': ('ghc --make', [('ghc
--make', 'ghc --make')]), 'php': ('php', [('php', 'php -f')]), 'ruby':
('ruby', [('ruby', 'ruby')]), 'korn shell': ('ksh', [('ksh', 'ksh')]),
'bash shell': ('bash', [('bash', 'bash')]), 'haxe': ('nekoc', [('neko',
'neko'), ('nekoc', 'nekoc')])}
Launch.Prefs={'defaultf': (0, 0, 0), 'defaultb': (255, 255, 255), 'infob':
(255, 255, 255), 'infof': (0, 0, 255), 'autoclear': False, 'errorb': (255,
255, 255), 'errorf': (255, 0, 0), 'warnb': (255, 255, 255), 'warnf': (255,
0, 0)}
MAXIMIZED=True
MODE=CODE
MYPROFILE=C:\Documents and Settings\elake\.Editra\profiles\default.ppb
OPEN_NW=False
PRINT_MODE=BLACK/WHITE
REPORTER=True
SAVE_POS=True
SAVE_SESSION=False
SESSION_KEY=elakeZ4V29VzqrG4=
SET_WPOS=True
SET_WSIZE=True
SHELF_ITEMS=[u'PyShell', u'Editra Log', u'Launch']
SHOW_EDGE=False
SHOW_EOL=False
SHOW_LN=True
SHOW_WS=False
STATBAR=True
SYNTAX=True
SYNTHEME=Default
TABICONS=True
TABWIDTH=4
THEME=DEFAULT
TOOLBAR=True
USETABS=False
VI_EMU=False
WRAP=True
WSIZE=(1448, 878)
FTYPES=['py', 'txt', 'ini', 'yaml', 'bash_history']
#---- End Runtime Variables ----#

#---- Traceback Info ----#
*** Mon Aug 11 10:19:02 2008 ***
Traceback (most recent call last):
  File
"c:\python25\lib\site-packages\editra\plugins\projects-0.6-py2.5.egg\projects\Pr
ojectPane.py",
line 733, in OnItemExpanding
    self.addDirectoryWatcher(parent)
  File
"c:\python25\lib\site-packages\editra\plugins\projects-0.6-py2.5.egg\projects\Pr
ojectPane.py",
line 1258, in addDirectoryWatcher
    data = self.tree.GetPyData(node)
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-ansi\wx\_controls.py",
line 5270, in GetItemPyData
    return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs)
PyAssertionError: C++ assertion "param" failed at
..\..\src\msw\treectrl.cpp(1083) in wxTreeCtrl::SetItemData(): failed to
change tree items data

#---- End Traceback Info ----#

Original issue reported on code.google.com by ericlake on 12 Aug 2008 at 1:17

GoogleCodeExporter commented 8 years ago
Checked in a fix for this. There are still some issues with the folder icon not 
being
updated properly afterwards but this can be ignored for now I think.

The error was because the windows tree ctrl doesn't like having 
SetItemHasChildren on
nodes that don't actually have any child nodes. Trying to expand it would cause 
the
exception followed by the tree ctrl being cleared of all nodes.

Fix was to check directory for contents before calling SetItemeHasChildren on
directory node.

Cody

Original comment by CodyPrec...@gmail.com on 16 Aug 2008 at 10:41

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

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