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
When a file is still processing, the infoview only shows the unhelpful "Processing file..." message. It should show the available diagnostics and tactic state for already-processed regions.
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.
One workaround we could use is to put a timer on util.a_request after which it calls the handler with error, and let it fall back to the plain diagnostics. But a server fix, at least to respond error rather than not respond at all, is certainly needed.
Thanks for debugging that! Would it be enough if the getInteractiveDiagnostics command would return once Lean is done with the corresponding line (but not necessarily the whole file)? Or would the infoview still get stuck?
We don't send the request at all if we detect the line is processing. So as long as it's responsive after fileProgress indicates that line is done processing, that will work. Though ideally it seems it should always be responsive regardless.
Activity
rish987 commentedon Oct 9, 2021
From #165:
One workaround we could use is to put a timer on
util.a_requestafter which it calls the handler with error, and let it fall back to the plain diagnostics. But a server fix, at least to respond error rather than not respond at all, is certainly needed.gebner commentedon Oct 9, 2021
Thanks for debugging that! Would it be enough if the getInteractiveDiagnostics command would return once Lean is done with the corresponding line (but not necessarily the whole file)? Or would the infoview still get stuck?
rish987 commentedon Oct 9, 2021
We don't send the request at all if we detect the line is processing. So as long as it's responsive after
fileProgressindicates that line is done processing, that will work. Though ideally it seems it should always be responsive regardless.