I''m new to Ruby and RoR; I was messing around with it today and had trouble with error codes. Specifically, the ruby syntax checker frequently spits out ''syntax error'' with the last line of the code as the error line (the error is nowhere near the last line). This is something I''d expect in a pre 1.0 version, but ruby is at 1.8.4, is the ruby syntax checker just really primitive? This isn''t very user friendly, especially for a newbie, is there a more precise syntax checker that can actually point closer to the error a high % of the time? Cheers, Newb -- Posted via http://www.ruby-forum.com/.
On Aug 17, 2006, at 3:58 AM, Firstname Surname wrote:> I''m new to Ruby and RoR; I was messing around with it today and had > trouble with error codes. Specifically, the ruby syntax checker > frequently spits out ''syntax error'' with the last line of the code as > the error line (the error is nowhere near the last line). This is > something I''d expect in a pre 1.0 version, but ruby is at 1.8.4, is > the > ruby syntax checker just really primitive? > This isn''t very user friendly, especially for a newbie, is there a > more > precise syntax checker that can actually point closer to the error a > high % of the time?It means you''re missing an ''end'' It only knows that when it reaches the end of your program--until then, it lives in hope. Regards Dave Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2156 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/33f16d92/smime.bin
Dave Thomas wrote:> On Aug 17, 2006, at 3:58 AM, Firstname Surname wrote: > >> high % of the time? > It means you''re missing an ''end'' > > It only knows that when it reaches the end of your program--until > then, it lives in hope. > > > Regards > > > Dave ThomasThat''s what I was hoping, but that''s not the case. It has happened when I leave an extra . or other various errors, not just missing a ''end''. -- Posted via http://www.ruby-forum.com/.