# Script/plugin install fails

**URL:** <https://www.ruby-forum.com/t/script-plugin-install-fails/53447>\
**Category:** Rails\
**Created:** [February 5, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447 "2006-02-05T22:38:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 5, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/1 "2006-02-05T22:38:21Z")

</div>

Running script/plugin install  
svn://rubyforge.org/var/svn/laszlo-plugin/tags/openlaszlo fails,  
returning the help information for the “export” command:

export: Create an unversioned copy of a tree.  
usage: 1. export [-r REV] URL [PATH]  
2. export [-r REV] PATH1 [PATH2]  
etc…

Has anyone encountered this before?

System info:  
Mac OS 10.4.4.  
ruby 1.8.2 (2004-12-25)  
svn, version 1.1.3 (r12730)  
rails 1.0.0

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 5, 2006, 11:08pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/2 "2006-02-05T23:08:11Z")

</div>

I suspect that the syntax of the svn export command has subtely  
changed, or is at least different with your version of SVN than that  
expected by the script/plugin command. You might get it working  
fastest by downgrading your version of SVN.

- james

On 2/5/06, Nick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

- J \*  
~

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 5, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/3 "2006-02-05T23:19:44Z")

</div>

James A. wrote:

> I suspect that the syntax of the svn export command has subtely  
> changed, or is at least different with your version of SVN than that  
> expected by the script/plugin command. You might get it working  
> fastest by downgrading your version of SVN.

Thanks for the reply James - I’ve tried downgrading through 1.3 to  
1.1.3, with no joy so far, but might keep going just in case.

Also, I have just noticed that script/plugin install  
svn://rubyforge.org/var/svn/laszlo-plugin/tags/openlaszlo works fine  
when run via Locomotive. Perhaps Locomotive comes with an earlier  
version of svn? Does anyone know which version, or how I could find out?

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 6, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/4 "2006-02-06T19:51:09Z")

</div>

I wish I knew.

I’ve been trying to hack at the same problem for over 3 hours,  
re-installing svn, etc., etc. There are a number of people who are  
experiencing problems with this, but there doesn’t seem to be any  
adequate response. The issue would appear to be with how the plugin  
architecture handles the svn calls, but I have no idea really. I spent  
a good two hours scouring the wiki, google, mailing lists, etc.

The best I can tell you is to just use svn directly and check out a  
copy of the plugin into the correct folder (which is essentially what  
“plugin” is supposed to do for you). Like so:

$ cd vendor/plugins  
$ svn co

That’ll do the trick for now.

## Dave

```auto
David Andrew T.
http://dathompson.blogspot.com
```

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 6, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/5 "2006-02-06T17:48:44Z")

</div>

> Running script/plugin install  
> svn://rubyforge.org/var/svn/laszlo-plugin/tags/openlaszlo fails,  
> returning the help information for the “export” command:
> 
> export: Create an unversioned copy of a tree.  
> usage: 1. export [-r REV] URL [PATH]  
> 2. export [-r REV] PATH1 [PATH2]  
> etc…

Update - this appears to be a general error with script/plugin install,  
and is not specific to the openlaszlo plugin. I’ve tried installing the  
engines plugin and the result is the same. My Locomotive installation  
will happily install plugins via script/plugin install, and I’ve  
verified that the version of svn is the same.

Would anyone be kind enough to offer suggestions as to what might be  
causing this behaviour?

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 6, 2006, 10:01pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/6 "2006-02-06T22:01:13Z")

</div>

> David Andrew T. wrote:
> 
> > I’ve been trying to hack at the same problem for over 3 hours,  
> > re-installing svn, etc., etc.

Me too David - it’s reassuring to see that there are others in  
the same boat. Like you suggest, I’ve been using:

$ cd vendor/plugins  
$ svn export

but am looking for a more permanent fix. The fact that Locomotive  
uses the same version of svn that I’ve built and works flawlessly  
makes me think it’s something more than just the version number  
that’s at fault. If anyone reading has any more suggestions there  
are a few of us who’d appreciate the hints!

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 6, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/7 "2006-02-06T21:21:00Z")

</div>

+1

Who maintains the plugin stuff? Does it require svn? Anyone?

b

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 12:47am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/8 "2006-02-07T00:47:45Z")

</div>

I’ve been using the RadRails eclipse plugin for my rails development  
IDE. Their rails plugin wizard seems to work fine, but I’m not sure  
what version of SVN they are using.

It would great to find out how to bring this to the right people’s  
attention.

Dave

On 2/6/06, n1c [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> but am looking for a more permanent fix. The fact that Locomotive  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

```auto
David Andrew T.
http://dathompson.blogspot.com
```

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 1:18am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/9 "2006-02-07T01:18:13Z")

</div>

Thanks for the tip… I’d tried running the plugin script on the command  
line. I got stuck with it apparently wanting  
svn to be installed and I put it off until sometime when I’d get around  
to installing subversion… forgot that radrails  
has svn built in… it does right?

…

Hmm, wait a minute… are you talking about the Generators view? I see  
that that has “plugin” as an option but it looks  
like it runs “script/generate plugin”, not “script/plugin …”. Have you  
found some way to /install/ plugins in radrails?

thanks,

b

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 2:00am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/10 "2006-02-07T02:00:47Z")

</div>

For Radrails, I’m using 0.5.3. In the Generators menu, the pulldown  
menu should have plugin as an option at the very end of the list. Then  
you can run any command that you normally would from the command line  
in the text field to the right.

Seriously…Radrails is making some serious headway!

Dave

On 2/6/06, Ben M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Dave
> > 
> > > 
> > 
> > David Andrew T.

–

```auto
David Andrew T.
http://dathompson.blogspot.com
```

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 2:13am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/11 "2006-02-07T02:13:08Z")

