# Julia can not start inside Atom

**URL:** <https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923>\
**Category:** Juno\
**Created:** [December 22, 2018, 3:49pm UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923 "2018-12-22T15:49:23Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 8:45am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/21 "2019-01-10T08:45:22Z")

</div>

```julia
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> C:\Users\user\AppData\Local\Julia-1.0.3\bin\julia.exe
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.0.3 (2018-12-18)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia>

```

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 8:48am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/22 "2019-01-10T08:48:11Z")

</div>

![Julia%20Ctr%20Shift%20I](https://global.discourse-cdn.com/julialang/original/3X/3/8/38aa94df456891e9a7e2a0c8710fd3f198e45b10.jpeg)

---

<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:** [January 10, 2019, 8:51am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/23 "2019-01-10T08:51:52Z")

</div>

Can you click the “Console” tab and show another screenshot?

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 8:54am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/24 "2019-01-10T08:54:10Z")

</div>

![Console](https://global.discourse-cdn.com/julialang/original/3X/6/3/630ac5ffa45dd63806b379452f579609870f1515.jpeg)

---

<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:** [January 10, 2019, 8:59am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/25 "2019-01-10T08:59:06Z")

</div>

Sorry, I meant the one in the upper right (in the dev tools).

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 9:03am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/26 "2019-01-10T09:03:28Z")

</div>

```julia
local.coffee:105 Julia exited with .
(anonymous) @ local.coffee:105
internal/process/next_tick.js:188 Uncaught (in promise) 
internal/process/next_tick.js:188 Uncaught (in promise) disconnected
local.coffee:105 Julia exited with .
(anonymous) @ local.coffee:105
internal/process/next_tick.js:188 Uncaught (in promise) 
internal/process/next_tick.js:188 Uncaught (in promise) disconnected
local.coffee:105 Julia exited with .
(anonymous) @ local.coffee:105
internal/process/next_tick.js:188 Uncaught (in promise) 
internal/process/next_tick.js:188 Uncaught (in promise) disconnected
local.coffee:105 Julia exited with .
(anonymous) @ local.coffee:105
internal/process/next_tick.js:188 Uncaught (in promise) 
internal/process/next_tick.js:188 Uncaught (in promise) disconnected
local.coffee:105 Julia exited with .
(anonymous) @ local.coffee:105
internal/process/next_tick.js:188 Uncaught (in promise) 
internal/process/next_tick.js:188 Uncaught (in promise) disconnected
local.coffee:105 Julia exited with .
(anonymous) @ local.coffee:105
internal/process/next_tick.js:188 Uncaught (in promise) 
internal/process/next_tick.js:188 Uncaught (in promise) disconnected
local.coffee:105 Julia exited with .
(anonymous) @ local.coffee:105
internal/process/next_tick.js:188 Uncaught (in promise) 
internal/process/next_tick.js:188 Uncaught (in promise) disconnected

```

 ![Console%20D](https://global.discourse-cdn.com/julialang/original/3X/a/1/a132cdc743beff1ab26d942e44ab4b5b982a9f63.jpeg)

---

<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:** [January 10, 2019, 9:08am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/27 "2019-01-10T09:08:05Z")

</div>

Hm, that’s not terribly helpful… Can you try disabling the `Powershell Wrapper` option and switch the `Console Mode` to `REPL-based`, restart Atom, and try starting Julia again?

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 9:19am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/28 "2019-01-10T09:19:03Z")

</div>

I have also tried with those options, but without results.  
this is the current configuration:

 ![Julia%20Settings](https://global.discourse-cdn.com/julialang/original/3X/3/7/370220d15fe8445804ac7842d88b561e181d1788.jpeg)

---

<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:** [January 10, 2019, 9:22am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/29 "2019-01-10T09:22:49Z")

</div>

Hmm… this is all very weird.

When you start with “Console Style” set to “REPL-based” and try to start Julia, do you see anything in the Julia REPL (Ctrl-J Ctrl-O to open that one)?

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 9:27am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/30 "2019-01-10T09:27:54Z")

</div>

![Julia%20Settings](https://global.discourse-cdn.com/julialang/original/3X/3/1/316c5341691f33d1f18d276943033c6a8e3033b0.jpeg)

```julia
Julia could not be started.
We tried to launch Julia from:
C:\Users\user\AppData\Local\Julia-1.0.3\bin\julia.exe
This path can be changed in the settings.
Close All
Uncaught TypeError: Cannot read property 'classList' of undefined
C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\InputHandler.js:724
Hide Stack Trace
TypeError: Cannot read property 'classList' of undefined
    at InputHandler.setMode (C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\InputHandler.js:724:44)
    at Array.<anonymous> (C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\InputHandler.js:106:84)
    at EscapeSequenceParser.parse (C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\EscapeSequenceParser.js:401:40)
    at InputHandler.parse (C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\InputHandler.js:183:22)
    at Terminal._innerWrite (C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\Terminal.js:907:32)
    at C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\Terminal.js:889:23
The error was thrown from the ink package. This issue has already been reported.

```

> [Enter steps to reproduce:]
> 
> 1. …
> 2. …
> 
> **Atom** : 1.34.0 x64  
> **Electron** : 2.0.16  
> **OS** : Unknown Windows version  
> **Thrown From** : [ink](https://github.com/JunoLab/atom-ink) package 0.9.14
> 
> ### Stack Trace
> 
> Uncaught TypeError: Cannot read property ‘classList’ of undefined
> 
> ```julia
> At C:\Users\user\.atom\packages\ink\node_modules\xterm\lib\InputHandler.js:724
> 
> TypeError: Cannot read property 'classList' of undefined
> at InputHandler.setMode (/packages/ink/node_modules/xterm/lib/InputHandler.js:724:44)
> at /packages/ink/node_modules/xterm/lib/InputHandler.js:106:84)
> at EscapeSequenceParser.parse (/packages/ink/node_modules/xterm/lib/EscapeSequenceParser.js:401:40)
> at InputHandler.parse (/packages/ink/node_modules/xterm/lib/InputHandler.js:183:22)
> at Terminal._innerWrite (/packages/ink/node_modules/xterm/lib/Terminal.js:907:32)
> at /packages/ink/node_modules/xterm/lib/Terminal.js:889:23
> 
> ```
> 
> ### Commands
> 
> ```julia
> -4:11.4.0 julia-client:start-julia (atom-pane.pane.active)
> -3:57.5.0 julia-client:settings (atom-pane.pane.active)
> 
> ```
> 
> ### Non-Core Packages
> 
> ```julia
> Hydrogen 2.7.0 
> indent-detective 0.3.1 
> ink 0.9.14 
> julia-client 0.7.12 
> language-julia 0.18.0 
> latex-completions 0.3.6 
> tool-bar 1.1.11 
> uber-juno 0.2.0 
> 
> ```

---

<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:** [January 10, 2019, 9:39am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/31 "2019-01-10T09:39:56Z")

</div>

That `Cannot read property 'classList' of undefined` error is unrelated, unfortunately.

1. Can you try restarting Atom, and then open the REPL tab  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/8/d87a6aaf933a95291c1c24033b56f6e78a0c5b2d.png)  
and then just press Enter? You might get a more informative error message there.
2. If that doesn’t help, try renaming `C:\Users\user\.atom` to `C:\Users\user\.atom.bak`, reinstall Juno and try again.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 9:53am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/32 "2019-01-10T09:53:59Z")

</div>

