Call Generate Script does not work

43 views
Skip to first unread message

Jake Paul

unread,
Mar 21, 2008, 8:46:46 PM3/21/08
to Ruby on Rails: TextMate
When I run Call Generate Script within a project it prompts correctly
for the generator, then for the name (of the model, controller, etc),
then says "Done generating xxxxx" but it does not create any files or
give any errors.

Any help would be greatly appreciated.

Thanks, Jake

Jake Paul

unread,
Mar 21, 2008, 9:25:22 PM3/21/08
to Ruby on Rails: TextMate
Here's the output from the log located in /tmp:

# Logfile created on Fri Mar 21 20:24:10 -0400 2008 by /
D, [2008-03-21T20:24:10.703280 #269] DEBUG -- : Command: script/
generate model Post
D, [2008-03-21T20:24:10.821850 #269] DEBUG -- : Output:
D, [2008-03-21T21:15:18.382661 #655] DEBUG -- : Command: script/
generate model Post
D, [2008-03-21T21:15:18.503227 #655] DEBUG -- : Output:

It looks like the command is not being run?

Nic Williams

unread,
Mar 21, 2008, 11:06:13 PM3/21/08
to rubyonrail...@googlegroups.com
Hmm, I've seen this at various times too (now is one of them). I've even tried to figure out why, and to try other methods of calling external cmds. My theory is TM is doing something to short-circuit the backtick/system cmd. I don't yet know what it is :(

 
Nic
--
Dr Nic Williams
http://drnicacademy.com - Ruby/Rails training/dev around the world
http://drnicwilliams.com - Ruby/Rails/Javascript/Web2.0
(skype) nicwilliams
(p) +61 412 002 126 / +61 7 3113 3033
(mail) PO Box 583 Ashgrove 4060 QLD Aus

Jake Paul

unread,
Mar 22, 2008, 11:55:18 AM3/22/08
to Ruby on Rails: TextMate
Huh. When I run Call Generate Script in a project using Rails 1.2.3,
it works. It's my new projects on 2.0.2 that are not working. Does
that shed any light on what the problem might be?

On Mar 21, 11:06 pm, "Nic Williams" <drnicwilli...@gmail.com> wrote:
> Hmm, I've seen this at various times too (now is one of them). I've even
> tried to figure out why, and to try other methods of calling external cmds.
> My theory is TM is doing something to short-circuit the backtick/system cmd.
> I don't yet know what it is :(
>
> Nic
>
> On 3/22/08, Jake Paul <dotj...@gmail.com> wrote:
>
>
>
>
>
> > Here's the output from the log located in /tmp:
>
> > # Logfile created on Fri Mar 21 20:24:10 -0400 2008 by /
> > D, [2008-03-21T20:24:10.703280 #269] DEBUG -- : Command: script/
> > generate model Post
> > D, [2008-03-21T20:24:10.821850 #269] DEBUG -- : Output:
> > D, [2008-03-21T21:15:18.382661 #655] DEBUG -- : Command: script/
> > generate model Post
> > D, [2008-03-21T21:15:18.503227 #655] DEBUG -- : Output:
>
> > It looks like the command is not being run?
>
> > On Mar 21, 8:46 pm, Jake Paul <dotj...@gmail.com> wrote:
> > > When I run Call Generate Script within a project it prompts correctly
> > > for the generator, then for the name (of the model, controller, etc),
> > > then says "Done generating xxxxx" but it does not create any files or
> > > give any errors.
>
> > > Any help would be greatly appreciated.
>
> > > Thanks, Jake
>
> --
> Dr Nic Williamshttp://drnicacademy.com- Ruby/Rails training/dev around the worldhttp://drnicwilliams.com- Ruby/Rails/Javascript/Web2.0

Jake Paul

unread,
Mar 22, 2008, 12:56:19 PM3/22/08
to Ruby on Rails: TextMate
Also, when I add the -v flag to the ruby command in
rails_bundle_tools.rb, and run Call Generate Script from a 2.0.2
project, the output comes back as:

ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.4]

which is the version of ruby on my machine, and leads me to believe
that it is running the command but not the generate script.

Jake Paul

unread,
Mar 22, 2008, 3:25:21 PM3/22/08
to Ruby on Rails: TextMate
Incidentally, in a 2.0.2 project it only gives the option of the
generators listed as 'known' in the bundle (/Support/lib/rails/
generate.rb) and it seems to me that 2.0.2 includes more generators
than those. It shows all the generators in the 1.2.3 project.
> > > Dr Nic Williamshttp://drnicacademy.com-Ruby/Railstraining/dev around the worldhttp://drnicwilliams.com-Ruby/Rails/Javascript/Web2.0

Stuart Grimshaw

unread,
Apr 20, 2008, 9:10:37 AM4/20/08
to Ruby on Rails: TextMate
On Mar 22, 4:06 am, "Nic Williams" <drnicwilli...@gmail.com> wrote:
> Hmm, I've seen this at various times too (now is one of them). I've even
> tried to figure out why, and to try other methods of calling external cmds.
> My theory is TM is doing something to short-circuit the backtick/system cmd.
> I don't yet know what it is :(
>
> Nic

Any solution to this yet? I've just grabbed the latest version off
git, and it's still there :(

Shoaib

unread,
May 8, 2008, 12:47:15 PM5/8/08
to Ruby on Rails: TextMate
Started working after I moved away from the macport version of Ruby to
the one that comes with OS X developer packages (XCode)
not sure why though :(

On Apr 20, 6:10 am, Stuart Grimshaw <stuart.grims...@gmail.com>
wrote:

Michael Irwin

unread,
May 29, 2008, 1:19:55 PM5/29/08
to Ruby on Rails: TextMate
I believe this issue is discussed at http://is.gd/nGV.

On Apr 20, 9:10 am, Stuart Grimshaw <stuart.grims...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages