# Revise includet issue

**URL:** <https://discourse.julialang.org/t/revise-includet-issue/22734>\
**Category:** General Usage\
**Created:** [April 4, 2019, 7:21am UTC](https://discourse.julialang.org/t/revise-includet-issue/22734 "2019-04-04T07:21:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [April 4, 2019, 7:21am UTC](https://discourse.julialang.org/t/revise-includet-issue/22734/1 "2019-04-04T07:21:51Z")

</div>

I have issues including a file with Revise, while it works with normal include.  
[The file](https://gist.github.com/cserteGT3/82782de7bf071281c28cba950c2158e7). (You may need [this](https://gist.github.com/cserteGT3/49930f0c4f189f4539bb0966bdadff61) file too.)  
Normal include:

```julia
julia> include("generatesamples.jl")
Main.samples

julia> using .samples

julia> makemeanexample();

julia> makemeanexample(true);

julia> makemeanexample(true, all=true);

```

Include with Revise (in a new session):

```julia
julia> using Revise
[Info: Recompiling stale cache file C:\Users\cstamas\.julia\compiled\v1.1\Revise\M1Qoh.ji for Revise [295af30f-e4ad-537b-8983-00126c2a3abe]

julia> includet("generatesamples.jl")
┌ Warning: error evaluating in module Main.samples: function makemeanexample(nois=false; all=false)
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:196 =#
│ (vp1, np1) = sampleplane(SVector(0, 0, 0), SVector(0, 0, 1), SVector(1, 3, 0), (13.7, 9.58), (96, 112))
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:197 =#
│ (vc1, nc1) = samplecylinder(SVector(0, 0, 1), SVector(0, 0, 0), 15, 15, (100, 150))
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:198 =#
│ (vc2, nc2) = samplecylinder(SVector(-3, 2, 1), SVector(0.9, 1.8, -2.3), 7, 9, (150, 100))
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:200 =#
│ vs = vcat(vp1, vc1, vc2)
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:201 =#
│ ns = vcat(np1, nc1, nc2)
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:202 =#
│ if nois
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:203 =#
│ vs_n = noisifyvertices(vs, all)
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:204 =#
│ ns_n = noisifynormals(ns, 35)
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:205 =#
│ nsfp2_ = normalsforplot(vs_n, ns_n)
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:206 =#
│ return (vs_n, ns_n, nsfp2_)
│ end
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:208 =#
│ nsfp_ = normalsforplot(vs, ns)
│ #= C:\Users\cstamas\Documents\GIT\BMEstuff\Diplomaterv\generatesamples.jl:209 =#
│ return (vs, ns, nsfp_)
│ end
│ exception =
│ UndefVarError: makemeanexample not defined
│ Stacktrace:
│ [1] #collect_args#33(::Bool, ::Function, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\cstamas\.julia\packages\JuliaInterpreter\T2Nfv\src\interpret.jl:64
│ [2] collect_args at C:\Users\cstamas\.julia\packages\JuliaInterpreter\T2Nfv\src\interpret.jl:139 [inlined]
│ [3] #evaluate_call_recurse!#37(::Bool, ::Function, ::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\cstamas\.julia\packages\JuliaInterpreter\T2Nfv\src\interpret.jl:211
│ [4] evaluate_call_recurse! at C:\Users\cstamas\.julia\packages\JuliaInterpreter\T2Nfv\src\interpret.jl:205 [inlined]
│ [5] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\cstamas\.julia\packages\JuliaInterpreter\T2Nfv\src\interpret.jl:371
│ [6] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\cstamas\.julia\packages\JuliaInterpreter\T2Nfv\src\interpret.jl:499
│ [7] signature(::Any, ::JuliaInterpreter.Frame, ::Any, ::Int64) at C:\Users\cstamas\.julia\packages\LoweredCodeUtils\o2uGg\src\LoweredCodeUtils.jl:140
│ [8] signature at C:\Users\cstamas\.julia\packages\LoweredCodeUtils\o2uGg\src\LoweredCodeUtils.jl:149 [inlined]
│ [9] correct_name!(::Any, ::JuliaInterpreter.Frame, ::Int64, ::Symbol, ::Symbol) at C:\Users\cstamas\.julia\packages\LoweredCodeUtils\o2uGg\src\LoweredCodeUtils.jl:285
│ [10] #methoddef!#3(::Bool, ::Function, ::Any, ::Array{Any,1}, ::JuliaInterpreter.Frame, ::Any, ::Int64) at C:\Users\cstamas\.julia\packages\LoweredCodeUtils\o2uGg\src\LoweredCodeUtils.jl:381
│ [11] (::getfield(LoweredCodeUtils, Symbol("#kw##methoddef!")))(::NamedTuple{(:define,),Tuple{Bool}}, ::typeof(LoweredCodeUtils.methoddef!), ::Function, ::Array{Any,1}, ::JuliaInterpreter.Frame, ::Expr, ::Int64) at .\none:0
│ [12] #methods_by_execution!#12(::Bool, ::Bool, ::Function, ::Any, ::Revise.CodeTrackingMethodInfo, ::Dict{Module,Array{Expr,1}}, ::JuliaInterpreter.Frame) at C:\Users\cstamas\.julia\packages\Revise\17Klc\src\lowered.jl:79
│ [13] #methods_by_execution! at C:\Users\cstamas\.julia\packages\Revise\17Klc\src\lowered.jl:0 [inlined]
│ [14] #methods_by_execution!#9(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol,Symbol},NamedTuple{(:define, :skip_include),Tuple{Bool,Bool}}}, ::Function, ::Any, ::Revise.CodeTrackingMethodInfo, ::Dict{Module,Array{Expr,1}}, ::Module, ::Expr) at C:\Users\cstamas\.julia\packages\Revise\17Klc\src\lowered.jl:46
│ [15] #methods_by_execution! at .\none:0 [inlined]
│ [16] #eval_with_signatures#57(::Bool, ::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:skip_include,),Tuple{Bool}}}, ::Function, ::Module, ::Expr) at C:\Users\cstamas\.julia\packages\Revise\17Klc\src\Revise.jl:344
│ [17] #instantiate_sigs!#58(::Bool, ::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:skip_include,),Tuple{Bool}}}, ::Function, ::OrderedCollections.OrderedDict{Module,OrderedCollections.OrderedDict{Revise.RelocatableExpr,Union{Nothing, Array{Any,1}}}}) at .\none:0
│ [18] #track#63(::Bool, ::Bool, ::Function, ::Module, ::String) at .\none:0
│ [19] #track at .\none:0 [inlined]
│ [20] includet(::String) at C:\Users\cstamas\.julia\packages\Revise\17Klc\src\Revise.jl:623
│ [21] top-level scope at none:0
│ [22] eval(::Module, ::Any) at .\boot.jl:328
│ [23] eval_user_input(::Any, ::REPL.REPLBackend) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\REPL\src\REPL.jl:85
│ [24] run_backend(::REPL.REPLBackend) at C:\Users\cstamas\.julia\packages\Revise\17Klc\src\Revise.jl:848
│ [25] (::getfield(Revise, Symbol("##70#72")){REPL.REPLBackend})() at .\task.jl:259
└ @ Revise C:\Users\cstamas\.julia\packages\Revise\17Klc\src\lowered.jl:49

```

Versions:

```julia
julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, ivybridge)

(v1.1) pkg> st
    Status `C:\Users\cstamas\.julia\environments\v1.1\Project.toml`
  [537997a7] AbstractPlotting v0.9.6
  [c52e3926] Atom v0.8.3
  [6e4b80f9] BenchmarkTools v0.4.2
  [5ae59095] Colors v0.9.5
  [31a5f54b] Debugger v0.3.0
  [67fdca37] Displaz v1.0.0
  [e30172f5] Documenter v0.22.1
  [997ab1e6] DocumenterMarkdown v0.2.0
  [5789e2e9] FileIO v1.0.6
  [f7f18e0c] GLFW v2.3.0
  [e9467ef8] GLMakie v0.0.5
  [28b8d3ca] GR v0.39.0 ⚲
  [4d00f742] GeometryTypes v0.7.3
  [7073ff75] IJulia v1.18.0
  [6218d12a] ImageMagick v0.7.1
  [c601a237] Interact v0.10.2
  [033835bb] JLD2 v0.1.2
  [e5e0dc1b] Juno v0.7.0
  [fc18253b] LazyJSON v0.1.1
  [ee78f7c6] Makie v0.9.3
  [dbd62bd0] MakieGallery v0.0.6
  [283c5d60] MeshCat v0.6.0
  [6ad125db] MeshCatMechanisms v0.3.0
  [7269a6da] MeshIO v0.3.1
  [66fc600b] ModernGL v1.0.0
  [510215fc] Observables v0.2.3
  [9b87118b] PackageCompiler v0.6.3+ #master (https://github.com/JuliaLang/PackageCompiler.jl.git)
  [91a5bcdd] Plots v0.24.0
  [df47a6cb] RData v0.6.0
  [ce6b1742] RDatasets v0.6.1
  [dee08c22] RegionTrees v0.2.0
  [295af30f] Revise v2.0.5
  [366cf18f] RigidBodyDynamics v1.4.0
  [6038ab10] Rotations v0.11.1
  [90137ffa] StaticArrays v0.10.3
  [65254759] StatsMakie v0.0.4
  [8603256b] ZChop v0.3.3

```

The weird thing that with normal include it’s perfectly fine, and I don’t understand what’s Revise’s issue.  
Earlier `includet()` worked with this file, but don’t know which version was.
