-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Juno freezes during single line execution via "shift + enter" #405
Comments
The weird thing is: When I copy the code to the REPL the code will be evaluated. And after I executed the code in the REPL and then use shift + enter Juno also gives a positive check mark. |
Are you sure the code isn't just taking a while to execute? |
Yes I´m sure. I waited several minutes (approx. 5 min) and the evaluation time in the REPL and in IJulia takes just a few seconds. Also the "run all" doesn´t work for me correctly anymore. I have reinstalled Atom and Juno and the Julia packages for Atom and Juno, but it doesn´t solve the problem. Only when I run a script via include in the REPL the code will be executed. |
Can you paste the Juno debug info here (which you can get with the |
Atom:Version: 1.41.0 julia-client:Version: 0.11.2 ink:Version: 0.11.5 uber-juno:Version: 0.3.0 language-julia:Version: 0.19.1 language-weave:not installedindent-detective:Version: 0.4.0 latex-completions:Version: 0.3.6 Could not connect to Julia. |
Ok, so Julia isn't even properly starting up (or at least we can't communicate with it). Are there any error messages in the integrated REPL? If not, please open the dev tools with Ctrl-Shift-I and look in the console there. |
spell-check:en-us The package The plugin checked the following paths for dictionary files:
|
Hm. Can you start Julia outside of Atom (e.g. with the |
julia> versioninfo() (v1.2) pkg> status |
Ok, that looks correct. Does |
I think so. I typed the following in the REPL outside of Atom. I also tested the package with Pkg.test("Atom"). All tests passed, but there was also an error message ┌ Error: MethodError(Tokenize.Tokens.RawToken, (Tokenize.Tokens.EQEQ, (7, 12), (7, 14), 118, 119, Tokenize.Tokens.NO_ERR, false), 0x000000000000662c). I don´t know if it helps you. julia> using Atom julia> using Pkg julia> Pkg.test("Atom") |
Do you have now an idea what reasons the problem? |
For all who have the same problem. My current workaround is to use the versions (versions, which ares by JuliaPro 1.2.0-1): Julia packages: Atom packages: |
Apparently something goes wrong when installing newer julia-client versions, which then subtly breaks some functionality. If you find the time, check whether you're seeing any errors in the Atom developer console (opened with Ctrl-Shift-I) after starting a Julia process (with a recent version of julia-client, of course). |
I assume that this specific problem is caused by change in the Juno package, because I faced another problem (the Julia REPL inside of Atom exits directly after starting it) with package configuration above, so that I updated all packages to recent version except the Juno package. But sure I will investigate it also with the recent version of the Juno package. |
This shows the console after I stopped Juno because of the freezing problem: Julia Boot: 0.36s |
I now work on the latest versions of all packages except for the Atom package. I use currently the version 0.9.1. Maybe this hint will help you to find the bug. |
I believe I am having the same problem. Everything works perfectly on my Mac. I installed Julia + Atom on my work computer (running Windows 7.1) and Julia seems to work fine, but trying to execute a single line of code from atom (or trying to execute a file), results in the Julia REPLE freezing. I've tried two versions of Julia: 1.4 and 1.3.1. I get the same result. |
Can you check this issue? It's likely the issue is Revise-related. |
Thanks for the rapid response. I don't think so. I checked, and I do not have a startup.jl file in either of my Julia directories. Is there something else I should check? |
I uninstalled Atom and all packages and reinstalled it hoping that would solve the issue. I installed only the package 'julia-client 0.12.4', which installed two dependencies: 'ink 0.12.3' and 'language-julia 0.19.3.' I'm still having the same error. I can start Julia in the REPL and execute commands (from within Atom), but as soon as I put a .jl file in focus, the Julia instance freezes, and I can no longer execute code at that point, and no amount of time seems to help. I eventually have to quit Atom and restart it. |
Does that happen for any file you open (even for a new file)? Did you make sure your Julia packages are up-to-date (you should be on [email protected]). |
I verified, through the Pkg API, that I have Atom v0.12.10. I did this through the Atom REPL window. I then typed a few simple commands into the REPL (2+2, 3+3, etc), all of which worked. I then loaded a blank .jl file and my REPL Julia instance froze. |
does this mean literally loading a file, i.e. run |
Yes. I made a file called 'helloworld.jl' that only had 'println('hello, world!'),' and the REPL froze as soon as I clicked on the file tab. I then created a new empty file (name = 'untitled'). Putting this file into focus did nothing (REPL still worked fine). Then I saved it as 'helloworld.jl,' overwriting the previous file, and as soon as I did that the REPL froze. I also deleted every copy of Julia and Atom on my computer (including all Atom package files) and reinstalled Atom and Julia, then add only Juno, which installed about 8 different packages. I then removed packages one by one until I only had the following three packages installed: 'julia-client 0.12.4', 'ink 0.12.3', and 'language-julia 0.19.3.' Any fewer, and I could not run Julia. With each package I removed, I check to see if the error was still present (it was). As I mentioned, if I remove any of the remaining three packages, I no longer have Julia functionality in Atom. So, I'm pretty sure the error is caused by one of those three packages. I think that one of the packages is trying to read the Julia file when it comes into focus and is having some kind of error that is causing it to freeze. I also left it in this frozen state for ~ 1 hour. It never recovered (i.e., I eliminated the possibility that it was performing some process that was simply taking a long time). This is an installation on my work computer, which is an i7 from about 2012, running Windows 7.1. On my MacBook Pro (running OS X) everything works perfectly. Furthermore, I have Windows 10 running on Parallels on my MacBook Pro; when I install the same configuration on the MBP/Parallels/Win 10 environment, it works perfectly. |
Thanks for your try to debug. Well, we kinda know what might be happening, and I guess repeating uninstall/installing each package is not so fun :P Instead of that, can you share us with the debug info ? |
I am struggling with the similar issue. Sometimes when I focus on the REPL its not responsive. The code in the editor window runs just fine, except that bottom console REPL is totally frozen. I can't restart it without closing and starting again Atom, which is very annoying. Happened yesterday couple of times. I am using GNU/Linux Debian and atom 1.50 while Julia packages are Juno v0.8.3 and Atom v0.12.19. |
Maybe! But it's super strange, cause Ctrl+s normally triggers search right? Furthermore, ctrl+c should revert it (it does work with Python's repl), but in Juno only Ctrl+q unblocks it and Ctrl+c does nothing when its locked. |
Well, that is a terminal feature, not a REPL or shell feature. You can however add |
Details
Steps to reproduce
Sometimes when I try to load packages i.e.
and hold shift + enter for some seconds to execute some specific lines. Or when I use CSV.read. The same code in IJulia doesn´t make this problem.
The text was updated successfully, but these errors were encountered: