Skip to content

Show processing message for lean 3 as well. - #165

Merged
rish987 merged 2 commits into
Julian:mainfrom
rish987:lean3-show-processing
Oct 10, 2021
Merged

rish987 merged 2 commits into
Julian:mainfrom
rish987:lean3-show-processing

Conversation

@rish987

@rish987 rish987 commented Oct 8, 2021

Copy link
Copy Markdown
Collaborator

@gebner I didn't notice #162 with this -- when I opened up a big Lean 3 file, it didn't get stuck on "Processing file..." when the orange bars were gone in a particular range, while other parts were still processing. Although the infoview was empty there, I'm guessing because the response was empty.

What's a good file to test this on for Lean 4? Or where in particular did you see the problem?

@rish987

rish987 commented Oct 8, 2021 •

Copy link
Copy Markdown
Collaborator Author

Correction: actually, the infoview does in fact get me messages while other parts of the file are still processing.

@gebner

gebner commented Oct 8, 2021 •

Copy link
Copy Markdown
Collaborator

What's a good file to test this on for Lean 4? Or where in particular did you see the problem?

import Lean

open Lean Elab in
elab "slow" : command => do
  IO.sleep (ms := 1000)
  logInfo "I should be able to see this message in the infoview before the whole file is done."

slow
slow
slow
slow
slow
slow
slow
slow
slow
slow
slow
slow
slow
slow
slow
slow
slow

@rish987

rish987 commented Oct 9, 2021 •

Copy link
Copy Markdown
Collaborator Author

@gebner Thanks for the MWE, I've traced it and AFAICT it's an upstream Lean 4 server issue. It seems to not be responding to our Lean.Widget.getInteractiveDiagnostics RPC calls until the file is fully processed, so many of our async calls are left hanging indefinitely.

@rish987
rish987 force-pushed the lean3-show-processing branch 4 times, most recently from de2124f to 818e0af Compare October 9, 2021 02:04
@rish987
rish987 force-pushed the lean3-show-processing branch from 818e0af to 326ded4 Compare October 9, 2021 19:45
@codecov

codecov Bot commented Oct 9, 2021

Copy link
Copy Markdown

Codecov Report

Merging #165 (326ded4) into main (025d090) will decrease coverage by 0.10%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #165      +/-   ##
==========================================
- Coverage   80.84%   80.73%   -0.11%     
==========================================
  Files          40       40              
  Lines        3221     3213       -8     
==========================================
- Hits         2604     2594      -10     
- Misses        617      619       +2     
Impacted Files Coverage Δ
lua/lean/lean3.lua 63.05% <40.00%> (-0.77%) ⬇️
lua/lean/infoview.lua 81.40% <100.00%> (ø)
lua/lean/progress.lua 100.00% <100.00%> (ø)
lua/tests/helpers.lua 97.79% <100.00%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 025d090...326ded4. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants