Skip to content

REPL Crash on Second Start #356

@hamzashahid-blit

Description

@hamzashahid-blit

Hi, I used to use CEPL a lot. A month after I left it, it doesn't work the same.

## Let Me Explain
Right after creating my project normally with quickproject, cl-project or even CEPL's own cepl:make-project. I load the project and running cepl:repl works flawlessly, first try. On a restart of Sly, Slime or Emacs (all of which I have tested thoroughly on), on doing the same steps minus the project creation, then running cepl:repl yeilds a window which does not draw and does not respond (meaning it says "not responding"). It doesn't even give me back control of the REPL and instead presents me with a "REPL is busy" message. It also doesn't give me an error and the only option I have is to xkill the application.

## Steps to Reproduce
For this example, I am going to use the "Sly" REPL and the code is going to be from https://github.com/cbaggers/cepl.examples though this works on any code created with CEPL

  1. git clone https://github.com/cbaggers/cepl.examples
  2. cd cepl.examples
  3. Open a new Sly REPL connection
  4. (ql:quickload :cepl.examples)
  5. (in-package :cepl.examples)
  6. (load (compile-file "examples/game-of-life.lisp"))
  7. (cepl:repl)
  8. (run-loop)

Everything should work uptill now, display the window properly and work as expected. Time for the restart:

  1. Close all instances of Emacs and/or REPLs
  2. Run through steps 2 to 6 then follow the note below.

Between the bottom two, the order doesn't matter, because, as soon as Step 7 is run, the REPL averses from me.
7. (cepl:repl)
8. (run-loop)

This is my first propper issue, so please forgive my mistakes in formatting or otherwise. Thanks.

Edit: Add the restarting steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions