Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No typecheck results" since the 0.59.4 release #1087

Closed
razzmatazz opened this issue Mar 22, 2023 · 6 comments
Closed

"No typecheck results" since the 0.59.4 release #1087

razzmatazz opened this issue Mar 22, 2023 · 6 comments

Comments

@razzmatazz
Copy link
Contributor

razzmatazz commented Mar 22, 2023

It seems like #1082 broke fsautocomplete on some of clients.

I can confirm this on eglot/emacs and it first reported by @juergenhoetzel in fsharp/emacs-fsharp-mode#331

Server event log shows this:

[server-reply] (id:8) ERROR Wed Mar 22 08:36:13 2023:
(:jsonrpc "2.0" :id 8 :error
          (:code -32603 :message "No typecheck results for /Users/bob/src/csharp-language-server/src/CSharpLanguageServer/State.fs"))
[internal] (id:8) ERROR Wed Mar 22 08:36:13 2023:
(:message "error ignored, status set (No typecheck results for /Users/bob/src/csharp-language-server/src/CSharpLanguageServer/State.fs)" :id 8 :error -32603)
[server-reply] (id:9) ERROR Wed Mar 22 08:36:13 2023:
(:jsonrpc "2.0" :id 9 :error
          (:code -32603 :message "No typecheck results for /Users/bob/src/csharp-language-server/src/CSharpLanguageServer/State.fs"))

git bisect points me to:

ed061e685ef6b5bd41a83c4b8808e86d7753780c is the first bad commit
commit ed061e685ef6b5bd41a83c4b8808e86d7753780c
Author: Jimmy Byrd <[email protected]>
Date:   Sun Mar 19 16:37:12 2023 -0400

    Only reload projects that need and populate test runner (#1082)
    
    Co-authored-by: Chet Husk <[email protected]>

 src/FsAutoComplete.Core/AdaptiveExtensions.fs      | 290 +++++++++++++++++++++
 .../CompilerServiceInterface.fs                    |   8 +-
 src/FsAutoComplete.Core/FsAutoComplete.Core.fsproj |   3 +-
 src/FsAutoComplete.Core/paket.references           |   1 +
 .../LspServers/AdaptiveFSharpLspServer.fs          | 278 +++++++-------------
 src/FsAutoComplete/LspServers/Common.fs            |   8 +
 6 files changed, 402 insertions(+), 186 deletions(-)
 create mode 100644 src/FsAutoComplete.Core/AdaptiveExtensions.fs

and I can confirm reverting ed061e6 on main fixes the problem for me

@razzmatazz razzmatazz changed the title "No typecheck results" since 0.59.4 "No typecheck results" since the 0.59.4 release Mar 22, 2023
@TheAngryByrd
Copy link
Member

I’m guessing it’s due to e54bc7d. Can you try manually reverting the changes from that commit?

@razzmatazz
Copy link
Contributor Author

razzmatazz commented Mar 22, 2023

I’m guessing it’s due to e54bc7d. Can you try manually reverting the changes from that commit?

I can confirm it is this commit that causes the issue–reverting fixes the problem.

@TheAngryByrd
Copy link
Member

@baronfel Is this something that needs to change FSAC or should clients be sending AutomaticWorkspaceInit?

@baronfel
Copy link
Contributor

Clients either need to send automatic workspace init OR do their own workspacepeek/workspaceload dance, yes. Do we know which clients are reporting errors and how they navigate things?

@juergenhoetzel
Copy link
Contributor

Clients either need to send automatic workspace init OR do their own workspacepeek/workspaceload dance, yes. Do we know which clients are reporting errors and how they navigate things?

Indeed! Fixed by sending a valid :automaticWorkspaceInit t option:
Updating the configuration object to match Ionide configuration

@baronfel
Copy link
Contributor

baronfel commented Apr 1, 2023

Glad we got there in the end :)

@baronfel baronfel closed this as completed Apr 1, 2023
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

No branches or pull requests

4 participants