</div>

Hmmm…actually after looking this over it would appear that this is  
not actually running the plugin script, but is generating the tree for  
the creation of a new plugin. Sorry for the confusion.

It would appear that using SVN directly is the only option at this  
point. ☹

Dave

On 2/6/06, David Andrew T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Thanks for the tip… I’d tried running the plugin script on the command line. I got stuck with it apparently wanting  
> > b
> > 
> > > > $ cd vendor/plugins
> > > > 
> > > > * * *
> > > 
> > > [http://dathompson.blogspot.com](http://dathompson.blogspot.com)
> 
> –
> 
> ```auto
> David Andrew T.
> http://dathompson.blogspot.com
> 
> ```

–

```auto
David Andrew T.
http://dathompson.blogspot.com
```

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 2:40am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/12 "2006-02-07T02:40:55Z")

</div>

Whoops… I hit send and then saw your reply… yeah, I guess I’ll just  
have to install subversion.

b

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 2:59am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/13 "2006-02-07T02:59:19Z")

</div>

It looks like someone already submitted this as a problem. See  
[http://dev.rubyonrails.org/ticket/2795](http://dev.rubyonrails.org/ticket/2795). I changed my directory to one  
without spaces and plugins worked

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 2:34am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/14 "2006-02-07T02:34:43Z")

</div>

David Andrew T. wrote:

> For Radrails, I’m using 0.5.3. In the Generators menu, the pulldown  
> menu should have plugin as an option at the very end of the list.  
> Then  
> you can run any command that you normally would from the command line  
> in the text field to the right.

Yes, but if I do that it runs “script/generate plugin ”.  
So, if I try to run “script/plugin discover”, it  
runs “script/generate plugin discover” instead and generates a  
“discover” plugin stub under vendor… not really what I  
was looking for.

It doesn’t look like there’s any way to use radrails to install plugins  
into a project… Well, actually, once I have  
the radrails terminal open (it seems overly difficult to get a terminal  
open), I can type “script/plugin list” in the  
terminal. But that seems to have the same problem as running it from the  
command line:

test\> ruby script\plugin list  
-e: No such file or directory - svn ls  
[http://dev.rubyonrails.com/svn/rails/plugins/](http://dev.rubyonrails.com/svn/rails/plugins/)  
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:313:in  
`plugins': private method `split’ called for  
nil:NilClass (NoMethodError)  
from  
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:469:in  
`parse!' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:469:in `map’  
from  
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:469:in  
`parse!' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:411:in `parse!’  
test\> from  
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:427:in  
`parse!' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:823 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require\_\_’  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
`require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require’  
from ./script\plugin:3  
from -e:3:in `load’  
from -e:3

Still no plugins for me! :-/

b

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 3:57am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/15 "2006-02-07T03:57:08Z")

</div>

Dominic,

Excellent! That seems to have done the trick for me. I’m going to try  
and update the wiki’s tonight with the note.

The link to the ticket doesn’t seem to reference the ticket you were  
speaking of (unless I’m just clueless). What was the ticket number?  
Also, I can’t seem to figure out how to search tickets using keywords.  
Am I missing something?

Dave

On 2/6/06, Dominic S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > plugin discover" instead and generates a “discover” plugin stub under  
> > > [Peak Obsession](http://dev.rubyonrails.com/svn/rails/plugins/)  
> > > c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:469:in
> > > 
> > > `require’
> > > 
> > > > > …
> > > > > 
> > > > > > > Me too David - it’s reassuring to see that there are others in
> > > > > > 
> > > > > > –  
> > > > > > Rails mailing list
> > > > 
> > > > * * *
> > 
> > * * *

–

```auto
David Andrew T.
http://dathompson.blogspot.com
```

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 9:50am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/16 "2006-02-07T09:50:53Z")

</div>

Dominic S. \<dsisnero@…\> writes:

> It looks like someone already submitted this as a problem.Â See  
> [http://dev.rubyonrails.org/ticket/2795.Â](http://dev.rubyonrails.org/ticket/2795.%C3%82) I changed my directory  
> to one without spaces and plugins worked

Fantastic - thanks very much for this info Dominic - this has  
solved it for me as well. The directory I was working from is a  
subdirectory of the OpenLaszlo server, which by default  
installs to a path containing the folder “OpenLaszlo Server 3.1.1”.  
Removing the spaces has fixed the problem, and also explains why  
Locomotive works - it doesn’t allow spaces in the path to the project  
file at all - very sensible!

I see a note has now been added to the rails wiki here:  
[http://wiki.rubyonrails.com/rails/pages/Plugins](http://wiki.rubyonrails.com/rails/pages/Plugins)

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [February 7, 2006, 6:01am UTC](https://www.ruby-forum.com/t/script-plugin-install-fails/53447/17 "2006-02-07T06:01:09Z")

</div>

I’m using svn v1.3.0 on Mac OSX Tiger (built w/ darwin ports) and  
script/plugin works fine.

I’m really curious why this isn’t working. script/plugin has a  
verbose mode, but unfortunately it does not output the svn command.  
I’ve added a patch to add this: [http://dev.rubyonrails.org/ticket/3755](http://dev.rubyonrails.org/ticket/3755)

script/plugin -v install foo -o # checkouts out the foo plugin

Here’s how it constructs the svn command too, if it might help anyone:

base\_cmd = “svn #{cmd} #{uri} "#{root}/vendor/plugins/#{name}"”  
base\_cmd += ’ -q’ if options[:quiet] and not $verbose  
base\_cmd += " -r #{options[:revision]}" if options[:revision]

–  
Rick O.  
[http://techno-weenie.net](http://techno-weenie.net)