> [@pfitzseb](#):
>
> and then open the REPL tab

I do not see, I do not have access to open the REPL tab!!!  
Any combination of keys to launch REPL within Atom?

Even when I click on the STAR JULIA menu. The “REPL” window does not appear:

 ![Julia%20REPL](https://global.discourse-cdn.com/julialang/original/3X/2/5/2503b99929ae817890533a02687ae51839bc9336.jpeg)

---

<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:** [January 10, 2019, 10:05am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/33 "2019-01-10T10:05:33Z")

</div>

> [@HerAdri](#):
>
> I do not see, I do not have access to open the REPL tab!!!  
> Any combination of keys to launch REPL within Atom?

Yes, Ctrl-J Ctrl-O should do the trick. Or you use the toolbar button, or the `Julia Client: Open Console` command.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 10:34am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/34 "2019-01-10T10:34:50Z")

</div>

Complete the two steps in:  
[post #31](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/31)  
And I continue to present the problem:

 ![ReinstalledJuno](https://global.discourse-cdn.com/julialang/original/3X/7/7/772f687a9c0c39ce8421f0f530e914e3e6560773.jpeg)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 11:06am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/35 "2019-01-10T11:06:56Z")

</div>

I have installed Julia 0.7.0 and Julia 1.0.3.

 ![Jilia%20070%20103](https://global.discourse-cdn.com/julialang/original/3X/6/1/61847982bb7cb9b03559b90fabd85d377ac89396.jpeg)

When opening Atom for the first time after following the two steps of post # 31, Atom starts with Julia 0.7.0. But the error continues

---

<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:** [January 10, 2019, 11:28am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/36 "2019-01-10T11:28:33Z")

</div>

Can you paste the following code into the Atom developer console and give me the output?

```julia
require('child_process').exec('C:\\Users\\user\\AppData\\Local\\Julia-1.0.3\\bin\\julia.exe --version', function(err, stdout, stderr) {
  if (err) {
    console.log(err)
  }
  let res = stdout.match(/(\d+)\.(\d+)\.(\d+)/)
  if (res) {
    console.log(res)
  } else {
    console.log('failed:')
    console.log(stdout)
  }
})

```

For me it looks like this:

 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/0/2/0258e581ee2e243aa013d3e88d81aeb330b91b35.png)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 11:31am UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/37 "2019-01-10T11:31:48Z")

</div>

> [@pfitzseb](#):
>
> require(‘child\_process’).exec(‘C:\Users\user\AppData\Local\Julia-1.0.3\bin\julia.exe --version’, function(err, stdout, stderr) { if (err) { console.log(err) } let res = stdout.match(/(\d+).(\d+).(\d+)/) if (res) { console.log(res) } else { console.log(‘failed:’) console.log(stdout) } })

```julia
require('child_process').exec('C:\\Users\\user\\AppData\\Local\\Julia-1.0.3\\bin\\julia.exe --version', function(err, stdout, stderr) {
  if (err) {
    console.log(err)
  }
  let res = stdout.match(/(\d+)\.(\d+)\.(\d+)/)
  if (res) {
    console.log(res)
  } else {
    console.log('failed:')
    console.log(stdout)
  }
})
ChildProcess {domain: null, _events: {…}, _eventsCount: 2, _maxListeners: undefined, _closesNeeded: 3, …}
VM1619:3 Error: spawn cmd.exe ENOENT
    at _errnoException (util.js:1024)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190)
    at onErrorNT (internal/child_process.js:372)
    at _combinedTickCallback (internal/process/next_tick.js:138)
    at process._tickCallback (internal/process/next_tick.js:180)
VM1619:9 failed:
VM1619:10 

```

---

<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:** [January 10, 2019, 12:41pm UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/38 "2019-01-10T12:41:18Z")

</div>

Aha, that’s interesting (and weird).

The problem is that Atom (or rather, node) can’t find `cmd` – there are two possible causes for this:

1. You don’t have `C:\WINDOWS\system32` on your path – please check that in the Windows’ environment variables settings.
2. Atom fails to pick up the correct environment variables. Try starting Atom by typing `atom` into a cmd/powershell session and try the code snippet again.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 1:42pm UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/39 "2019-01-10T13:42:42Z")

</div>

Starting Atom by typing `atom` into a cmd/powershell session and try the code snippet again:

```julia
require('child_process').exec('C:\\Users\\user\\AppData\\Local\\Julia-1.0.3\\bin\\julia.exe --version', function(err, stdout, stderr) {
  if (err) {
    console.log(err)
  }
  let res = stdout.match(/(\d+)\.(\d+)\.(\d+)/)
  if (res) {
    console.log(res)
  } else {
    console.log('failed:')
    console.log(stdout)
  }
})
ChildProcess {domain: null, _events: {…}, _eventsCount: 2, _maxListeners: undefined, _closesNeeded: 3, …}
VM594:7 (4) ["1.0.3", "1", "0", "3", index: 14, input: "julia version 1.0.3↵"]

```

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 10, 2019, 1:53pm UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923/40 "2019-01-10T13:53:39Z")

</div>

![EnvironmentVariables](https://global.discourse-cdn.com/julialang/original/3X/c/1/c1c8a3af48196b9bf41944b44b19c04d15e9f4b3.jpeg)

[Previous page](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923.md?page=1)

[Next page](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923.md?page=3)
