I'm getting the following parse error when I try to run the "Blame" command from the Subversion menu:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_blame.rb:61: parse error puts ''+ linecount.to_s + "\n" + ^
This happened on build 540 as well as 567. I'm running 10.3.9.
Thanks, Bryce
On 18/10/2005, at 16.44, Bryce Thornton wrote:
I'm getting the following parse error when I try to run the "Blame" command from the Subversion menu:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/ Subversion.tmbundle/Support/format_blame.rb:61: parse error puts ''+ linecount.to_s + "\n" + ^
This happened on build 540 as well as 567. I'm running 10.3.9.
I've added a .to_s to the line_id. I'm not skilled in the subtle details between Ruby 1.6 and 1.8, but printing of the line_id was what got added around 540. Let me know if it fails for next build.
On 18/10/2005, at 18.37, Allan Odgaard wrote:
I've added a .to_s to the line_id. I'm not skilled in the subtle details between Ruby 1.6 and 1.8, but printing of the line_id was what got added around 540. Let me know if it fails for next build.
Puts and print call to_s on their arguments, but + doesn't for string joining. Alternatively, use print a, b, c, d, "\n" where to_s will be called on each. Makes it look a bit more terse sometimes :-). Don't know if there is a difference between 1.6 and 1.8 in this case though.
-- Sune.