title: How do I reload a module under development in Julia 1.6?
body: <p>I know this question has been asked and answered before, but none of the many answers work for me as described.</p>
  <p>What is the procedure for reloading a module that I'm working on in Julia (1.6)?</p>
  <p>For example, I have</p>
  <pre><code>module MyModule
  
  export letters
  
  const letters = String('A':'Z')
  
  end
  </code></pre>
  <p>and I want the be able to load the module, make changes to <code>letters</code> in the module's file, and then reload the module and have those changes reflected in subsequent uses of <code>letters</code>. This seems simple enough, but I can't get it to work.</p>
  <p>I've tried</p>
  <pre><code>include(&quot;src/MyModule.jl&quot;)
  using .MyModule
  </code></pre>
  <p>but if I change the definition of <code>letters</code> in <code>MyModule.jl</code> and then</p>
  <pre><code>include(&quot;src/MyModule.jl&quot;)
  </code></pre>
  <p><code>letters</code> doesn't change, unless I fully qualify its use each time with <code>Main.MyModule.letters</code>: <code>using Main.MyModule; letters</code> refers, for example, to the old definition.</p>
  <p>How do I reload a module under development so that I can refer to its definitions without fully qualifying them (and without having an unqualified shadow definition always lying around)?</p>