Integrating lighthouse with svn
Hello,
I am trying to integrate lighthouse with subversion. I followed the instructions on your page, and also on http://blog.massivemissive.com/?p=5 as I found your documentation to be somewhat opaque. I get the error
Error: undefined method 'body=' for #<Net::HTTP::Post POST> trace:
when I attempt to run my script manually. Any idea how to solve this problem? Thank you.
Discussions are closed to public comments.
If you need help with Lighthouse please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
1 Posted by jlee (at lsu) on 29 Oct, 2008 01:55 PM
I'm getting this error in my log: Error: undefined method '[]' for nil:NilClass trace:
2 Posted by jlee (at lsu) on 29 Oct, 2008 02:43 PM
Although I haven't found a solution to the problem I have, I did figure out that I do not have the requirement URI. Try running irb and loading each requirement to see if it returns true for all of them.
3 Posted by Rick on 19 Nov, 2008 07:24 PM
sconn: Not sure, what version of ruby are you using? According to the docs,
Net::HTTP::Postobjects definitely have abody=method. Try this in irb (don't enter the lines starting with=>, they are the return values from the previous statement):jlee: Can you provide a more thorough stack trace? If you don't have URI, you need to install it. It's part of the ruby stdlib and should be on all ruby installations.
4 Posted by Nicole on 03 Dec, 2008 05:51 AM
Please reply to this ticket if you're still having an issue.
5 Posted by sconn on 03 Dec, 2008 05:42 PM
Thanks for getting back to me. I had given up on getting the post-commit hook to work, but wouldn't mind figuring it out now. Rick, sure enough when I crank up irb, I get a similar error:
[xxx@localhost ~]$ irb irb(main):001:0> require 'net/http' => true irb(main):002:0> req = Net::HTTP::Post.new('foo/bar') => #<Net::HTTP::Post POST> irb(main):003:0> req.body = 'foo' NoMethodError: undefined method
body=' for #<Net::HTTP::Post POST>[xxx@localhost ~]$ ruby -v ruby 1.8.1 (2003-12-25) [i386-linux-gnu]
6 Posted by sconn on 03 Dec, 2008 05:45 PM
sorry about the busted syntax parsing
7 Posted by Rick on 03 Dec, 2008 07:15 PM
Try upgrading to ruby 1.8.6 if possible. I don't think I even ever used 1.8.1, so there may have been some API changes to net/http that I don't know about.