# Julia REPL lost abruptly

**URL:** https://discourse.pumas.ai/t/julia-repl-lost-abruptly/699
**Category:** JuliaHub (technical issues)
**Created:** [June 16, 2022, 7:48pm UTC](https://discourse.pumas.ai/t/julia-repl-lost-abruptly/699 "2022-06-16T19:48:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rahulub3r](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/rahulub3r/32/182_2.png) [@Rahulub3r](https://discourse.pumas.ai/u/Rahulub3r)
#### Post date: [June 16, 2022, 7:48pm UTC](https://discourse.pumas.ai/t/julia-repl-lost-abruptly/699/1 "2022-06-16T19:48:24Z")

</div>

Hi - after the recent update of Juliahub, I am getting the following error \>5 times every session (~5-6 hours). I am having to reload the JuliaREPL window and run everything from the start again due to not finding the REPL. Please let me know how to resolve this. Thanks.

![image](https://canada1.discourse-cdn.com/flex030/uploads/pumas/original/1X/446023e4a576ce5b5284ac57f44090f6f3cee393.png)

---

<div class="post-metadata">

### Author: ![korsbo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/korsbo/32/123_2.png) [@korsbo](https://discourse.pumas.ai/u/korsbo)
#### Post date: [June 17, 2022, 8:26am UTC](https://discourse.pumas.ai/t/julia-repl-lost-abruptly/699/2 "2022-06-17T08:26:36Z")

</div>

Hi,

that sounds really disruptive and annoying!

Does the REPL stay open such that you can enter commands directly into it (e.g. `print("hello")`) and that those work but that you can’t send code from your documents to the REPL with `shift + enter`? If so, then it seems like the connection between the language server (which does your highlighting and figures out what code to send to the REPL) and your REPL is broken. I have no idea why it would be breaking but there might be a better way to re-establish the connection than by restarting the REPL.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/pumas/original/1X/e315947ea72b86eb8099ab374ee13b65cabf5554.png)

`shift ctrl p` to bring up the command palette and search for “connect to external repl”. Once clicked, you’ll get a notification  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/pumas/original/1X/c14e82a1be0be7c7381ce0ff25da0fc566844bdb.png)

Now, click the REPL and `Ctrl+V` to paste that code before hitting enter.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/pumas/original/1X/44b3fe19307da576bf5daf090facb32ce9fd0bdd.png)

This should re-establish the connection without you loosing any progress. It’s treating the symptom more than the disease though so I’ll ask around to see if anyone knows what might break the connection in the first place.

---

<div class="post-metadata">

### Author: ![Rahulub3r](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/rahulub3r/32/182_2.png) [@Rahulub3r](https://discourse.pumas.ai/u/Rahulub3r)
#### Post date: [June 17, 2022, 1:10pm UTC](https://discourse.pumas.ai/t/julia-repl-lost-abruptly/699/3 "2022-06-17T13:10:05Z")

</div>

I haven’t checked if I can execute the code in the REPL directly. I will check it when I face the issue again and share an update then.  
Thank you for the solution on connecting the existing REPL to the language server. I will try that when I face the issue again or until the “disease” is cured.

---

<div class="post-metadata">

### Author: ![Rahulub3r](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/rahulub3r/32/182_2.png) [@Rahulub3r](https://discourse.pumas.ai/u/Rahulub3r)
#### Post date: [June 17, 2022, 1:16pm UTC](https://discourse.pumas.ai/t/julia-repl-lost-abruptly/699/4 "2022-06-17T13:16:07Z")

</div>

Well, it did not take long for me to face the issue again. I was able to execute code in the REPL directly. Subsequently, “Connect external REPL” option worked handsomely. Thank you, Niklas!
