# Revise and commenting out lines in package

**URL:** <https://discourse.julialang.org/t/revise-and-commenting-out-lines-in-package/112385>\
**Category:** General Usage\
**Tags:** question, revise\
**Created:** [April 1, 2024, 6:22pm UTC](https://discourse.julialang.org/t/revise-and-commenting-out-lines-in-package/112385 "2024-04-01T18:22:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![p\_f](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@p\_f](https://discourse.julialang.org/u/p_f)\
**Post date:** [April 1, 2024, 6:22pm UTC](https://discourse.julialang.org/t/revise-and-commenting-out-lines-in-package/112385/1 "2024-04-01T18:22:26Z")

</div>

Say I have a package that looks like this:

```julia
module test_pkg
    include("file1.jl")
    # include("file2.jl")

    export f
end # module test_pkg

##file1.jl:
f() = print("file 1")
##file2.jl
f() = print("file 2")

```

Revise doesn’t seem to track changes when I comment / uncomment file1 / file2. Is that just not something Revise is capable of? I kind of just expected it to work, but just spent a couple hours debugging some code before realising Revise isn’t behaving how I expected.

Here is an example, where it respects the first comment/uncomment, but not the next:

```julia
julia> using Revise
julia> using test_pkg
julia> f()
file 1
#comment 'include("file1.jl")', uncomment 'include("file2.jl")'
julia> f()
file 2
#comment 'include("file2.jl")', uncomment 'include("file1.jl")'
julia> f()
file 2
julia> f()
file 2

```
