C
C#2y ago
Angius

❔ ✅ Rider is out of its mind about `async` code

I updated Rider and now it wants me to return tasks straight instead of awaiting them, as in
async Task<int> BarAsync() => ...;
async Task<int> FooAsync() => BarAsync();
async Task<int> BarAsync() => ...;
async Task<int> FooAsync() => BarAsync();
instead of
async Task<int> BarAsync() => ...;
async Task<int> FooAsync() => await BarAsync();
async Task<int> BarAsync() => ...;
async Task<int> FooAsync() => await BarAsync();
and wants me to use .ConfigureAwait() literally everywhere The first one is a bad practice since it leads to bad stack traces, and the second one is arguable at best, bad practice at worst. What changed?
6 Replies
Angius
AngiusOP2y ago
Or maybe I'm tripping balls and Rider is actually right and gives me good advice
Angius
AngiusOP2y ago
Rider, wtf, who hurt you baby...?
Angius
AngiusOP2y ago
Turns out it was a plugin named Async Converter
arion
arion2y ago
Some rider plugins are bad, but sometimes u get rare jewels. I remember seeing some plugins that alert the user when their reflection is likely to fail, or when you write code that results in a closure
ero
ero2y ago
With that spelling and grammar I would not have thought that that's a native Rider feature
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server