ionide / ionide-vscode-fsharp

VS Code plugin for F# development
http://ionide.io
MIT License
849 stars 276 forks source link

New tests not detected #1997

Open nojaf opened 3 months ago

nojaf commented 3 months ago

Describe the bug

When adding a new unit test in an existing file, the new test does not get picked up.

Steps to reproduce

Expected behaviour

The new test gets picked up.

Screenshots

image

Machine info

Additional context

I noticed @farlee2121 changed the way unit tests are detected in https://github.com/ionide/ionide-vscode-fsharp/pull/1874. There no longer seems to be any notification coming from the LSP server.

Is the file being watched for changes? I can't really find any evidence for this in the current code.

farlee2121 commented 3 months ago

It still uses the same LSP code analysis notifications for live updates as before. It now routes through a mailbox to resolve concurrency issues . The main handler is onTestsDiscoveredInCode

nojaf commented 3 months ago

Hmm, when attaching to FSAC, I see that I get an exception from:

image

image

The test is found but I suspect the notification is not getting to the client.

@baronfel, shot in the dark: is FSharpSignatureData trying to resolve a symbol with cached checking information? As it is failing for newly typed code that would be my guess.