Can't get plugins to install from GitHub
I am new to Rail and have been following a Rails tutorial Building Web Apps.
They reference a Rails plugins, restful_authentiction, which then links to GitHub to get the info on installation.
The tutorial provides this command, which does work:
script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication/
GitHub provides the following two methods to install the plugins, neither of which I can get to work.
script/plugin install git://github.com/technoweenie/restful-authentication.git
script/plugin install http://github.com/technoweenie/restful-authentication.git
Can anybody tell me what I am doing wrong.
Please sign in to leave a comment.
What do you do? Do you get any errors in console?
I have no idea what I was doing wrong. I tried installing these and other plugins many times and they would run without any console output and I would just get back the prompt, with no file created.
In response to your question, I opened the console and reran the script so I could post the exact output. Of course it worked just fine. I then went to the Tools:Run Ruby Script in RubyMine and that also worked just fine.
Thanks for your response. At least it go me to go back and try again.
Not exactly sure of all that steps that I tried. At one point I remember going through the GitHub installation instructions (for OS X). I have since restarted the computer, could that have been my problem? Not sure I did that the first time around.
Please attach your RubyMine log as described in http://www.jetbrains.net/devnet/docs/DOC-1153. Probably logs will point on some internal RubyMine errors, etc.
I'm having the same problem.
I've got msysgit installed on Win7. In Settings, my git path is:
C:\swe\msysgit\cmd\git.cmd
CheckOut works.
install git://github.com/augustl/live-validations.git
vendor/plugins/live-validations is empty but I don't see a failure indication in the log or console:
C:\swe\Ruby\bin\ruby.exe -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) C:\swe\eclipse_workspace\profile\script\plugin install git://github.com/augustl/live-validations.git
Process finished with exit code 0
However, the last log entry indicates something related to git is amiss. C:\swe\git_repo is the only VCS mapping I've defined.
2010-04-20 10:33:58,307 [ 48296] INFO - .changes.ChangeListManagerImpl - Process failed to start: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "git.exe" (in directory "C:\swe\git_repo\railsjquery"): CreateProcess error=2, The system cannot find the file specified
com.intellij.openapi.vcs.VcsException: Process failed to start: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "git.exe" (in directory "C:\swe\git_repo\railsjquery"): CreateProcess error=2, The system cannot find the file specified
at git4idea.commands.GitSimpleHandler$1.startFailed(GitSimpleHandler.java:211)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:87)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:33)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:64)
at $Proxy59.startFailed(Unknown Source)
at git4idea.commands.GitHandler.start(GitHandler.java:550)
at git4idea.commands.GitSimpleHandler.run(GitSimpleHandler.java:214)
at git4idea.changes.ChangeCollector.updateIndex(ChangeCollector.java:136)
at git4idea.changes.ChangeCollector.ensureCollected(ChangeCollector.java:123)
at git4idea.changes.ChangeCollector.changes(ChangeCollector.java:103)
at git4idea.changes.GitChangeProvider.getChanges(GitChangeProvider.java:71)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.a(ChangeListManagerImpl.java:392)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.a(ChangeListManagerImpl.java:315)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.access$600(ChangeListManagerImpl.java:65)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl$ActualUpdater.execute(ChangeListManagerImpl.java:227)
at com.intellij.openapi.vcs.changes.UpdateRequestsQueue$MyRunnable.run(UpdateRequestsQueue.java:184)
at com.intellij.lifecycle.SlowlyClosingAlarm$MyWrapper.run(SlowlyClosingAlarm.java:234)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "git.exe" (in directory "C:\swe\git_repo\railsjquery"): CreateProcess error=2, The system cannot find the file specified
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:113)
at git4idea.commands.GitHandler.start(GitHandler.java:518)
... 19 more
Caused by: java.io.IOException: Cannot run program "git.exe" (in directory "C:\swe\git_repo\railsjquery"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:108)
... 20 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 22 more
Please configure path in IDEA VCS settings to C:\swe\msysgit\bin\git.exe or to other location where git.exe is installed, and check if it would help.
Like I wrote in my post, the path is configured properly. CheckOut works but plugin doesn't. I found a workaround though: Patch plugin to allow installation from a local directory
http://def-end.blogspot.com/2008/09/installing-rails-plugins-from-local.html
The provided exception indicates that git is not configured properly. Is this exception is still actual?
1. Does the button "Test" reports Git vesion on Git vcs panel?
2. Note that we are suggesting to specify path to "git.exe" rather than to "git.cmd".
Test works fine on CheckOut but not on plugin. Clearly plugin is using different code.
The path to the git is in the project level settings. So please ensure that the path is configured correctly for the project as well.
I don't see a VCS setting except in project settings. I have:
C:\swe\msysgit\cmd\git.cmd
Please try changing path to C:\swe\msysgit\bin\git.exe
That doesn't work which is why I changed it to .cmd. rubymine complains it can't start the process.