Comments
-
Greg Hurrell
Thanks a lot for the report. I only have access to two testing platforms (Mac OS X and RHEL) so it's good to get feedback on other platforms.
The first failure is kind of expected; it's a failure testing against Rails "Edge", which is basically always broken and I don't really worry about chasing Edge all over the place. Specifically it's choking on the "3.0.pre" version string.
The other failures are more interesting though. I have no idea why they appear. Running on my machine I just get two failures for Edge, which like I said are kind of expected to be broken:
1) RuntimeError in 'Template handler in Rails 2.2.2 before(:all)' non-zero exit status (1) for 'ruby' ./spec/rails_spec.rb:58:in `run' ./spec/rails_spec.rb:81:in `create_base_app_and_symlinks' ./spec/rails_spec.rb:94:in `create_release_app' ./spec/rails_spec.rb:173:in `setup_release_app' ./spec/rails_spec.rb:201: 2) RuntimeError in 'Template handler in Edge Rails before(:all)' non-zero exit status (1) for 'git' ./spec/rails_spec.rb:58:in `run' ./spec/rails_spec.rb:157:in `create_edge_app' ./spec/rails_spec.rb:156:in `create_edge_app' ./spec/rails_spec.rb:80:in `create_base_app_and_symlinks' ./spec/rails_spec.rb:155:in `create_edge_app' ./spec/rails_spec.rb:182:in `setup_edge_app' ./spec/rails_spec.rb:214: Finished in 19.668961 seconds 750 examples, 2 failures, 1 pending
I really have no idea why you're seeing failures like that. Wonder if a previously installed version of the gem is interfering?
Can you try cloning from the Git repo and testing inside that? eg.
$ cd /tmp $ git clone git://git.wincent.dev/wikitext.git Initialized empty Git repository in /private/tmp/wikitext/.git/ remote: Counting objects: 2972, done. remote: Compressing objects: 100% (789/789), done. remote: Total 2972 (delta 2087), reused 2972 (delta 2087) Receiving objects: 100% (2972/2972), 4.07 MiB | 423 KiB/s, done. Resolving deltas: 100% (2087/2087), done. $ cd wikitext /tmp/wikitext $ rake (in /private/tmp/wikitext) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. checking for ruby.h... yes creating Makefile gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -DRUBY_1_8_x -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c ary.c gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -DRUBY_1_8_x -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c parser.c gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -DRUBY_1_8_x -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c str.c gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -DRUBY_1_8_x -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c token.c gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -DRUBY_1_8_x -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c wikitext.c gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -DRUBY_1_8_x -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c wikitext_ragel.c cc -arch i386 -pipe -bundle -undefined dynamic_lookup -o wikitext.bundle ary.o parser.o str.o token.o wikitext.o wikitext_ragel.o -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch i386 -lruby -lpthread -ldl ..................................................................................*.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*** COMMAND rake gems:refresh_specs EXITED WITH NON-ZERO EXIT STATUS (1) *** STDOUT FOR COMMAND rake gems:refresh_specs: (in /private/tmp/wikitext/spec/trash/edge-app) *** STDERR FOR COMMAND rake gems:refresh_specs: rake aborted! Malformed version number string 3.0.pre /private/tmp/wikitext/spec/trash/edge-app/rakefile:4 (See full trace by running task with --trace) F....................................................................................................................... Pending: Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should not terminate on question marks that occur within the URI (TODO) ./spec/autolinking_spec.rb:534 1) RuntimeError in 'Template handler in Edge Rails before(:all)' non-zero exit status (1) for 'rake' ./spec/rails_spec.rb:58:in `run' ./spec/rails_spec.rb:168:in `update_environment' ./spec/rails_spec.rb:167:in `update_environment' ./spec/rails_spec.rb:183:in `setup_edge_app' ./spec/rails_spec.rb:214: Finished in 108.311198 seconds 751 examples, 1 failure, 1 pending rake aborted! Command /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"/Library/Ruby/Gems/1.8/gems/rspec-1.2.8/lib" "/Library/Ruby/Gems/1.8/gems/rspec-1.2.8/bin/spec" "spec/autolinking_spec.rb" "spec/base_heading_level_spec.rb" "spec/blockquote_spec.rb" "spec/em_spec.rb" "spec/encoding_spec.rb" "spec/entity_spec.rb" "spec/external_link_spec.rb" "spec/fulltext_spec.rb" "spec/h1_spec.rb" "spec/h2_spec.rb" "spec/h3_spec.rb" "spec/h4_spec.rb" "spec/h5_spec.rb" "spec/h6_spec.rb" "spec/img_spec.rb" "spec/indentation_spec.rb" "spec/integration_spec.rb" "spec/internal_link_spec.rb" "spec/line_endings_spec.rb" "spec/link_encoding_spec.rb" "spec/link_sanitizing_spec.rb" "spec/nil_class_spec.rb" "spec/nowiki_spec.rb" "spec/p_spec.rb" "spec/parser_spec.rb" "spec/pre_spec.rb" "spec/rails_spec.rb" "spec/regressions_spec.rb" "spec/string_spec.rb" "spec/strong_em_spec.rb" "spec/strong_spec.rb" "spec/tokenizing_spec.rb" "spec/tt_spec.rb" "spec/ul_spec.rb" "spec/version_spec.rb" "spec/wikitext_spec.rb" --color failed (See full trace by running task with --trace)
So as you can see, works and only the Edge Rails error.
-
Greg Hurrell
Summary changed:
- From: wikitext won't compile
- To: Spec suite failures on Ubuntu 9.04 (rake --trace)
-
Greg Hurrell
Bizarrely on moving to a new machine I can now reproduce the spec failures reported here. I guess I must have had an older copy of the extension which did not have the bug floating around in my load path somewhere. Not sure how this could happen, actually, seeing as in
spec/spec_helper.rb
we explicitly make sure that the local version of the extension is tested and not versions elsewhere on the load path...In any case, now it is fixed.
Will mark as closed.
-
Greg Hurrell
Status changed:
- From: new
- To: closed
Add a comment
Comments are now closed for this issue.