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.

Incrementally compiling after certain code changes produces LinkingException

See original GitHub issue

As reported on the gitter channel, I and many others are seeing LinkingExceptions being thrown. Now I have a reasonably easy reproducible case.

Steps:

  1. Clone https://github.com/payalabs/scalajs-tutorial/tree/linking-error
  2. From sbt, ~fastOptJS
  3. Rename count in the Data class to countx. You will see a compilation error (as expected).
  4. Rename countx back to count.

You will see a LinkingException.

This exception won’t go until you do one of the following:

  1. clean followed by fastOptJS
  2. Change (adding a line is fine) both Data.scala and TutorialApp.scala

One caveat: In our app, when we get an error, clean has rarely helped. So there may be another condition under which such an exception is produced, but for now, I don’t have a reproducible case for that.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
sjrdcommented, Sep 2, 2019

Fixed in 78682118e626ec729836ecffa19f55f6e07ed369.

0reactions
cquirozcommented, Sep 3, 2019

👏 Great

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incremental compilation | Apple Developer Forums
After compiling the error was still there, but the gestures wre still ... New code, no, vs. changes/edits to existing code, certain build...
Read more >
remark: Incremental compilation has been disabled: it is not ...
I faced with issue after updating Xcode to version 13. As the compiler complains about whole module compilation, we need to use the ......
Read more >
CHANGES.md · master · POTTIER Francois / menhir
Internal changes in the expansion of %inline symbols, eliminating certain useless variable renamings that would appear in semantic actions after expansion.
Read more >
Overleaf wont compile even though there is no error - TeX
Sometimes it is worth to just try compiling after some time. My document which was not compiling just started to compile properly after...
Read more >
Xcode Build Time Optimization - Part 1 - On Swift Wings
Incremental build - rebuilding a project after some source code changes. This build is created by a developer while working on a new...
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