Your debug run configuration in IntelliJ needs two main items configured for it to work well with the :run
task.
- It needs to use "listen" mode instead of the default "attach".
- "Auto restart" needs to be enabled.
The config should look something like this:
Importing the project should have set this up for you however.