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

Irrefutable pattern failed with IHaskell on Sage Math Cloud #694

Closed
vaibhavsagar opened this Issue Sep 30, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@vaibhavsagar
Collaborator

vaibhavsagar commented Sep 30, 2016

I'm trying to get the IHaskell kernel on Sage Math Cloud, and I have it working when I open a notebook with another kernel, and then switch to IHaskell as the kernel afterwards. When opening a notebook using IHaskell, however, the kernel dies immediately. The error I'm getting is

ihaskell: src/IHaskell/IPython/Message/Parser.hs:(63,5)-(68,51): Irrefutable pattern failed for pattern Data.Aeson.Types.Internal.Success (messageType,
                                                                                         username,
                                                                                         messageUUID,
                                                                                         sessionUUID)

so I had a look on the issue tracker and found #532 which suggested running ihaskell install --debug and looking at the output. I'm attaching jupyter-notebook.log but I believe the JSON that is causing the pattern match to fail is

{"username":"username","version":"5.0","msg_id":"0146B99A12FF46B18DE371FC7156C20D","msg_type":"comm_info_request","session":"9FCE21090B0C4690A60A3CF87A23871E"}

I noticed in #532 that IHaskell has certain requirements for the values of the required keys, so I was wondering if some incompatibility here is what's causing the pattern match to fail and the kernel to die? Or do you think the issue lies elsewhere?

@emhoracek

This comment has been minimized.

Contributor

emhoracek commented Oct 3, 2016

It says the msg_type is comm_info_request, but I don't see that listed here:

https://github.com/gibiansky/IHaskell/blob/master/ipython-kernel/src/IHaskell/IPython/Types.hs#L201

Could that be the problem?

comm_info_request documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment