ionide-vscode-fsharp icon indicating copy to clipboard operation
ionide-vscode-fsharp copied to clipboard

Inconsistent: Solution does not load

Open raghuAtRA opened this issue 3 years ago • 10 comments

Describe the bug**

With v5.7.3 Ionide will initialize maybe once every 4 times; Otherwise, the solution is not recognized has having F# projects and no F# load happens Reverting to 5.7.0 seems to fix it.

Expected behaviour

F# solution/projects always load

Machine info

  • OS: Linux
  • Ionide version: 5.7.3

Additional context

.NET SDK (reflecting any global.json):
 Version:   5.0.401
 Commit:    4bef5f3dbf

Runtime Environment:
 OS Name:     neon
 OS Version:  20.04
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/5.0.401/

Host (useful for support):
  Version: 5.0.10
  Commit:  e1825b4928

.NET SDKs installed:
  3.1.413 [/usr/share/dotnet/sdk]
  5.0.401 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.19 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.10 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.30 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.19 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

raghuAtRA avatar Sep 27 '21 04:09 raghuAtRA

Hey @raghuAtRA :wave:,

Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our OpenCollective and consider backing us.

https://opencollective.com/ionide

PS.: We offer backer support for all backers. Don't forget to add backer label when you start backing us :smile:

I have the same issue. Reverting to 5.7.1 seems to fix it.

nirvinm avatar Sep 29 '21 04:09 nirvinm

I have the same issue on both computers I use. When I start VS Code to re-open my last project, about 3 times out of 4 the Ionide FSharp button fails to appear in the left sidebar. So I close VS Code and try again, but it takes 3 or 4 goes before the button appears. It has been like this for a few weeks now.

OS: Pop!_OS 21.04 (Linux) Ionide-fsharp: v5.8.1

Bananas-Are-Yellow avatar Oct 29 '21 10:10 Bananas-Are-Yellow

While trying to reproduce #1606, I had this issue as well. Although, I seem to have better luck than you folks: it works about half the time.

recfab avatar Nov 03 '21 20:11 recfab

Some more observations.. None of them happen 100% - just with very high correlation. Obviously, there's a race issue somewhere in the bootup

  1. Typically a reload (After any extension update) will result in f# not initializing
  2. (Pre vscode 1.62) - mouse/kbd actitity on startup will often cause F# ionide not to initialize
  3. (pre vscode 1.62) - If you open on to a unsaved buffer with F# code, this would also cause ionide not to initialize.

This am, vscode got updated - and at least 2 and 3 are much harder to reproduce now - but it's still early. Have others seen similar behavior?

raghur avatar Nov 06 '21 05:11 raghur

This use to be an occasional nuisance, but as of late I sometimes have to reload 10+ times to get Ionide to load.

seanamos avatar Nov 11 '21 15:11 seanamos

and at least 2 and 3 are much harder to reproduce now -

After some more time, I think the above is no longer correct - the VS Code not loading F# solution in Ionide is happening as often as ever

This use to be an occasional nuisance, but as of late I sometimes have to reload 10+ times to get Ionide to load.

Yeah - can second that :(. one more thing that seems to have changed is that a lot of times even when the project does load, the references/lang server seems broken...(!!MISSING: command!! in code lens)

raghur avatar Nov 15 '21 08:11 raghur

+1 on this. I ran into this by opening the FsAutoComplete solution in Codespaces, which should be a pristine environment each time. Multiple refreshes and the LS would not start up.

dunnry avatar Nov 18 '21 14:11 dunnry

I also having the same issue and by reloading the "Developer: Reload window" works, so no need to restart the vscode.

AnalyzeNCode avatar Jan 04 '22 06:01 AnalyzeNCode

Hi guys,

I have been fairly unlucky lately trying to get some work done on Linux, It has happened before and then some updates fixed it. So far 2 separate computers, both with fairly fresh Ubuntu 20.04. Configuration is below. I have to say that the problem reproduces with a fairly large solution having about 20 projects. It never reproduces if I create a new console app. Same solution used to work an update ago (but I don't remember what version I had and I tried 5.10.2 and 5.10.1 with not much joy). It also works perfectly on MacOS

Logs (Log/Extension) don't show anything that could be related.

One thing is when I try to clear project cache I get this [error] TypeError: Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a Symbol.iterator method. but I guess that may be because my projects have not loaded.

Understanding this is a bit of a hot topic, since it has its own tag, I will really appreciate some help in perhaps enabling more verbose logging in an attempt to help debugging it. Unf JavaScript/TypeScript is not on the list of my stromg skills.

  • Operating system: Linux
  • Arch: x64
  • VSCode: 1.64.2
  • UI Kind: Desktop
  • Ionide: 5.11.0
  • Runtime: netcore
  • Dotnet version: 6.0.200

user@host  ~  dotnet --list-sdks 6.0.200 [/usr/share/dotnet/sdk] user@host  ~  dotnet --list-runtimes Microsoft.AspNetCore.App 5.0.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.14 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

romanprocopie avatar Feb 28 '22 22:02 romanprocopie