Closed AndiMD closed 6 years ago
Are you using the new REPL-based console when the error happens? Can you try switching to the Legacy console in the settings, restart Atom, and try running the code again?
Spot on, thanks! The legacy console works fine. I can use this as a workaround until this is fixed.
Just want to add that I just encountered this same error as well with the new console. I use Memento.jl for logging. It works fine with the legacy console but the new REPL causes the same ERROR: ArgumentError: stream is closed or unusable
error from within my package. Reverting to legacy for now.
MWE: Evaluate the following lines separately:
foo = STDOUT
print(foo, "hi")
Not sure how to best solve this, sadly.
Should be "fixed" by https://github.com/JunoLab/Atom.jl/commit/4907f6e92209c3493f4decc12477b156aa5b34ab.
Disclaimer, I am not sure whether this problem is caused by the Juno package. I can only reproduce it in Juno, not in the standalone Julia REPL.
The call to function get_sol causes a stacktrace if:
get_sol
is defined by running a script file (attached), and the call toget_sol
is run in the REPLget_sol
is defined andget_sol
is called in the same script file, and the script file is run twice without restarting the REPLI am on Kubuntu 17.04, Julia 0.6.2, Atom 1.23.2 x64 with Juno 0.1.2
The script I am trying to run is a modified version of this example http://www.juliafem.org/examples/2017-09-16-convection-diffusion-equation/index ConvectionDiffusionBug.txt
Thanks a lot! Andy