Oops, this upgrade breaks our site generation. :(
3.3.3 works, 3.3.5 breaks with the output below.
Any ideas?
If anyone wants to investigate, the git repo is public, here:
(master branch)
https://github.com/aeolusproject/aeolus-website
+ Justin
*********************************************************
$ rm -rf tmp output; nanoc co
Loading site data...
Compiling site...
create [0.00s] output/gsg/0.9.0/images/new_deployment.png
create [0.00s] output/gsg/0.9.0/images/thumbnails/new_deployment_thumb.png
create [0.00s] output/styles/subnav-pointer.png
create [0.00s] output/static-redmine/plugin_assets/redmine_backlogs.new/javascripts/jquery.jqplot/usage.txt
create [0.00s] output/gsg/0.9.0/images/initial_welcome_screen_user_options.png
create [0.00s] output/styles/navbarbg.png
create [0.00s] output/static-redmine/plugin_assets/redmine_backlogs.new/stylesheets/rb_default/images/ui-bg_highlight-soft_75_cccccc_1x100.png
create [0.00s] output/fonts/liberation_sans/Red Hat Liberation License.txt
create [0.00s] output/gsg/0.9.0/images/initial_welcome_screen_view.png
create [0.00s] output/static-redmine/images/bullet_toggle_minus.png
create [0.00s] output/static-redmine/images/task_todo.png
create [0.00s] output/static-redmine/plugin_assets/redmine_backlogs.new/javascripts/jquery.jqplot/plugins/jqplot.ohlcRenderer.js
create [0.00s] output/static-redmine/images/jstoolbar/bt_pre.png
create [0.00s] output/static-redmine/images/project_marker.png
create [0.00s] output/static-redmine/themes/alternate/stylesheets/application.css
create [0.00s] output/static-redmine/javascripts/calendar/calendar.js
create [0.00s] output/gsg/0.9.0/images/new_deployment_details.png
create [0.00s] output/static-redmine/stylesheets/jstoolbar.css
create [0.00s] output/static-redmine/images/milestone_late.png
create [0.00s] output/static-redmine/javascripts/jstoolbar/lang/jstoolbar-mn.js
create [0.00s] output/gsg/0.6.0/images/user_update_successful.png
create [0.00s] output/static-redmine/plugin_assets/redmine_backlogs.new/javascripts/jquery.jqplot/plugins/jqplot.barRenderer.min.js
create [0.00s] output/static-redmine/plugin_assets/redmine_backlogs/stylesheets/rb_default/jquery-ui.css
Captain! We’ve been hit!
=== MESSAGE:
ArgumentError: different prefix: "" and "/gsg/0.6.0"
=== COMPILATION STACK:
- [item] /gsg/0.6.0/configuring_aeolus/ (rep default)
=== BACKTRACE:
0. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:723:in `relative_path_from'
1. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/helpers/link_to.rb:144:in `relative_path_to'
2. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/filters/relativize_paths.rb:80:in `nokogiri_process'
3. /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.2/lib/nokogiri/xml/node_set.rb:239:in `each'
4. /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.2/lib/nokogiri/xml/node_set.rb:238:in `upto'
5. /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.2/lib/nokogiri/xml/node_set.rb:238:in `each'
6. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/filters/relativize_paths.rb:78:in `nokogiri_process'
7. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/filters/relativize_paths.rb:77:in `each'
8. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/filters/relativize_paths.rb:77:in `nokogiri_process'
9. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/filters/relativize_paths.rb:61:in `run'
10. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/result_data/item_rep.rb:344:in `filter'
11. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/item_rep_proxy.rb:47:in `filter'
12. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/rule_context.rb:54:in `filter'
13. ./Rules:32:in `load'
14. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/rule.rb:68:in `instance_eval'
15. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/rule.rb:68:in `apply_to'
16. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/compiler.rb:381:in `compile_rep'
17. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/compiler.rb:337:in `compile_reps'
18. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/compiler.rb:330:in `loop'
19. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/compiler.rb:330:in `compile_reps'
20. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/compilation/compiler.rb:85:in `run'
21. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/base/source_data/site.rb:57:in `compile'
22. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli/commands/compile.rb:57:in `run'
23. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli/command_runner.rb:14:in `call'
24. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli/error_handler.rb:42:in `handle_while'
25. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli/error_handler.rb:23:in `handle_while'
26. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli/command_runner.rb:13:in `call'
27. /Library/Ruby/Gems/1.8/gems/cri-2.2.1/lib/cri/command_dsl.rb:175:in `runner'
28. /Library/Ruby/Gems/1.8/gems/cri-2.2.1/lib/cri/command.rb:291:in `call'
29. /Library/Ruby/Gems/1.8/gems/cri-2.2.1/lib/cri/command.rb:291:in `run_this'
30. /Library/Ruby/Gems/1.8/gems/cri-2.2.1/lib/cri/command.rb:244:in `run'
31. /Library/Ruby/Gems/1.8/gems/cri-2.2.1/lib/cri/command.rb:257:in `run'
32. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli.rb:44:in `run'
33. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli/error_handler.rb:42:in `handle_while'
34. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli/error_handler.rb:23:in `handle_while'
35. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/lib/nanoc/cli.rb:41:in `run'
36. /Library/Ruby/Gems/1.8/gems/nanoc-3.3.5/bin/nanoc:19
37. /usr/bin/nanoc:19:in `load'
38. /usr/bin/nanoc:19
=== VERSION INFORMATION:
nanoc 3.3.5 © 2007-2012 Denis Defreyne.
Running ruby 1.8.7 (2010-01-10) on universal-darwin11.0 with RubyGems 1.3.6.
If you believe this is a bug in nanoc, please do report it at
<https://github.com/ddfreyne/nanoc/issues/new>--thanks!
*********************************************************
> On 24/04/2012, at 6:05 AM, Denis Defreyne wrote:
>> Hi all,
>>
>> I’ve just pushed nanoc 3.3.5, a release with a couple of bug fixes. For details, check the release notes at [1].
>
> Oops, this upgrade breaks our site generation. :(
>
> 3.3.3 works, 3.3.5 breaks with the output below.
>
> Any ideas?
Yikes, the 3.3.5 update was actually meant to address exactly that issue. Will look into it.
Denis
This should fix it: https://github.com/ddfreyne/nanoc/commit/e69cbb646c7100bd574a121c7bc6cfafba3180d2.
The problem occurs because at some point, you are linking to "screenshots.html" instead of "/screenshots.html". This obviously shouldn’t crash; it should simple not try to relativize already relative paths. (It broke when I switched away from a regex-based parser to a proper HTML parser.)
Can you verify that the current release-3.3.x branch fixes the problem? (I’ve tried it locally and works fine.)
Cheers
Denis
On 24 Apr 2012, at 06:39, Justin Clift wrote:
> --
> You received this message because you are subscribed to the nanoc discusssion group.
>
> To post to this group, send email to na...@googlegroups.com
> To unsubscribe from this group, send email to
> nanoc+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nanoc?hl=en
As for the “can't modify frozen string” issue: are you using a modified version of the relativize_paths filter? If so, remember that you can’t modify the incoming content (e.g. with #sub!). Instead of content.sub!(…), you could use content = content.sub(…).
when :xhtmlklass = ::Nokogiri::XML# FIXME cleanup because it is ugly# this cleans the XHTML namespace to process fragments and full# documents in the same way. At least, Nokogiri adds this namespace# if detects the `html` element.end