Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot start Julia in Atom (LoadError: ArgumentError: Juno not found in path)

I installed Atom and uber-juno as instructed by Julia's homepage, but when I tried to start Julia in Atom, I was given the following error:

ERROR: LoadError: ArgumentError: Juno not found in path
 in require at loading.jl:249
 in include at boot.jl:261
 in include_from_node1 at loading.jl:320
 in process_options at client.jl:280
 in _start at client.jl:378
while loading C:\Users\think\.atom\packages\julia-client\script\boot.jl, in expression starting on line 36
like image 445
Yuanchu Dang Avatar asked Sep 09 '16 20:09

Yuanchu Dang


People also ask

How do you run Julia on the Atom?

To use the console, simply type in a command and hit Enter . This will run the command in Julia (the first time a command is run, the connection between Julia and Atom will be installed, taking a bit more time). To clear the console, use the command Ctrl+j followed by Ctrl+c .

How do you open the Atom Juno?

In Atom, go to Settings ( Ctrl+, , or Cmd+, on macOS. Note that this is Control plus comma!) and go to the "Install" panel. Type uber-juno into the search box and hit enter.


3 Answers

I think you are doing using Juno inside Atom. Juno.jl is a separate package for developing Juno plugins.

Fist save a new file with a .jl extension and type some Julia code (or open an existing .jl file) in Atom, then press SHIFT + ENTER with the cursor in the block of code that you want to evaluate, you should see the result, ie.

1 + 1 # type SHIFT + ENTER

A bubble notification will pop up with the value 2 (when you just start Atom you will see a spinning gear icon until Juno is ready to evaluate a block of code).

enter image description here

like image 132
HarmonicaMuse Avatar answered Sep 22 '22 14:09

HarmonicaMuse


This isn't really a question for StackOverflow, it's a package/installation discussion. There was a new version tagged this morning which makes use of the new Juno.jl package where the front end stuff is held (this will be useful for package developers since it will allow them to extend Juno / add extra functionality for their packages which interact with Juno, adding only a light dependency). However, Juno.jl is not yet a registered package, leading to this mess.

One way to deal with this problem is to install the development version of the package:

Pkg.clone("https://github.com/JunoLab/Juno.jl")

However, this is not recommended for most users since you'll be at the bleeding edge (you may also need to do [Pkg.checkout(x) for x in ["Media", "Blink", "Atom"]] and use the dev install. So while this would fix this for right now, this will put you on the bleeding edge, a version which does not have a guarantee of stability. Thus, don't do this unless you're really familiar with Julia. (If you didn't see this error and immediately know to check Github for Juno.jl and use Pkg.clone, then you likely shouldn't be using this solution because you will get many random errors coming up all the time due to being on the development version!)

Otherwise, wait for the fix. This error is known, someone opened the issue here. The standard uber-juno install should be fixed up shortly.

If you want more help see the Juno Gitter or the Juno discussion board.

like image 41
Chris Rackauckas Avatar answered Sep 22 '22 14:09

Chris Rackauckas


I just re-installed Atom and ran into the same problem. The problem comes from line 31 of ~/.atom/package/julia-client/script/boot.jl which is using Juno. Comment out this line and then Packages > Julia > Start Julia works.

like image 21
Nels Avatar answered Sep 23 '22 14:09

Nels