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

Doesn't report error status in execute_reply msg #113

Closed
jayendra13 opened this issue Oct 4, 2018 · 15 comments
Closed

Doesn't report error status in execute_reply msg #113

jayendra13 opened this issue Oct 4, 2018 · 15 comments

Comments

@jayendra13
Copy link
Contributor

Version info

matlab        : 9.5.0.944444 (R2018b)
matlab_kernel : 0.15.1

I am running a matlab code with matlab_kernel having a syntax error, and tracking the messages from the iopub channel.
This is the execute_reply msg from the iopub channel.

{'buffers': [],
 'content': {u'execution_count': 1,
             u'payload': [],
             u'status': u'ok',
             u'user_expressions': {}},
 'header': {u'date': datetime.datetime(2018, 10, 4, 6, 11, 22, 642374, tzinfo=tzutc()),
            u'msg_id': u'1f698f2d-0d99bf43400c21a4a318708d',
            u'msg_type': u'execute_reply',
            u'session': u'94bae730-e12ee227be016e5e947bf704',
            u'username': u'jayendra',
            u'version': u'5.3'},
 'metadata': {u'started': u'2018-10-04T06:11:22.406073Z'},
 'msg_id': u'1f698f2d-0d99bf43400c21a4a318708d',
 'msg_type': u'execute_reply',
 'parent_header': {u'date': datetime.datetime(2018, 10, 4, 6, 11, 16, 937573, tzinfo=tzutc()),
                   u'msg_id': u'e5c2386c-c924e5654ae5e26a59336730',
                   u'msg_type': u'execute_request',
                   u'session': u'3851d47e-5fda30d441f1814fdb335ba5',
                   u'username': u'jayendra',
                   u'version': u'5.3'}}

When matlab encounter the error while executing the code, the status (under the content ) should be error instead of ok.

ref: https://jupyter-client.readthedocs.io/en/stable/messaging.html#request-reply

@blink1073
Copy link
Contributor

Thanks for the report, @jayendra13! I suspect this problem exists in metakernel, which the matlab_kernel is built upon. I don't have the cycles currently to dig into it...

@jayendra13
Copy link
Contributor Author

Thanks @blink1073 for the prompt response.
This thing is critical to my project, should I re-raise this in metakernel repo ?
or can you give any pointers where should I look for this ?

@blink1073
Copy link
Contributor

I suspect it is here. Yes, please, I think the issue is better suited on that repo.

@jayendra13
Copy link
Contributor Author

moved here
Calysto/metakernel#175

@jayendra13
Copy link
Contributor Author

@blink1073 I think this could be issue a issue Calysto/metakernel#175 (comment)

@jayendra13 jayendra13 reopened this Oct 5, 2018
@jayendra13
Copy link
Contributor Author

@blink1073 I have made some fixes for this, how can submit a PR ?

@blink1073
Copy link
Contributor

Are the fixes here, in metakernel, or both?

@jayendra13
Copy link
Contributor Author

only here.

@blink1073
Copy link
Contributor

Great! Is this your first time making a PR on Github?

@jayendra13
Copy link
Contributor Author

oh yes,
I think flow is like fork the repo, do commit there and ask repo maintainer to merge the fork.

@jayendra13
Copy link
Contributor Author

or you can give me access to push a new branch here ?

@blink1073
Copy link
Contributor

blink1073 commented Oct 5, 2018

  1. Fork the repo
  2. Create a new branch for the changes
  3. Commit your changes to the branch
  4. Push the branch to your origin
  5. Open a PR on github
  6. I'll review and merge

@blink1073
Copy link
Contributor

This site looks pretty good for an overview: https://services.github.com/on-demand/github-cli/open-pull-request-github

@jayendra13
Copy link
Contributor Author

Done please review that.
Thanks

@blink1073
Copy link
Contributor

Fixed by #114.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants