What is the error: unexpected break?

What are the possible reasons for this?
I am using ruby version: 1.8.7

Hi,

ajay paswan wrote in post #1078939:

What are the possible reasons for this?

Is this some kind of guessing game? :-/

Just give us the code and the exact error message. Then we can tell you
the reason for this case. It sounds like a syntax error to me.

Jan E. wrote in post #1078940:

Hi,

ajay paswan wrote in post #1078939:

What are the possible reasons for this?

Is this some kind of guessing game? :-/

Just give us the code and the exact error message. Then we can tell you
the reason for this case. It sounds like a syntax error to me.
As this is a big program, and I don’t know exactly at which line am
getting the error, so can’t post the whole code, is there any way to
find exactly at which line this error has occured/occurring?

ajay paswan wrote in post #1078949:

As this is a big program, and I don’t know exactly at which line am
getting the error, so can’t post the whole code, is there any way to
find exactly at which line this error has occured/occurring?

The error message should say that (along with the file name). For
example, when I put a “break” on the top level, I get the message

(some path)/main.rb:11: Invalid break
(some path)/main.rb: compile error (SyntaxError)

So the error is on line 11 of main.rb

or just post the error message.

Error message: unexpected break
Backtrace: …/worker/executor.rb:141:in run1'../client/run2.rb:45:inrun_on_browser’…/client/client.rb:48…/client/client.rb:36:in
initialize'../client/client.rb:36:innew’…/client/client.rb:36…/client/client.rb:34:in
`each’…/client/client.rb:34

What’s the exact error stack?

something like

a.rb:1:in <main>': undefined local variable or methodhello’ for
main:Object (NameError)

or just post the error message.

On Mon, Oct 8, 2012 at 10:29 PM, ajay paswan [email protected]
wrote:

As this is a big program, and I don’t know exactly at which line am
getting the error, so can’t post the whole code, is there any way to
find exactly at which line this error has occured/occurring?


Posted via http://www.ruby-forum.com/.


Silence is gold.

twitter: @areverie
wikipedia: AleiPhoenix
blog: weblog.areverie.org
wiki: wiki.areverie.org

On Mon, Oct 8, 2012 at 5:13 PM, ajay paswan [email protected]
wrote:

or just post the error message.

Error message: unexpected break
Backtrace: …/worker/executor.rb:141:in `run1’…/client/run2.rb:45:in

Please check executor.rb, line 141 and show us what’s there (and
around there).

run_on_browser'../client/client.rb:48../client/client.rb:36:ininitialize’…/client/client.rb:36:in
new'../client/client.rb:36../client/client.rb:34:ineach’…/client/client.rb:34

Jesus.

hey am new to ruby programming. can someone help me in installing the
software and getting started? pl mail me if u can spend ur valuable time
for me
my email id is : [email protected]