You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some of my projects when check on save runs RA will frequently hang on checking indefinitely (or at least as long as I've had the patience to leave it). After quitting the RA process it'll check just fine. It doesn't always happen, some sessions it happens almost every save, others hardly at all.
The main commonality I've found between projects is the use of uom which I know has seen some issues. I've done my best to try and isolate and debug the issue, but I need further help; so if anyone has suggestions for things to try I'm all ears.
I've tried collecting samples, spindumps and logs with RA_LOG=info and CHALK_LOG=info. Notably, during this indefinite check the logs go so fast that the output window can't keep up.
RA Log Snippet
In the sample of output I managed to copy paste only mentions Implemented(HydraulicGraph<[?0 := _Builder<[]>]>: Deref) the whole way through (all 97 thousand lines starting at 34106ms ending 35053ms). So I suspect it's getting stuck. Here's a small snippet of that:
Process Sample Snippet
Every time I've sampled it always seems to be spending all its time in chalk_recursive::solve:
...
2660 chalk_recursive::solve::SolveIteration::solve_iteration::hdb72846378521f71 (in rust-analyzer) + 4061 [0x1035b223d]
1533 chalk_recursive::fulfill::Fulfill$LT$I$C$Solver$GT$::solve::he3055ce5487d2cc9 (in rust-analyzer) + 2475 [0x1035ada6b]
...
1124 chalk_recursive::fulfill::Fulfill$LT$I$C$Solver$GT$::solve::he3055ce5487d2cc9 (in rust-analyzer) + 1764 [0x1035ad7a4]
...
Next Steps?
I'm rather lost as to what would be helpful to narrow down this issue from here. I'd love to make a minimum reproduction, but I can't even tell what's causing it. It's also somewhat intermittent making debugging harder. Any guidance for how to better debug this would be great.
The text was updated successfully, but these errors were encountered:
@bjorn3 any suggestions for how to debug this and find more useful information? I'm quite happy to do the work – but I need to know where to start as these logs don't provide many clues.
This issue occurs every 5 or 10 minutes and is rather frustrating as I'm sure you can imagine!
@matklad did you have suggestions as to how to debug this? It's impacting multiple repos now and is getting rather painful to work wth.
oeed
changed the title
min_specialization frequently results in check on save looping indefinitely
uom frequently results in check on save looping indefinitely
Jan 17, 2022
Possibly rust-lang/chalk#688 again. You can try running rust-analyzer analysis-stats . in the repository, and if that hangs as well remove code and items to make a minimal reproduction. (You should also be able to see on which function it hangs, if it does. If so, you can probably remove all other item bodies.)
IDE: VS Code
In some of my projects when check on save runs RA will frequently hang on checking indefinitely (or at least as long as I've had the patience to leave it). After quitting the RA process it'll check just fine. It doesn't always happen, some sessions it happens almost every save, others hardly at all.
The main commonality I've found between projects is the use of
uom
which I know has seen some issues. I've done my best to try and isolate and debug the issue, but I need further help; so if anyone has suggestions for things to try I'm all ears.I've tried collecting samples, spindumps and logs with
RA_LOG=info
andCHALK_LOG=info
. Notably, during this indefinite check the logs go so fast that the output window can't keep up.RA Log Snippet
In the sample of output I managed to copy paste only mentions
Implemented(HydraulicGraph<[?0 := _Builder<[]>]>: Deref)
the whole way through (all 97 thousand lines starting at 34106ms ending 35053ms). So I suspect it's getting stuck. Here's a small snippet of that:Process Sample Snippet
Every time I've sampled it always seems to be spending all its time in
chalk_recursive::solve
:Next Steps?
I'm rather lost as to what would be helpful to narrow down this issue from here. I'd love to make a minimum reproduction, but I can't even tell what's causing it. It's also somewhat intermittent making debugging harder. Any guidance for how to better debug this would be great.
The text was updated successfully, but these errors were encountered: