Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts run in interactive mode exit on Error #21233

Closed
Benoit9 opened this issue Mar 30, 2017 · 5 comments · Fixed by #30199
Closed

Scripts run in interactive mode exit on Error #21233

Benoit9 opened this issue Mar 30, 2017 · 5 comments · Fixed by #30199
Assignees
Labels
minor change Marginal behavior change acceptable for a minor release REPL Julia's REPL (Read Eval Print Loop)

Comments

@Benoit9
Copy link

Benoit9 commented Mar 30, 2017

If a script is run in interactive mode:

julia -i myscript.jl arg1 arg2

and it encounters an error, julia exits.

It's as if the script first runs normally, then after it finishes the REPL starts.

I expected (coming from Python) that it would as if the REPL was running the script line-by-line. In that case, the REPL would not exit after an error and let me examine the variables, try to correct the error interactively, etc.

My apologies if it is the intended behavior or if it was discussed before. I couldn't find anything.

@r-barnes
Copy link

I also had this expectation.

@Benoit9
Copy link
Author

Benoit9 commented Sep 7, 2018

I gather from this comment that it is the intended behavior.

Is there any chance that can be changed? Otherwise I should just close this.

@JeffBezanson
Copy link
Member

Yes I think this could be changed.

@JeffBezanson JeffBezanson added REPL Julia's REPL (Read Eval Print Loop) triage This should be discussed on a triage call minor change Marginal behavior change acceptable for a minor release and removed triage This should be discussed on a triage call labels Sep 7, 2018
@JeffBezanson
Copy link
Member

Triage accepts.

@JeffBezanson JeffBezanson added this to the 1.x milestone Sep 13, 2018
@Benoit9
Copy link
Author

Benoit9 commented Sep 14, 2018

Awesome! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor change Marginal behavior change acceptable for a minor release REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants