The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Cryptic error messages

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Cryptic error messages Posted: Aug 3, 2005 3:06 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Cryptic error messages
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
This has to be my favorite Perl error of all time:
sh: -c: line 2: unexpected EOF while looking for matching `''
sh: -c: line 3: syntax error: unexpected end of file

So cryptic, with oh, so little help from Google. Never mind that the script passes a "perl -c" check just fine. I haven't been able to narrow this down, but I *think* it's being caused by DBI somehow. The other possibility is some sort of stray, invisible character causing the interpreter to choke when it actually runs.

It's truly bizarre, considering I have a separate script that is *identical* to the one failing, with the only difference being some embedding SQL. I spent several hours on this one yesterday, only to simply copy/paste the working file over the non-working file, then manually retype the appropriate SQL in.

Now it works, with no idea why it was ever failing in the first place.

Update: It was choking on a =begin/=end block. Using standard '#' to comment out the block of code worked. Of course, this begs the question of how it was working before, but whatever.

Read: Cryptic error messages

Topic: Strange error of the day Previous Topic   Next Topic Topic: Block and Lambda

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use