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>
Can you click the “Console” tab and show another screenshot?
Sorry, I meant the one in the upper right (in the dev tools).
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
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?
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)?
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:]
- …
- …
Atom: 1.34.0 x64
Electron: 2.0.16
OS: Unknown Windows version
Thrown From: ink package 0.9.14Stack Trace
Uncaught TypeError: Cannot read property ‘classList’ of undefined
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
-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
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
That Cannot read property 'classList' of undefined
error is unrelated, unfortunately.
- Can you try restarting Atom, and then open the REPL tab
and then just press Enter? You might get a more informative error message there. - If that doesn’t help, try renaming
C:\Users\user\.atom
toC:\Users\user\.atom.bak
, reinstall Juno and try again.
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:
Yes, Ctrl-J Ctrl-O should do the trick. Or you use the toolbar button, or the Julia Client: Open Console
command.
Complete the two steps in:
post #31
And I continue to present the problem:
I have installed Julia 0.7.0 and Julia 1.0.3.
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
Can you paste the following code into the Atom developer console and give me the output?
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:
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
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:
- You don’t have
C:\WINDOWS\system32
on your path – please check that in the Windows’ environment variables settings. - 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.
Starting Atom by typing atom
into a cmd/powershell session and try the code snippet again:
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↵"]