FAQ

FAQ

I am having issues, where do I leave a bug report?

Please leave bug reports either at the discussion board or at the Juno.jl Github repository.

Juno doesn't work properly after an update. What do I do?

Check whether you have a little red bug symbol in the status bar (lower right):

native bug

If so, click on it and then click on "Rebuild Packages":

native update

Restart Atom and you should be good to go!

Some Juno package is using the wrong precompile cache, what do I do?

This problem manifests itself in errors like:

WARNING: Method definition
WARNING: Module Juno with uuid 738353145462472 is missing from the cache.
ERROR: LoadError: Declaring precompile(false) is not allowed in files that are being precompiled.
ERROR: LoadError: Failed to precompile Atom to C:\Users...

One way this can occur is from updating Julia versions. However, this has a very easy fix. Go into the Julia REPL (not the Juno console in Atom, but the actual Julia terminal window) and type in the command:

using Atom

That will force Julia to re-compile all of the cache files and should fix the problem.

I am having a problem running Juno with an older version of Julia, why?

Juno is under rapid development, so it's expected that previous versions may not be compatible with the Atom packages overtime. Julia will automatically use older versions on the Julia-side packages, but Atom will always give you the most up-to-date packages it knows about, which causes this issue. The easy way to solve this is to always use the current Julia release. Otherwise, resort to the Developer Installation Instructions for the Atom packages and use git to checkout an older version. This requires some git know-how, so it's only recommended if the older version of Julia is truly necessary.

How do I use Juno with the Julia Nightly version?

If you want to use Juno with the nightly version use caution: this package is under rapid development so do so at your own risk. That being said, the Julia nightly should work using the Developer Installation Instructions. Note that this will require you to be on master for the Julia and Atom packages, so things will be changing likely before documentation changes.

How do I execute code on Juno startup?

Much like Julia has its .juliarc.jl file for executing code on startup, Juno will execute code contained in ~/.junorc.jl after Julia has been booted and a connection with the editor is established. This allows running code on startup that queries the frontend, e.g. Juno.syntaxcolors.

Advanced topics

Connecting to a Julia session in a (local) Docker container

Use case: local installation of Juno with a local Docker container

  1. Launch Atom/Juno on your local machine

  2. Spin up your docker container with network_mode:host, ie.

docker run -it --network=host [container_name] julia
  1. In Atom/Juno, bring up The Command Palette and search for Julia Client: Connect External Process

  2. Juno will respond with a Julia command, e.g. using Juno; Juno.connect([Atom port]), where [Atom port] is the port Atom is listening on for the Julia session to connect.

  3. In the Julia session, replace [Atom port] in the following command with the port specified by Atom & enter the following command to connect your Julia session to Atom

For Mac:

using Juno; Juno.connect("docker.for.mac.host.internal", [Atom port])

For Linux (untested):

using Juno; Juno.connect("docker0", [Atom port])

Connecting to an external julia session on a remote machine

Use case: local installation of Juno with a remote julia session

  1. Launch Atom/Juno on your local machine

  2. In Atom/Juno, bring up The Command Palette and search for Julia Client: Connect External Process

  3. Juno will respond with a Julia command, e.g. using Juno; Juno.connect([Atom port]), where [Atom port] is the port Atom is listening on for the Julia session to connect.

  4. Port forwarding: choose a port, [Remote port] for your remote server to use to connect to Atom.

Linux/Unix: Open a local terminal and connect to your remote server : ssh -R [Remote port]:localhost:[Atom port]:your.server.com

Windows: Port forwarding via netsh should work. See here for an example.

  1. Launch julia in the terminal on the remote machine

  2. Type in julia session: using Juno; Juno.connect([Remote port])