#13 new
Piotr Usewicz

BasePath plugin is missing the mode on execution

Reported by Piotr Usewicz | January 1st, 2009 @ 04:51 PM

For some reason, when using basepath filter, I get an error:


^Cpiotr@Hiigara ~/P/layer22.com> webby autobuild
[00:48:29]  INFO: starting autobuild (Ctrl-C to stop)
[00:48:29]  INFO: running the build
       update  output/about.html
[00:48:29] ERROR: while rendering page 'content/about.html'
[00:48:29] FATAL: <NoMethodError> undefined method `downcase' for nil:NilClass
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters/basepath.rb:46:in `initialize'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters/basepath.rb:90:in `new'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters/basepath.rb:90
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters.rb:70:in `call'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters.rb:70:in `_handle'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters.rb:52:in `start_for'
	/Library/Ruby/Gems/1.8/gems/haml-2.0.6/lib/haml/engine.rb:159:in `inject'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters.rb:47:in `each'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters.rb:47:in `inject'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters.rb:47:in `start_for'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/filters.rb:14:in `process'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:258:in `_render_layout_for'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:311:in `_track_rendering'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:257:in `_render_layout_for'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:229:in `_layout_page'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:311:in `_track_rendering'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:228:in `_layout_page'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:43:in `write'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:42:in `open'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:42:in `write'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:38:in `loop'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/renderer.rb:38:in `write'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/builder.rb:149:in `run'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/resources/db.rb:55:in `each'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/resources/db.rb:55:in `each'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/resources/db.rb:54:in `each'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/builder.rb:134:in `run'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/auto_builder.rb:69:in `update'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:529:in `send'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:529:in `notify_observers'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:528:in `each'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:528:in `notify_observers'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:449:in `run'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:351:in `__send__'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:351:in `start'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:351:in `initialize'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:351:in `new'
	/Library/Ruby/Gems/1.8/gems/directory_watcher-1.1.2/lib/directory_watcher.rb:351:in `start'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/auto_builder.rb:88:in `run'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/auto_builder.rb:23:in `run'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/tasks/build.rake:18
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
	/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/apps/main.rb:235:in `standard_exception_handling'
	/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/apps/main.rb:115:in `rake'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/apps/main.rb:33:in `run'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/lib/webby/apps/main.rb:12:in `run'
	/Library/Ruby/Gems/1.8/gems/TwP-webby-0.9.4/bin/webby:39
	/usr/bin/webby:19:in `load'
	/usr/bin/webby:19

No comments found

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 ยป

Static website generate (ASCII Alchemy)

People watching this ticket

Pages