zvavox-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-12 14:05 UTC
Script/generate masterview fails
I have been trying to make MasterView works on my Rails project. However, every time I issue a script/generate masterview Product Store command, I always get the following: --- D:\aaa>ruby script/generate masterview Product Store Initializing MasterView configuration (2006-11-12 21:10) Program name = script/generate dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/product.rb identical test/unit/product_test.rb identical test/fixtures/products.yml exists app/controllers/ exists app/helpers/ create app/views/store exists public/stylesheets/masterview exists app/masterview exists app/masterview/extra exists test/functional/ create app/controllers/store_controller.rb create test/functional/store_controller_test.rb create app/helpers/store_helper.rb create store/destroy.html wrong number of arguments (1 for 2) ----- Note that scaffolding works. D:\aaa>ruby script/generate scaffold Product Store I have the following masterview and rails version D:\aaa>gem list masterview *** LOCAL GEMS *** masterview (0.3.0) A (x)html friendly template engine for rails with the power of layouts, and partials. masterview_gem_pack (0.3.0) A (x)html friendly template engine for rails with the power of layouts, and partials. This gem package includes the other masterview gems for easy installation masterview_generator (0.3.0) A (x)html friendly template engine for rails with the power of layouts, and partials. MasterView Generator for creating templates and scaffolding. masterview_plugin_generator (0.3.0) A (x)html friendly template engine for rails with the power of layouts, and partials. MasterView Plugin Generator for GEM D:\aaa>rails -v Rails 1.1.6 D:\aaa>ruby -v ruby 1.8.5 (2006-08-25) [i386-mswin32] Am I using the wrong version of Rails, Ruby, or Masterview? Or a wrong configuration? Please note that I did not make any changes to the MasterView configuration file. Thanks. Zandro --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff Barczewski
2006-Nov-13 03:36 UTC
[Masterview-devel] [Rails] Script/generate masterview fails
On 11/12/06, zvavox at gmail.com <zvavox at gmail.com> wrote:> > > I have been trying to make MasterView works on my Rails > project. However, every time I issue a script/generate masterview > Product Store command, I always get the following: > > --- > D:\aaa>ruby script/generate masterview Product Store > Initializing MasterView configuration (2006-11-12 21:10) > Program name = script/generate > dependency model > exists app/models/ > exists test/unit/ > exists test/fixtures/ > identical app/models/product.rb > identical test/unit/product_test.rb > identical test/fixtures/products.yml > exists app/controllers/ > exists app/helpers/ > create app/views/store > exists public/stylesheets/masterview > exists app/masterview > exists app/masterview/extra > exists test/functional/ > create app/controllers/store_controller.rb > create test/functional/store_controller_test.rb > create app/helpers/store_helper.rb > create store/destroy.html > wrong number of arguments (1 for 2) > ----- > > Note that scaffolding works. > D:\aaa>ruby script/generate scaffold Product Store > > I have the following masterview and rails version > > D:\aaa>gem list masterview > > *** LOCAL GEMS *** > > masterview (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. > > masterview_gem_pack (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. This gem package includes the other > masterview gems for easy installation > > masterview_generator (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. MasterView Generator for creating templates > and scaffolding. > > masterview_plugin_generator (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. MasterView Plugin Generator for GEM > > D:\aaa>rails -v > Rails 1.1.6 > > D:\aaa>ruby -v > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > Am I using the wrong version of Rails, Ruby, or Masterview? > Or a wrong configuration? Please note that I did not make any changes > to the MasterView configuration file. > Thanks. > > ZandroZandro, It sounds like you are doing everything correctly. It is not obvious to me from the output what could be causing the problem. It must be something different in your environment but I don''t know what yet. Sounds like we need to get the stack trace for the error in the generate to be able to figure out what is causing the problem (by default generator must be catching the exception and hiding the output). I''ll need to take a look at the rails generator code and see how we can get at the stack trace. I''m out of town with limited net access, but I am forwarding this on to the MasterView developer list as well so that it will be logged. We need to find out exactly what is failing in your environment and then it will probably pretty easy to resolve. I''ll take a look at the rails generator code here on my laptop and if I can come up with an easy way to get a stack trace I''ll respond back. If I can figure something out from here, I will respond back, otherwise worse case I''ll be back home Tuesday evening. Sorry for your troubles. We should be able to resolve quickly once we can get to the root of the problem. Thanks for emailing. We''ll continue this discussion and resolution off of the main rails list to save bandwidth, we can use the masterview-users at rubyforge.org list. If the fix requires an update we will release one as soon as we can get to the bottom of it. Thanks for bringing this to our attention. We will stay on it until it is resolved. Blessings, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20061112/03574acc/attachment.html
Jeff Barczewski
2006-Nov-13 16:55 UTC
[Masterview-devel] [Rails] Script/generate masterview fails
On 11/12/06, zvavox at gmail.com <zvavox at gmail.com> wrote:> > I have been trying to make MasterView works on my Rails > project. However, every time I issue a script/generate masterview > Product Store command, I always get the following: > > --- > D:\aaa>ruby script/generate masterview Product Store > Initializing MasterView configuration (2006-11-12 21:10) > Program name = script/generate > dependency model > exists app/models/ > exists test/unit/ > exists test/fixtures/ > identical app/models/product.rb > identical test/unit/product_test.rb > identical test/fixtures/products.yml > exists app/controllers/ > exists app/helpers/ > create app/views/store > exists public/stylesheets/masterview > exists app/masterview > exists app/masterview/extra > exists test/functional/ > create app/controllers/store_controller.rb > create test/functional/store_controller_test.rb > create app/helpers/store_helper.rb > create store/destroy.html > wrong number of arguments (1 for 2) > ----- > > Note that scaffolding works. > D:\aaa>ruby script/generate scaffold Product Store > > I have the following masterview and rails version > > D:\aaa>gem list masterview > > *** LOCAL GEMS *** > > masterview (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. > > masterview_gem_pack (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. This gem package includes the other > masterview gems for easy installation > > masterview_generator (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. MasterView Generator for creating templates > and scaffolding. > > masterview_plugin_generator (0.3.0) > A (x)html friendly template engine for rails with the power of > layouts, and partials. MasterView Plugin Generator for GEM > > D:\aaa>rails -v > Rails 1.1.6 > > D:\aaa>ruby -v > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > Am I using the wrong version of Rails, Ruby, or Masterview? > Or a wrong configuration? Please note that I did not make any changes > to the MasterView configuration file. > Thanks.Zvavox, Could you do the following to give us more information to debug this issue? ruby script\generate Product Store --backtrace (this should give us the stack trace to be able to zero in on the issue) Also could you show us your schema for this Product table, on mysql you would do desc Products Finally, could you give us a complete gem list of all gems on your system, just in case something else is causing a problem. Just for completeness gem list Thanks for your help, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20061113/fab69ab9/attachment.html
Jeff Barczewski
2006-Nov-15 16:44 UTC
[Masterview-devel] [Rails] Script/generate masterview fails
Zandro, When you get a chance, could you run the following for us to help us fix the MasterView problem you were encountering. See the email at the bottom for the full details, but basically we would like to get the output from these three commands. ruby script\generate Product Store --backtracedesc Products gem list Thanks, Jeff On 11/13/06, Jeff Barczewski <jeff.barczewski at gmail.com> wrote:> > > > On 11/12/06, zvavox at gmail.com <zvavox at gmail.com> wrote: > > > > > I have been trying to make MasterView works on my Rails > > project. However, every time I issue a script/generate masterview > > Product Store command, I always get the following: > > > > --- > > D:\aaa>ruby script/generate masterview Product Store > > Initializing MasterView configuration (2006-11-12 21:10) > > Program name = script/generate > > dependency model > > exists app/models/ > > exists test/unit/ > > exists test/fixtures/ > > identical app/models/product.rb > > identical test/unit/product_test.rb > > identical test/fixtures/products.yml > > exists app/controllers/ > > exists app/helpers/ > > create app/views/store > > exists public/stylesheets/masterview > > exists app/masterview > > exists app/masterview/extra > > exists test/functional/ > > create app/controllers/store_controller.rb > > create test/functional/store_controller_test.rb > > create app/helpers/store_helper.rb > > create store/destroy.html > > wrong number of arguments (1 for 2) > > ----- > > > > Note that scaffolding works. > > D:\aaa>ruby script/generate scaffold Product Store > > > > I have the following masterview and rails version > > > > D:\aaa>gem list masterview > > > > *** LOCAL GEMS *** > > > > masterview (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. > > > > masterview_gem_pack (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. This gem package includes the other > > masterview gems for easy installation > > > > masterview_generator (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. MasterView Generator for creating templates > > and scaffolding. > > > > masterview_plugin_generator (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. MasterView Plugin Generator for GEM > > > > D:\aaa>rails -v > > Rails 1.1.6 > > > > D:\aaa>ruby -v > > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > > > Am I using the wrong version of Rails, Ruby, or Masterview? > > Or a wrong configuration? Please note that I did not make any changes > > to the MasterView configuration file. > > Thanks. > > > > > > Zvavox, > > Could you do the following to give us more information to debug this > issue? > > ruby script\generate Product Store --backtrace > (this should give us the stack trace to be able to zero in on the issue) > > Also could you show us your schema for this Product table, on mysql you > would do > > desc Products > > Finally, could you give us a complete gem list of all gems on your system, > just in case something else is causing a problem. Just for completeness > > gem list > > Thanks for your help, > > Jeff > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20061115/2d52d5b4/attachment-0001.html
Hi, having the same error. My specs: - Win XP SP2 - using the plugin version even when I try to generate scaffold only for a model, the message is the same. Hope, this helps a little. Cheers, Roman On 13 Nov., 04:36, "Jeff Barczewski" <jeff.barczew...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 11/12/06, zva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <zva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > I have been trying to make MasterView works on my Rails > > project. However, every time I issue a script/generate masterview > > Product Store command, I always get the following: > > > --- > > D:\aaa>ruby script/generate masterview Product Store > > Initializing MasterView configuration (2006-11-12 21:10) > > Program name = script/generate > > dependency model > > exists app/models/ > > exists test/unit/ > > exists test/fixtures/ > > identical app/models/product.rb > > identical test/unit/product_test.rb > > identical test/fixtures/products.yml > > exists app/controllers/ > > exists app/helpers/ > > create app/views/store > > exists public/stylesheets/masterview > > exists app/masterview > > exists app/masterview/extra > > exists test/functional/ > > create app/controllers/store_controller.rb > > create test/functional/store_controller_test.rb > > create app/helpers/store_helper.rb > > create store/destroy.html > > wrong number of arguments (1 for 2) > > ----- > > > Note that scaffolding works. > > D:\aaa>ruby script/generate scaffold Product Store > > > I have the following masterview and rails version > > > D:\aaa>gem list masterview > > > *** LOCAL GEMS *** > > > masterview (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. > > > masterview_gem_pack (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. This gem package includes the other > > masterview gems for easy installation > > > masterview_generator (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. MasterView Generator for creating templates > > and scaffolding. > > > masterview_plugin_generator (0.3.0) > > A (x)html friendly template engine for rails with the power of > > layouts, and partials. MasterView Plugin Generator for GEM > > > D:\aaa>rails -v > > Rails 1.1.6 > > > D:\aaa>ruby -v > > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > > Am I using the wrong version of Rails, Ruby, or Masterview? > > Or a wrong configuration? Please note that I did not make any changes > > to the MasterView configuration file. > > Thanks. > > > Zandro Zandro, > > It sounds like you are doing everything correctly. It is not obvious to me > from the output what could be causing the problem. It must be something > different in your environment but I don''t know what yet. > > Sounds like we need to get the stack trace for the error in the generate to > be able to figure out what is causing the problem (by default generator must > be catching the exception and hiding the output). I''ll need to take a look > at the rails generator code and see how we can get at the stack trace. > > I''m out of town with limited net access, but I am forwarding this on to the > MasterView developer list as well so that it will be logged. We need to find > out exactly what is failing in your environment and then it will probably > pretty easy to resolve. I''ll take a look at the rails generator code here on > my laptop and if I can come up with an easy way to get a stack trace I''ll > respond back. If I can figure something out from here, I will respond back, > otherwise worse case I''ll be back home Tuesday evening. > > Sorry for your troubles. We should be able to resolve quickly once we can > get to the root of the problem. Thanks for emailing. > > We''ll continue this discussion and resolution off of the main rails list to > save bandwidth, we can use the masterview-us...-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org list. If the > fix requires an update we will release one as soon as we can get to the > bottom of it. > > Thanks for bringing this to our attention. We will stay on it until it is > resolved. > > Blessings, > > Jeff--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/20/06, Roman Heinrich <roman.heinrich-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi, > > having the same error. My specs: > > - Win XP SP2 > - using the plugin version > > even when I try to generate scaffold only for a model, the message is > the same. > Hope, this helps a little. > > > Cheers, > Roman > > > On 13 Nov., 04:36, "Jeff Barczewski" <jeff.barczew...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On 11/12/06, zva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <zva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > I have been trying to make MasterView works on my Rails > > > project. However, every time I issue a script/generate masterview > > > Product Store command, I always get the following: > > > > > --- > > > D:\aaa>ruby script/generate masterview Product Store > > > Initializing MasterView configuration (2006-11-12 21:10) > > > Program name = script/generate > > > dependency model > > > exists app/models/ > > > exists test/unit/ > > > exists test/fixtures/ > > > identical app/models/product.rb > > > identical test/unit/product_test.rb > > > identical test/fixtures/products.yml > > > exists app/controllers/ > > > exists app/helpers/ > > > create app/views/store > > > exists public/stylesheets/masterview > > > exists app/masterview > > > exists app/masterview/extra > > > exists test/functional/ > > > create app/controllers/store_controller.rb > > > create test/functional/store_controller_test.rb > > > create app/helpers/store_helper.rb > > > create store/destroy.html > > > wrong number of arguments (1 for 2) >Roman, We were able to reproduce this error by upgrading to ruby 1.8.5. It seems that there was a code change to Pathname caused us an issue since we have a few objects which derive from it. As I write this I am making a new release of MasterView 0.3.1 which resolved the problem. The code has been released and should be available for gem download anytime now. Let me know if this doesn''t resolve the issue for you. Thanks, Jeff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---