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

Comments

3 participants
@Benoit9
Copy link

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

This comment has been minimized.

Copy link

commented Apr 27, 2018

I also had this expectation.

@Benoit9

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Member

commented Sep 7, 2018

Yes I think this could be changed.

@JeffBezanson

This comment has been minimized.

Copy link
Member

commented Sep 13, 2018

Triage accepts.

@JeffBezanson JeffBezanson added this to the 1.x milestone Sep 13, 2018

@Benoit9

This comment has been minimized.

Copy link
Author

commented Sep 14, 2018

Awesome! Thank you very much!

@JeffBezanson JeffBezanson self-assigned this Nov 29, 2018

JeffBezanson added a commit that referenced this issue Nov 29, 2018

JeffBezanson added a commit that referenced this issue Nov 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.