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.

0.26 backward incompatibility

See original GitHub issue

Our Android app has heavy use of coroutines. But after upgrade from 0.25.3 to 0.26.x, the code stopped working.

Sure, I know about new CoroutineScope and I’m definitely gonna refactor it to use that (no one wants 100 deprecation warnings, right) later, but I’d like to have it working first.

Our typical coroutine builder look like this: launch(UI, parent = job).

Are there some known incompatibilites? Something particular I should look for? I’ve already spent couple of hours on it and couldn’t find anything.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
qwwdfsadcommented, Sep 27, 2018

No changes in our code.

That’s probably the problem. For example, if you had following code:

launch {
  launch { // <- is invoked on outer launch scope
    // do something
  }
  // do something else 
}

after update it will behave diffrently, because launch defines its own scope. To preserve compatibility, rewrite is as

GlobalScope.launch {
  GlobalScope.launch {
  }
}

0reactions
Pitelcommented, Oct 2, 2018

Also, adding GlobalScope to each launch and async makes the app work with Courtines 0.30.

We’ll now of course start adding scopes, and see where it breaks.

Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backward Compatibility - Bazel 0.26.0
Backward Compatibility. Bazel is evolving, and we will make changes to Bazel that at times will be incompatible and require some changes from...
Read more >
Changelog — argh 0.26.3-dev documentation - Read the Docs
Version 0.26.3-dev¶. Backward incompatible changes: Dropped support for Python 2.6. ... This breaks backward compatibility. If your code is really outdated, ...
Read more >
Backward compatibility effects in younger and older adults
The first experiment found clear backward response compatibility effects for younger adults but no evidence of them for older adults. The second ...
Read more >
Upgrade ksqlDB
Most releases of ksqlDB are backward compatible. But backward compatibility comes at a cost: progress is slower and the code base incurs ...
Read more >
SoCo 0.17 release notes — SoCo 0.26.4 documentation
The changes to SoCo to accommodate the Sonos API changes as of version 10.1 are backwards incompatible. This means that if SoCo is...
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