Skip to content
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

"no method matching get_workers" after 3.7.0 #880

Open
dpinol opened this issue Jan 10, 2025 · 2 comments · May be fixed by #884
Open

"no method matching get_workers" after 3.7.0 #880

dpinol opened this issue Jan 10, 2025 · 2 comments · May be fixed by #884

Comments

@dpinol
Copy link

dpinol commented Jan 10, 2025

After upgrading from 3.6.5 to 3.7.0, I consistently get this error when I revise after changing my code.
I have julia 1.10.7

I couldn't create an MWE, but it looks like it only occurs using it with Jive.jl.
Comparing the 3.7.0 changes with the exception I get, I guess it's related to #871

┌ Error: Exception revising code
│   e =
│    MethodError: no method matching get_workers()
│    The applicable method may be too new: running in world age 31555, while current world is 31745.
│    
│    Closest candidates are:get_workers() (method too new to be called from this world context.)
│       @ DistributedExt ~/.julia/packages/Revise/CawM1/ext/DistributedExt.jl:9
│    
│   current_exceptions() =2-element ExceptionStack:
│    MethodError: no method matching get_workers()
│    The applicable method may be too new: running in world age 31555, while current world is 31745.
│    
│    Closest candidates are:get_workers() (method too new to be called from this world context.)
│       @ DistributedExt ~/.julia/packages/Revise/CawM1/ext/DistributedExt.jl:9
│    
│    Stacktrace:
│     [1] (::Revise.var"#106#107"{Bool})()
│       @ Revise ~/.julia/packages/Revise/CawM1/src/packagedef.jl:823
│     [2] lock(f::Revise.var"#106#107"{Bool}, l::ReentrantLock)
│       @ Base ./lock.jl:229
│     [3] #revise#105
│       @ ~/.julia/packages/Revise/CawM1/src/packagedef.jl:806 [inlined]
│     [4] revise
│       @ ~/.julia/packages/Revise/CawM1/src/packagedef.jl:804 [inlined]
│     [5] reviseLoop(fileToInclude::String)
│       @ Main ~/source/repos/sc-tools/ci/revise.jl:77
│     [6] top-level scope
│       @ ~/source/repos/sc-tools/ci/revise.jl:93
│     [7] include(mod::Module, _path::String)
│       @ Base ./Base.jl:495
│     [8] exec_options(opts::Base.JLOptions)
│       @ Base ./client.jl:323
│     [9] _start()
│       @ Base ./client.jl:557
│    
│    caused by: MethodError: no method matching get_workers()
│    The applicable method may be too new: running in world age 31555, while current world is 31745.
│    
│    Closest candidates are:get_workers() (method too new to be called from this world context.)
│       @ DistributedExt ~/.julia/packages/Revise/CawM1/ext/DistributedExt.jl:9
│    
│    Stacktrace:
│      [1] (::Revise.var"#80#82"{OrderedCollections.OrderedDict{Revise.RelocatableExpr, Union{Nothing, Vector{Any}}}, OrderedCollections.OrderedDict{Revise.RelocatableExpr, Union{Nothing, Vector{Any}}}})()
│        @ Revise ~/.julia/packages/Revise/CawM1/src/packagedef.jl:313
│      [2] with_logstate(f::Function, logstate::Any)
│        @ Base.CoreLogging ./logging.jl:515
│      [3] with_logger
│        @ ./logging.jl:627 [inlined]
│      [4] delete_missing!
│        @ ~/.julia/packages/Revise/CawM1/src/packagedef.jl:284 [inlined]
│      [5] delete_missing!(mod_exs_sigs_old::OrderedCollections.OrderedDict{Module, OrderedCollections.OrderedDict{Revise.RelocatableExpr, Union{Nothing, Vector{Any}}}}, mod_exs_sigs_new::OrderedCollections.OrderedDict{Module, OrderedCollections.OrderedDict{Revise.RelocatableExpr, Union{Nothing, Vector{Any}}}})
│        @ Revise ~/.julia/packages/Revise/CawM1/src/packagedef.jl:348
│      [6] handle_deletions(pkgdata::Revise.PkgData, file::String)
│        @ Revise ~/.julia/packages/Revise/CawM1/src/packagedef.jl:717
│      [7] (::Revise.var"#106#107"{Bool})()
│        @ Revise ~/.julia/packages/Revise/CawM1/src/packagedef.jl:818
│      [8] lock(f::Revise.var"#106#107"{Bool}, l::ReentrantLock)
│        @ Base ./lock.jl:229
│      [9] #revise#105
│        @ ~/.julia/packages/Revise/CawM1/src/packagedef.jl:806 [inlined]
│     [10] revise
│        @ ~/.julia/packages/Revise/CawM1/src/packagedef.jl:804 [inlined]
│     [11] reviseLoop(fileToInclude::String)
│        @ Main ~/source/repos/sc-tools/ci/revise.jl:77
│     [12] top-level scope
│        @ ~/source/repos/sc-tools/ci/revise.jl:93
│     [13] include(mod::Module, _path::String)
│        @ Base ./Base.jl:495
│     [14] exec_options(opts::Base.JLOptions)
│        @ Base ./client.jl:323
│     [15] _start()
│        @ Base ./client.jl:557
@JamesWrigley
Copy link
Contributor

Thanks for the report, could you try #884 and see if that fixes it?

@dpinol
Copy link
Author

dpinol commented Jan 15, 2025

@JamesWrigley it works, thanks! 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants