-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Race condition between #r "nuget: package" resolution and FSAC startup #1371
Comments
Hey @jbeeko 👋, Thank you for opening an issue. We will get back to you as https://opencollective.com/ionide
|
Hey @jbeeko, can you double-check your From a first guess, though, I think this is the same presentation of the errors that I'd expect if your script was typechecked as NetFX instead of Net SDK, like we discussed over on the other issue. |
@baronfel I was going to copy the log from #1357 thinking that was the same issue but re-reading your comments there I'm not convinced that is the case. With this issue described here the log is always short, for example I just recreated it and the log only contains one entry:
This is also specific to when I'm using the new Now I think I ran across the race condition issue inter-leaved with this one? |
Anyway I seem to be able to create this issue on demand now so any thing you want checked let me know. |
One further observation is that the trick of restarting Editor services by commenting out the script adding
Strange I know but I've repeated that several times now ¯_(ツ)_/¯ |
Link to a video showing the effect. This is very repeatable. |
I'm not sure if this is that issue, but on latest .NET 5, I see something similar: every time I add or remove a #r nuget, Ionide just dies. No intellisense, no tooltips, nothing updates (existing codelenses stay though!). You have to restart Ionide completely. |
Ok, I think we no longer have race condition as we default to .NET SDK everywhere. However, #r references are still broken as tracked in #1441 |
Describe the bug
Files contenting the new
#r "nuget: package"
sometimes don't get editor services when first opened. No type-checking no hover, line-lens nothing. Just dead text.Editor services can be kicked off by commenting out the script adding a simple line of code and then uncommenting the script.
Previously reported as part of
To Reproduce
The following script will often not get editing services when first opened.
The F# Output is as follows:
However if all of the script is commented out and following line is added:
let foo = 4
All editor services are available for that line. BUT THEN if all of the above script codes is uncommented it also receives all editor services.
At this point the F# Output looks as below. Note the addition of the
Message: Cannot find ident for tooltip
which seems to be a normal occurrence when the FSAC is working.Expected behaviour
Editor services should be available immediately upon opening the file.
Environment (please complete the following information):
** Additional Context**
It makes NO difference if VS Code is opened with the script file open or if the file is opened later via the Open menu or if the file is opened by double clicking on it.
The text was updated successfully, but these errors were encountered: