# Why julia exit from REPL?

**URL:** <https://discourse.julialang.org/t/why-julia-exit-from-repl/35445>\
**Category:** General Usage\
**Created:** [March 3, 2020, 8:32am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445 "2020-03-03T08:32:08Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 8:32am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/1 "2020-03-03T08:32:08Z")

</div>

Hi,  
an oddity in the early morning …

I am in REPL (on windows 10). Julia exit from REPL … but why???

```julia
julia> x = 1
1

julia> x = [1,2,3,4]

C:\vmswap\juliaPrj\querere>

```

It exits ? … due to what ???  
Did something break in my Julia installation?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 3, 2020, 8:43am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/2 "2020-03-03T08:43:21Z")

</div>

Can you replicate this behavior reliably? What do you press after the last `]`?

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 8:50am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/3 "2020-03-03T08:50:17Z")

</div>

I start julia repl, i write “x = [1,2]” i hit return and julia repl exits …

```julia
c:\vmswap\juliaPrj\querere>julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.3.1 (2019-12-30)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> x = [1 ,2]

c:\vmswap\juliaPrj\querere>

```

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [March 3, 2020, 8:59am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/4 "2020-03-03T08:59:18Z")

</div>

That is not supposed to happen. Many people including myself are using Julia on Windows and it works perfectly fine. It is hard to figure out what’s going on, in particular because there is no error message. I guess the first thing to try is to do a fresh install of Julia and perhaps also delete your `~/.julia` folder.

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [March 3, 2020, 9:15am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/5 "2020-03-03T09:15:22Z")

</div>

Is there anything in your `startup.jl` file? Or have you modified any other config files? Environmental variables?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 3, 2020, 9:29am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/6 "2020-03-03T09:29:22Z")

</div>

Could be some weird customization in your environment or startup file. Did you change anything recently, eg

