Redcar crashes during load if recent directories are missing
Reported by Stuart Ellis | May 4th, 2010 @ 10:39 AM
Redcar 0.3.5 crashes if a recently used directory no longer exists (observed on XP Pro SP2):
Redcar 0.3.5 ( i386-mingw32 )
java -Xmx500m -Xss1024k -Djruby.memory.max=500m
-Djruby.stack.max=1024k -cp "C:
/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/lib/jruby-complete-1.4.0.jar"
org.jrub y.Main
"C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/lib/redcar/../../bin/redcar
" --no-sub-jruby Redcar 0.3.5 ( java )
loading win32/swt
loading plugins took 2.89
EditViewSWT.start took 1.219s
initializing gui took 0.031s
C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/plugins/project/lib/project.rb:26:in
initialize': Not a directory: C:/Documents and Settings/me/My
Documents/missing-dir (RuntimeError)
from C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/plugins/project/lib/pro
ject/manager.rb:120:in new'<br/>
from C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/plugins/project/lib/pro
ject/manager.rb:120:in
open_project_for_path'<br/>
from C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/plugins/project/lib/pro
ject/manager.rb:187:in
restore_last_session'<br/>
from C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/plugins/project/lib/pro
ject/manager.rb:24:in start'<br/>
from C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/plugins/redcar/redcar.r
b:865:in start'<br/>
from C:/Ruby/lib/ruby/gems/1.8/gems/redcar-0.3.5/lib/redcar/../../bin/re
dcar:22
To reproduce:
- Open Redcar
- Use a directory
- Close Redcar
- Delete directory
- Load Redcar again
Comments and changes to this ticket
-
Daniel Lucraft May 6th, 2010 @ 11:23 AM
- State changed from new to open
Good catch, thanks. More than fixing it, we should figure out how to make Redcar robust to crashes of this type.
-
Daniel Lucraft June 5th, 2010 @ 11:29 AM
- State changed from open to resolved
This is fixed in HEAD.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A programmer's text editor for Gnome.