Clicking menu View -> Current Document Outline causes TypeError and does not open document outline
Reported by Fris | September 26th, 2011 @ 11:04 PM | in 0.12 (closed)
Upon clicking the menu item View -> Current Document
Outline
, an error occurs and the document outline does not
open.
The installation is on Windows 7, x64. This is a first-time installation of Redcar on the system.
Note that Ruby 1.9.2-p290 is installed in the same system (it was installed via railsinstaller.org)
Steps:
- Open Redcar
- Create new file
- Do not type anything into file
- Click View -> Current Document Outline
Version details:
About: Redcar
Version: 0.11
Ruby Version: 1.8.7
Jruby version: 1.5.3
Redcar.environment: user
Error and stack trace:
Error in command Redcar::OutlineView::OpenOutlineViewCommand
TypeError: can't convert nil into String
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/declarations/lib/declarations/file.rb:17:in `load'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/declarations/lib/declarations/file.rb:11:in `initialize'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/outline_view/lib/outline_view.rb:42:in `new'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/outline_view/lib/outline_view.rb:42:in `update_list'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/outline_view_swt/lib/outline_view_swt.rb:52:in `update_list_sync'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/outline_view_swt/lib/outline_view_swt.rb:29:in `createDialogArea'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/dialogs/no_buttons_dialog.rb:17:in `createContents'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/dialogs/filter_list_dialog_controller.rb:124:in `open'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/dialogs/filter_list_dialog_controller.rb:75:in `to_proc'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `call'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `map'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:96:in `notify_listeners'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/dialogs/filter_list_dialog.rb:16:in `open'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/outline_view/lib/outline_view/commands.rb:8:in `execute'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/command/executor.rb:28:in `execute'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/command.rb:84:in `run'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/menu/item.rb:45:in `selected'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/menu.rb:133:in `widgetSelected'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/swt/lib/swt/event_loop.rb:13:in `start'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/gui.rb:37:in `start'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/lib/redcar.rb:188:in `pump'
.../Ruby1.9.2/lib/ruby/gems/1.9.1/gems/redcar-0.11/bin/redcar:35
Comments and changes to this ticket
-
delisa September 27th, 2011 @ 04:13 PM
- State changed from new to open
- Milestone set to 0.12
- Milestone order changed from 197736 to 0
-
delisa September 27th, 2011 @ 04:14 PM
- Assigned user set to delisa
-
Peter Shoukry October 9th, 2011 @ 03:07 PM
I have committed the fix and made a pull request on github.
-
delisa November 6th, 2011 @ 10:00 PM
- State changed from open to resolved
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.