# Julia has exited. Press Enter to start a new session

**URL:** <https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035>\
**Category:** General Usage\
**Tags:** juno, bug\
**Created:** [August 27, 2019, 10:44am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035 "2019-08-27T10:44:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![LutinRose](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lutinrose/32/9977_2.png) [@LutinRose](https://discourse.julialang.org/u/LutinRose)\
**Post date:** [August 27, 2019, 10:44am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/1 "2019-08-27T10:44:23Z")

</div>

Hello,

I installed Julia, Atom and Juno-lab on Windows 10 following the steps on the Juno website.  
Julia is working but not in Atom.  
When I try to use Julia in atom in the REPL this is what I got:

> Press Enter to start Julia.

(I press enter)

> Julia has exited. Press Enter to start a new session.

My version of Atom: 1.40.1 x64  
My version of Julia: 1.2.0 (2019-08-20)

This is the details of the errors I have from the console I have (accessing it with CTRL + SHIFT + I):

1st error :

> local.coffee:115 Julia exited with Error: Error launching WinPTY agent: agent executable does not exist: ‘\?\C:\Users\MyUserName.atom\packages\julia-client\node\_modules@pfitzseb\node-pty-prebuilt\build\Release\winpty-agent.exe’.  
> (anonymous) @ local.coffee:115

2nd error:

> C:\Users\MyUserName.atom\packages\julia-client\node\_modules@pfitzseb\node-pty-prebuilt\lib\windowsPtyAgent.js:53 Uncaught (in promise) Error: Error launching WinPTY agent: agent executable does not exist: ‘\?\C:\Users\MyUserName.atom\packages\julia-client\node\_modules@pfitzseb\node-pty-prebuilt\build\Release\winpty-agent.exe’  
> at new WindowsPtyAgent (C:\Users\MyUserName.atom\packages\julia-client\node\_modules@pfitzseb\node-pty-prebuilt\lib\windowsPtyAgent.js:53)  
> at new WindowsTerminal (C:\Users\MyUserName.atom\packages\julia-client\node\_modules@pfitzseb\node-pty-prebuilt\lib\windowsTerminal.js:49)  
> at Object.spawn (C:\Users\MyUserName.atom\packages\julia-client\node\_modules@pfitzseb\node-pty-prebuilt\lib\index.js:29)  
> at basic2.js:93  
> at process.\_tickCallback (internal/process/next\_tick.js:68)

The thing is that I don’t use NodeJS nor have it installed (it does not appear in the Programs File list). I am using Python for University.  
I installed Anaconda too.  
The default Python version of my Windows 10 is Python 2.7.10  
With Anaconda, I have 2 Python envs both at 3.7.3

Thank you for your attention!

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 27, 2019, 10:48am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/2 "2019-08-27T10:48:42Z")

</div>

I suspect that your antivir software removed the `winpty-agent.exe` Juno needs for its REPL. What antivir are you using, and can you access its logs?

---

<div class="post-metadata">

**Author:** ![LutinRose](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lutinrose/32/9977_2.png) [@LutinRose](https://discourse.julialang.org/u/LutinRose)\
**Post date:** [August 27, 2019, 11:15am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/3 "2019-08-27T11:15:47Z")

</div>

I used BitDefender before, but since the licence expired I am using Avast.  
I suspect that this BitDefender that removed the file and since I have deleted it to change to Avast I think there is no way I can access to it’s log.  
Is there a way I can repair this ?

---

<div class="post-metadata">

**Author:** ![LutinRose](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lutinrose/32/9977_2.png) [@LutinRose](https://discourse.julialang.org/u/LutinRose)\
**Post date:** [August 27, 2019, 11:31am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/4 "2019-08-27T11:31:00Z")

</div>

It was Avast.  
Thank you for your help!  
The file was put in quarantine.  
This is the detail of the file put in the quarantine:  
“file infected”: spawnInterruptible.ps1  
“Original file location”: C:\Users\UMyUserName\.atom\packages\julia-clients\script

To add description to the issue I had:  
The first time I launched Atom the REPL worked but was very slow. That was after closing Atom and reopen it that the REPL could not work. By checking the quarantine in the antivirus as pfitzseb told me, I found that my antivirus disabled some functionality of Atom by putting a file in quarantine.

I did not saw this because my antivirus is working with notifications turned off.

---

<div class="post-metadata">

**Author:** ![racinmat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/racinmat/32/11715_2.png) [@racinmat](https://discourse.julialang.org/u/racinmat)\
**Post date:** [March 12, 2020, 3:22pm UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/5 "2020-03-12T15:22:42Z")

</div>

Hi, the `spawnInterruptible.ps1` file should now be whitelisted in Avast, so it should work without problems now.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [March 12, 2020, 3:29pm UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/6 "2020-03-12T15:29:54Z")

</div>

Oh really? Neat.

Note that we got rid of that file in the newest Juno version, so this particular failure mode isn’t really relevant going forward.

---

<div class="post-metadata">

**Author:** ![Geoffrey](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Post date:** [June 3, 2020, 9:18am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/7 "2020-06-03T09:18:05Z")

</div>

Hi, I’m recently experiencing a similar issue with Atom v0.12.14 and Juno v0.8.2 on Julia 1.4.2: I can’t run Julia in the Juno repl (I get the exact same message: `Julia has exited. Press Enter to start a new session.`) but I can boot Julia within an External terminal.  
I have no other antivirus than windows defender so it’s unlikely that this is the cause of the issue.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [June 3, 2020, 9:37am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/8 "2020-06-03T09:37:08Z")

</div>

Please take a look at [this](http://docs.junolab.org/latest/man/update/) and [this](http://docs.junolab.org/latest/man/faq/#Juno-doesn't-work-properly-after-an-Atom-update.-What-do-I-do?-1).

---

<div class="post-metadata">

**Author:** ![Ingo](https://avatars.discourse-cdn.com/v4/letter/i/e19adc/32.png) [@Ingo](https://discourse.julialang.org/u/Ingo)\
**Post date:** [June 5, 2020, 1:26pm UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/9 "2020-06-05T13:26:54Z")

</div>

Hi, I had the same problem (on Windows 10). Solution was (as mentioned in the link that pfitzseb posted), to update Atoms ink to version 0.12.4 (together with the current julia-client 0.12.5)

---

<div class="post-metadata">

**Author:** ![Geoffrey](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Post date:** [June 8, 2020, 3:19pm UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/10 "2020-06-08T15:19:05Z")

</div>

I’ve been busy lately, sorry for the late answer. Indeed, your suggestion correct my problem, many thanks !

---

<div class="post-metadata">

**Author:** ![inasacu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/inasacu/32/18663_2.png) [@inasacu](https://discourse.julialang.org/u/inasacu)\
**Post date:** [October 14, 2020, 8:45am UTC](https://discourse.julialang.org/t/julia-has-exited-press-enter-to-start-a-new-session/28035/11 "2020-10-14T08:45:50Z")

</div>

Worked for me as well. Thanks
