harrah/xsbt — Issue #241: Show warning if .scala or .sbt configuration file changed
Author: jlcheng
Created: 2011-10-24 17:04:18+00:00
State: open

As I am learning SBT, I find myself making changes to .scala configurations and reloading them to test my configurations. Sometimes I forget to type 'reload' in the SBT console and end up being confused at why my last change didn't seem to take effect.

It would be very nice if SBT can "watch" the .sbt and .scala configuration files for change every time a task or command is executed on the SBT console and warn the user of changes, e.g.,

```
> run
[warn] project/Foo.scala has changed since the last "reload".

Multiple main classes detected, select one to run:

[1] com.twitter.finagle.example.echo.EchoClient
[2] com.twitter.finagle.example.echo.EchoServer
```

Or in case more than 1 file was changed:

```
> run
[warn] Configuration files have changed since the last "reload".
```