# How do I make Revise.jl work in multiple workers environment?

**URL:** https://discourse.julialang.org/t/how-do-i-make-revise-jl-work-in-multiple-workers-environment/31474
**Category:** General Usage
**Tags:** question
**Created:** [November 25, 2019, 6:48am UTC](https://discourse.julialang.org/t/how-do-i-make-revise-jl-work-in-multiple-workers-environment/31474 "2019-11-25T06:48:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sijun](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Sijun](https://discourse.julialang.org/u/Sijun)
#### Post date: [November 25, 2019, 6:48am UTC](https://discourse.julialang.org/t/how-do-i-make-revise-jl-work-in-multiple-workers-environment/31474/1 "2019-11-25T06:48:18Z")

</div>

Hello!

I have a simple module file (MyMod.jl), say:

```julia
module MyMod
using Distributed
using Base.Threads

function func()
	println("calling func()")
	r = @spawn sqrt(4)
	fetch(r)
end
end # MyMod

```

Now I do the following in REPL (or include(“mymain.jl”))

```julia
using Distributed
using Base.Threads

@everywhere push!(LOAD_PATH, @ __DIR__ )
@everywhere using MyMod: func

func()

```

It succeeds at first time. However after any changes in func() and call func(), the code fails to run throwing some error message unless I restart Julia:

> call func() 2  
> ERROR: On worker 3:  
> UndefVarError: ##5#6 not defined  
> deserialize\_datatype at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.2\Serialization\src\Serialization.jl:1186  
> handle\_deserialize at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.2\Serialization\src\Serialization.jl:775

Could anyone help me with this?

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [December 3, 2019, 6:50pm UTC](https://discourse.julialang.org/t/how-do-i-make-revise-jl-work-in-multiple-workers-environment/31474/2 "2019-12-03T18:50:10Z")

</div>

If you’re on Julia 1.3 and using Revise 2.3.2, this should now work.

---

<div class="post-metadata">

### Author: ![Sijun](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Sijun](https://discourse.julialang.org/u/Sijun)
#### Post date: [December 3, 2019, 11:26pm UTC](https://discourse.julialang.org/t/how-do-i-make-revise-jl-work-in-multiple-workers-environment/31474/3 "2019-12-03T23:26:20Z")

</div>

Oh it is working very gracefully now. Thank you so much for your time and efforts. Julia without Revise is nothing! 🙂
