Julia's execution using Juno gets blocked because of not being able to access the console

237 views Asked by At

In another question: Juno IDE for Julia, how to interact?

One of the answers stated:

You can't enter commands into the console in Juno--that's for displaying output. Commands can be submitted from within the editor by setting your cursor in the line to submit and pressing Ctrl+Enter or Shift+Enter. The value will then be displayed in a small popup next to the line and the output will be printed to the console if you have the console visible.

Note that the inability to use the console as you desire is by design. See here for information about the console from the Juno docs.

I am encountering an issue that might make this design decision a bit impractical at times.

First, let me say that I am new to Julia and Juno (not to coding, just trying to learn Julia now), so there might be a way to fix this and I do not know about it.

I am using the package RCall, that allows to include R code into Julia, so I am trying to install some R packages. One of the packages is asking me a "y/n:" question and I cannot answer it because I cannot access the console, and sending code from the editor to the console using command+Enter is blocked (because the console line is executing).

To reproduce this issue (note that R 3.2.0 or above needs to be installed, and I had to restart Juno after installing RCall for it to work):

Pkg.add("RCall")
Pkg.build("RCall")

restart Juno

using RCall
reval("install.packages(\"rgdal\")")

A pop-up will appear asking to select a mirror, just choose 0 and OK. Then the package is asking me if I want to install some dependencies "y/n:" and the whole execution is blocked.

I guess that this can be fixed just by using Julia from the command line (and forgetting about Juno), but I like to use IDEs.

Do you have any ideas about how to circumvent this issue? or another IDE for Julia?

0

There are 0 answers