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
REPL auto mode not working #42
Comments
Works for me. If I take julia> using Revise
julia> push!(LOAD_PATH, pwd())
3-element Array{Any,1}:
"/home/tim/src/julia-1.0/usr/local/share/julia/site/v0.7"
"/home/tim/src/julia-1.0/usr/share/julia/site/v0.7"
"/tmp"
julia> using ReviseTestModule
julia> testfunc(2)
5
# Now go edit ReviseTestModule.jl and save it
julia> testfunc(2)
6 Might the problem be that you didn't name the file according to your module name? I saved your file as |
Changed the name to ReviseTestModule, and used
|
Weird. OK, before you say |
Since Pkg.status("Revise") is 0.0.8 here. |
It started working. Possibly the module filename was the necessary change. I will try reproducing, but if the bug doesn't reproduce, the issue can be closed. |
The problem inducing change was the addition of a But the issue can be closed, I suppose. |
OK, thanks for tracking it down! |
Closed too early. The problem reappeared. I've narrowed it to a simple single line change which causes it.
and
They produce the problem but only when |
Update: It isn't related to running the tracked function. Any printout to screen, makes the REPL stealing mechanism fail. In the above example |
@getzdan, thanks so much for persisting with this and coming up with a much clearer picture of what's happening. There's only one problem: your nicely-reduced test case doesn't behave for me the way it does for you---everything works properly for me. So I can't easily fix this. I am running 0.6 because DataStructures doesn't build on current 0.7. Can you also reproduce this on 0.6? I see that you provided julia> versioninfo()
Julia Version 0.6.1-pre.0
Commit dcf39a1 (2017-06-19 13:06 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, broadwell) Specifically I am running (K)ubuntu 16.04. To me this seems likely to be a libuv bug on your platform, but not sure. Can anyone else reproduce this? |
I should have thought of this earlier: see #54. |
Can't get automatic
revise()
calls from the REPL to work.The following is a M(not)WE:
test_revise.jl
test_module.jl
And the REPL session (with version info embedded)
The Package tests run fine. But, admittedly, it is hard to automatically test an interactive REPL. And as evolutionary bugology dictates this is where bugs will hide. Seems
steal_repl_backend()
is running alright, but there is bothBase.active_repl
andBase.active_repl_backend
which left me confused. Anybody else seeing this? Is it reproducing? Which versions are afflicted?The text was updated successfully, but these errors were encountered: