#510 open
Mohamed Jadelrab

Opening a read only directory

Reported by Mohamed Jadelrab | April 25th, 2011 @ 12:04 AM

When I try to open a read only directory I got nothing as a response from redcar , when I checked the terminal I saw that it raises an error as following :

Error in command Redcar::Project::DirectoryOpenCommand
Errno::EACCES: Permission denied - /var/lib/gems/1.8/gems/redcar-0.11/plugins/textmate/.redcar
file:/home/jadelrab/.redcar/assets/jruby-complete-1.5.3.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
file:/home/jadelrab/.redcar/assets/jruby-complete-1.5.3.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
file:/home/jadelrab/.redcar/assets/jruby-complete-1.5.3.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
file:/home/jadelrab/.redcar/assets/jruby-complete-1.5.3.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
file:/home/jadelrab/.redcar/assets/jruby-complete-1.5.3.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:201:in `each'
file:/home/jadelrab/.redcar/assets/jruby-complete-1.5.3.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/project/lib/project.rb:246:in `config_dir'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/project/lib/project.rb:97:in `lock_filename'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/project/lib/project.rb:101:in `locked?'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/project/lib/project/manager.rb:262:in `open_project_for_path'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/project/lib/project/commands.rb:221:in `execute'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/application/lib/application/command/executor.rb:28:in `execute'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/application/lib/application/command.rb:84:in `run'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/application/lib/application/menu/item.rb:45:in `selected'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/application_swt/lib/application_swt/menu.rb:133:in `widgetSelected'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/swt/lib/swt/event_loop.rb:13:in `start'
/var/lib/gems/1.8/gems/redcar-0.11/plugins/core/lib/core/gui.rb:37:in `start'
/var/lib/gems/1.8/gems/redcar-0.11/lib/redcar.rb:188:in `pump'
/var/lib/gems/1.8/gems/redcar-0.11/bin/redcar:35

probably this because it needs to write to the directory .. so either display a nice error message or disable the writing on this directory ..

I'm on ubuntu 10.10 with Redcar 0.11

Comments and changes to this ticket

  • Daniel Lucraft

    Daniel Lucraft May 5th, 2011 @ 10:59 PM

    • State changed from “new” to “open”

    Thanks for the report. Probably we will show an error message first, because there are quite a few things that assume the .redcar directory exists. But we should go through them all and make them work when it doesn't.

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.

New-ticket Create new ticket

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.

People watching this ticket

Pages