question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recompiles even if there is no changes

See original GitHub issue

steps

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:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dwijnandcommented, Oct 26, 2017
1reaction
joan38commented, Sep 8, 2017

Hi @dwijnand, sorry I didn’t give that before. I updated with the issue with the reproduction steps.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found