> [@Problem in running Julia on Juno](https://discourse.julialang.org/t/problem-in-running-julia-on-juno/35412/3):
>
> Ok, reinstalled Taro … oh, it’s this one JULIA\_COPY\_STACKS, that i manually added so system environment variabile (i have windows 10). julia\> import Taro [Info: Precompiling Taro [61d0e4fa-4e73-5030-88a9-ae4c27b203dd] ┌ Warning: JavaCall needs the environment variable `JULIA_COPY_STACKS` to be `1` or `yes`. │ Calling the JVM may result in undefined behavior. └ @ JavaCall C:\Users\dario\.julia\packages\JavaCall\0wJQZ\src\JavaCall.jl:38 ┌ Warning: JavaCall needs the environment variable `JULIA\_C…

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 9:45am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/7 "2020-03-03T09:45:42Z")

</div>

Thanks to all …

Yesterday I reinstalled several times in effect, due to that environment variable needed in taro.jl …  
I tried PDFIO.jl and it seems to me it works well on pdf, so I won’t use taro.jl.  
I try to reinstall everything, then I can tell you …  
It also seems to me that Juno is going a little bad, that is, he is slow to start Julia … ok, I reinstall everything.

I disintall and delete .atom , .julia ecc …

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 9:52am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/8 "2020-03-03T09:52:22Z")

</div>

Handcuffing, I thought that maybe there are several bugs under windows, but if you say so, I think I can trust …

Since Julia’s scope is academic, I thought maybe Julia was more stable in osx / linux / unix. Isn’t that so?

Since you use windows, what editor do you use? juno or visualcode? or other?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 3, 2020, 10:00am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/9 "2020-03-03T10:00:11Z")

</div>

> [@Darione](#):
>
> I try to reinstall everything, then I can tell you …

Reinstalling stuff is probably overkill, I would start with rolling back changes in config files.

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 10:07am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/10 "2020-03-03T10:07:46Z")

</div>

> [@Tamas\_Papp](#):
>
> rolling back changes in config files.

Emh … what should I do ??

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 3, 2020, 10:15am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/11 "2020-03-03T10:15:39Z")

</div>

Revert changes that you made before it stopped working. But we cannot tell what those changes were.

Since you are not providing the information requested (eg what @Skoffer asked for), I am sorry but I cannot help you.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [March 3, 2020, 10:51am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/12 "2020-03-03T10:51:47Z")

</div>

I reproduced the issue with setting  
set JULIA\_COPY\_STACKS=1  
as you did in

> [@Taro package ... what is this JULIA\_COPY\_STACKS?](https://discourse.julialang.org/t/taro-package-what-is-this-julia-copy-stacks/35417):
>
> Setting JULIA\_COPY\_STACKS 1 or yes, make Taro package working … but it breaks the REPL of Juno, that doesn’t load Julia … What is this JULIA\_COPY\_STACKS ? how can i use Taro package without breaking the juno REPL ? julia\> import Taro ┌ Warning: JavaCall needs the environment variable `JULIA_COPY_STACKS` to be `1` or `yes`. │ Calling the JVM may result in undefined behavior. └ @ JavaCall C:\Users\dario\.julia\packages\JavaCall\0wJQZ\src\JavaCall.jl:38

So, you should remove this environment variable again.

Than I created a new julia environment to check Taro.jl and added it without any problem:

```julia
(v1.3) pkg> activate .
Activating new environment at `C:\Users\USER\.julia\environments\Taro\Project.toml`

(Taro) pkg> add Taro.jl
 Resolving package versions...
 Installed WinReg ─── v0.3.1
 Installed JavaCall ─ v0.7.3
 Installed Taro ───── v0.8.0
  Updating `C:\Users\USER\.julia\environments\Taro\Project.toml`
  [61d0e4fa] + Taro v0.8.0
  Updating `C:\Users\USER\.julia\environments\Taro\Manifest.toml`
  [9a962f9c] + DataAPI v1.1.0
  [864edb3b] + DataStructures v0.17.10
  [e2d170a0] + DataValueInterfaces v1.0.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [494afd89] + JavaCall v0.7.3
  [bac558e1] + OrderedCollections v1.1.0
  [3783bdb8] + TableTraits v1.0.0
  [bd369af6] + Tables v0.2.11
  [61d0e4fa] + Taro v0.8.0
  [1b915085] + WinReg v0.3.1
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8ba89e20] + Distributed
  [b77e0a4c] + InteractiveUtils
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [de0858da] + Printf
  [9a3f8284] + Random
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [8dfed614] + Test
  [4ec0a83e] + Unicode
  Building Taro → `C:\Users\USER\.julia\packages\Taro\B3v9c\deps\build.log`

julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)
Environment:
  JULIA_PKGDIR = c:\Program Files\Julia-0.6.2\packages\
  JULIA_SHELL = C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

```

So, I am afraid, that your windows system is somehow messy.

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 11:06am UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/13 "2020-03-03T11:06:25Z")

</div>

Mmmm … to delete everything, i have to disinstall julia from control panel → programs … and the same for juno … after i delete c:\users\dario.julia and c:\users\dario.juno …

Do I forget something else to start from scratch? mmm, restarting windows …

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 12:02pm UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/14 "2020-03-03T12:02:36Z")

</div>

Ok, i delete Juno, reinstalled Juia, and now i am usign Visual Studio Code.  
I see it is not necessary to reinstall anything in Visual Studio Code, it works all again.  
Many thanks to all.

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 11:16pm UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/15 "2020-03-03T23:16:57Z")

</div>

I can not believe it … the REPL broke again … I worked this time with Visual Studio Code and Julia in the afternoon and everything was fine, reboot tonight, and here you are again that the REPL does not work … this time I have not dealt with any variable system …

```julia
C:\Users\dario>julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.3.1 (2019-12-30)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> x=[1,2]

C:\Users\dario>

```

---

<div class="post-metadata">

**Author:** ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)\
**Post date:** [March 3, 2020, 11:20pm UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445/16 "2020-03-03T23:20:07Z")

</div>

I have restart windows now, i test again the same x=[1,2] in repl, and now it does NOT break.

Well … at least it is not something that concerns Juno, because I no longer have it installed, and I am using Visual Studio Code. But the breaking of the REPL, it happened even if I started from a command prompt …

But now works ok …
