|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
[damagecontrol-user] Problems with rake create_demo_projectHi
I updated to todays SVN and tested the new doc/REAME, which failed creating target/demo/import/demo/README by calling "rake create_demo_project" This problem was fixed by applying the following patch: index: lib/tasks/demo.rake =================================================================== --- lib/tasks/demo.rake (Revision 1684) +++ lib/tasks/demo.rake (Arbeitskopie) @@ -45,9 +45,10 @@ directory import_dir target = File.join import_dir, "demo", File.basename(src) file target => [src, import_dir] do - if(File.directory?(src)) + if (File.directory?(src)) mkdir_p target unless File.exist?(target) else + mkdir_p File.dirname(target) unless File.exist?(File.dirname(target)) cp src, target end end Calling rake create_demo_project got me into an eternal loop: The output of rake -t -v create_demo_project was ** Invoke create_demo_project (first_time) ** Invoke migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Invoke clean_target_unless_production (first_time) ** Execute clean_target_unless_production ** Execute migrate ** Invoke create_demo_cvs (first_time) ** Execute create_demo_cvs ** Invoke import_demo (first_time) ** Invoke copy_demo (first_time) ** Invoke target/demo/import/demo/README (first_time) ** Invoke demo/README (first_time, not_needed) ** Invoke target/demo/import (first_time) ** Execute target/demo/import ** Execute target/demo/import/demo/README ** Invoke target/demo/import/demo/Rakefile (first_time) ** Invoke demo/Rakefile (first_time, not_needed) ** Invoke target/demo/import (not_needed) ** Execute target/demo/import/demo/Rakefile ** Execute copy_demo ** Execute import_demo ** Execute create_demo_project rake aborted! stack level too deep ./config/../config/../vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:79:in `load_target' ./config/../config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:100:in `length' ./config/../config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:62:in `clear' (eval):3:in `destroy_without_habtm_shim_for_build_executors' (eval):4:in `destroy_without_habtm_shim_for_dependencies' <last two lines repeated about 1000 times each) At the moment this escapes my debugging capabilities. Best regards |
|
|
Re: [damagecontrol-user] Problems with rake create_demo_projectOn 11/8/05, Niklaus Giger <niklaus.giger@...> wrote:
> Hi > > I updated to todays SVN and tested the new doc/REAME, which failed > creating target/demo/import/demo/README by calling "rake create_demo_project" > > This problem was fixed by applying the following patch: > index: lib/tasks/demo.rake > =================================================================== > --- lib/tasks/demo.rake (Revision 1684) > +++ lib/tasks/demo.rake (Arbeitskopie) > @@ -45,9 +45,10 @@ > directory import_dir > target = File.join import_dir, "demo", File.basename(src) > file target => [src, import_dir] do > - if(File.directory?(src)) > + if (File.directory?(src)) > mkdir_p target unless File.exist?(target) > else > + mkdir_p File.dirname(target) unless File.exist?(File.dirname(target)) > cp src, target > end > end > Thanks, fix applied. > Calling rake create_demo_project got me into an eternal loop: > The output of rake -t -v create_demo_project was > > > ** Invoke create_demo_project (first_time) (snip) > ** Invoke migrate (first_time) > ** Invoke environment (first_time) > At the moment this escapes my debugging capabilities. > > Best regards > i just committed a bunch of fixes. could you try again with: gem update rscm svn up rake create_demo_project hopefully that will fix things. cheers, aslak |
| Free embeddable forum powered by Nabble | Forum Help |