Recompiles even if there is no changes
See original GitHub issuesteps
mkdir -p test/project
cd test
echo "sbt.version=1.0.1" > project/build.properties
echo "addSbtPlugin(\"com.eed3si9n\" % \"sbt-buildinfo\" % \"0.7.0\")" > project/plugins.sbt
echo "enablePlugins(BuildInfoPlugin)" > build.sbt
mkdir -p src/main/scala
echo "object Test {}" > src/main/scala/Test.scala
sbt ~test:compile
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from /Users/joangoyeau/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/joangoyeau/Code/test/project
[info] Loading settings from build.sbt ...
[info] Set current project to test (in build file:/Users/joangoyeau/Code/test/)
[info] Compiling 2 Scala sources to /Users/joangoyeau/Code/test/target/scala-2.12/classes ...
[info] Done compiling.
[success] Total time: 5 s, completed 08-Sep-2017 14:26:50
1. Waiting for source changes... (press enter to interrupt)
[info] Compiling 2 Scala sources to /Users/joangoyeau/Code/test/target/scala-2.12/classes ...
[info] Done compiling.
[success] Total time: 1 s, completed 08-Sep-2017 14:26:57
2. Waiting for source changes... (press enter to interrupt)
[info] Compiling 2 Scala sources to /Users/joangoyeau/Code/test/target/scala-2.12/classes ...
[info] Done compiling.
[success] Total time: 1 s, completed 08-Sep-2017 14:27:06
3. Waiting for source changes... (press enter to interrupt)
[info] Compiling 2 Scala sources to /Users/joangoyeau/Code/test/target/scala-2.12/classes ...
[info] Done compiling.
[success] Total time: 1 s, completed 08-Sep-2017 14:27:16
4. Waiting for source changes... (press enter to interrupt)
[success] Total time: 0 s, completed 08-Sep-2017 14:27:16
5. Waiting for source changes... (press enter to interrupt)
[info] Compiling 2 Scala sources to /Users/joangoyeau/Code/test/target/scala-2.12/classes ...
[info] Done compiling.
[success] Total time: 1 s, completed 08-Sep-2017 14:27:26
6. Waiting for source changes... (press enter to interrupt)
problem
It recompiles even if there is no changes.
expectation
Should recompile only if there is changes?
notes
sbt version: 1.0.1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:13 (7 by maintainers)
Top Results From Across the Web
why does my Makefile keep recompiling when there are no ...
When I do make -f Makefile , makefile compiles and creates program1 every time, even when the file exists and no changes were...
Read more >Why does my target always get recompiled, even if nothing ...
My Makefile keeps recompiling the executable file ( .out ) even if nothing has changed in source code. The target has some dependencies...
Read more >"cargo run" recompiles my code even when no changes have ...
I've got this strange issue where every time I do cargo run , cargo recompiles all my code for some reason, even when...
Read more >Maven recompiles every time, even when code has not been ...
I have the problem that every time I run maven, it tells "Changes detected - recompiling the module!" and recompiles everything, even if...
Read more >Arduino IDE compiles project every time, even if no changes ...
Is this normal? Actually, I keep sketchbook folder on the network drive on the NAS, but I have tried to move it to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closed with https://github.com/sbt/sbt/pull/3634.
Hi @dwijnand, sorry I didn’t give that before. I updated with the issue with the reproduction steps.