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

Cell evaluation fails when done too early after opening #15

Open
ggreif opened this issue Nov 28, 2016 · 2 comments
Open

Cell evaluation fails when done too early after opening #15

ggreif opened this issue Nov 28, 2016 · 2 comments

Comments

@ggreif
Copy link

ggreif commented Nov 28, 2016

After opening a worksheet with associated .hs file (Main module) and too soon evaluating a cell, I get:

<interactive>:2:1: Not in scope: `Hyper.displayIO'
<interactive>:3:1: Not in scope: `mooreImg'
<interactive>:5:38: Not in scope: type constructor or class `IO'
<interactive>:5:41:
    Not in scope: type constructor or class `Graphic'

A remedy could be

  • disabling evaluation until the interpreter is ready
  • delaying submission of evaluation request until the interpreter is ready
@HeinrichApfelmus
Copy link
Owner

HyperHaskell is currently not very good at finding out when the interpreter is ready. At the moment, it simply waits ~2.4 seconds and hopes for the best.

// FIXME: more accurate indication that the interpreter process is ready
setTimeout(whenReady, 2400)

@HeinrichApfelmus
Copy link
Owner

I finally managed to do something about this in commit aef5e80 : The interpret now sends a message back to the window to signal that it is ready. Does that help?

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

No branches or pull requests

2 participants