Do not reload everything on first repl/refresh

Description

This might be too big of a change, but I figured I should give it a shot anyway.

It might be just me, but I find it weird that first repl/reload reloads everything regardless of what has changed.

The way I use tools.namespace is:

  1. Start REPL

  2. Do some changes

  3. Reload

  4. Do more changes

  5. Reload

So the fact of just starting the Clojure process/REPL already means we are loading current version of everything. So when I do reload at (3), I expect to only update namespaces that have changed after (1).

Expected: (3) only reloads namespaces changed after (1)
Actual: (3) reloads every namespace it can find

Second reload (5) and all reloads after that work as expected, no change is required.

Environment

None

Attachments

1
  • 17 Jan 2024, 07:49 PM

Activity

Show:

Details

Assignee

Reporter

Patch

Code

Priority

Created January 17, 2024 at 7:42 PM
Updated January 17, 2024 at 7:50 PM