ionide / ionide-vscode-fsharp

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

Very often ionide does not start on remote workspace #1607

Open vincenzoml opened 2 years ago

vincenzoml commented 2 years ago

Issue Type: Bug

I am using vscode remote to connect to a development host via ssh. Ionide is installed both locally and remotely, and sometimes it works on the remote host, but very often it does not start at all (the name of the project does not even apperar in the statusbar).

In the extension status I see:

Errori non rilevati (3) Cannot read property 'indexOf' of undefined Cannot read property 'indexOf' of undefined Cannot read property 'indexOf' of undefined

Extension version: 5.8.1 VS Code version: Code 1.61.2 (6cba118ac49a1b88332f312a8f67186f7f3c1643, 2021-10-19T14:58:13.605Z) OS version: Linux x64 5.13.0-16-lowlatency Restricted Mode: No Remote OS version: Linux x64 5.8.0-63-generic

A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 pythonvspyt639:30300192 pythontb:30283811 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 vsccppwt:30382697 bridge0708:30335490 pygetstartedt3:30385195 dockerwalkthru:30377721 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedc:30364665 pythonvspyt187:30373474 vsqsis300:30386381 vsaa593cf:30376535 vssld246cf:30386378 ```
open-collective-bot[bot] commented 2 years ago

Hey @vincenzoml :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:

vincenzoml commented 2 years ago

@baronfel following up from #1608 how do I check if the C# extension is running?

baronfel commented 2 years ago

You can check that the output panel's log for the 'Extension Host' has log entries for omnisharp being activated by ionide:


[2021-10-29 10:12:40.004] [exthost] [info] ExtensionService#_doActivateExtension ms-dotnettools.csharp, startup: false, activationEvent: 'onLanguage:fsharp', root cause: Ionide.Ionide-fsharp
[2021-10-29 10:12:40.005] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/chethusk/.vscode/extensions/ms-dotnettools.csharp-1.23.16/dist/extension
vincenzoml commented 2 years ago

Not even remotely (forgive the pun...)

[2021-10-29 15:31:53.261] [exthost] [info] extension host started [2021-10-29 15:31:53.261] [exthost] [info] Skipping acquiring lock for /home/vincenzo/.config/Code/User/workspaceStorage/ed7f104f72eeaee4795242096bf99d80. [2021-10-29 15:31:53.469] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-ssh, startup: false, activationEvent: 'onResolveRemoteAuthority:ssh-remote' [2021-10-29 15:31:53.469] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.8/out/extension [2021-10-29 15:32:00.000] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft' [2021-10-29 15:32:00.001] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/microsoft-authentication/dist/extension.js [2021-10-29 15:32:01.663] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github' [2021-10-29 15:32:01.663] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/github-authentication/dist/extension.js [2021-10-29 15:32:01.749] [exthost] [info] eager extensions activated [2021-10-29 15:32:01.752] [exthost] [info] ExtensionService#_doActivateExtension alefragnani.Bookmarks, startup: false, activationEvent: 'onStartupFinished' [2021-10-29 15:32:01.752] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode/extensions/alefragnani.bookmarks-13.2.2/dist/extension [2021-10-29 15:32:01.756] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: false, activationEvent: 'onStartupFinished' [2021-10-29 15:32:01.756] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode/extensions/ms-vscode-remote.remote-containers-0.202.5/dist/extension/extension [2021-10-29 15:32:02.525] [exthost] [info] ExtensionService#_doActivateExtension spadin.remote-x11-ssh, startup: false, activationEvent: 'onCommand:remote-x11-ssh.connect' [2021-10-29 15:32:02.525] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode/extensions/spadin.remote-x11-ssh-1.5.0/dist/extension.js

baronfel commented 2 years ago

yeah so that's going to be the blocker then. we rely on the C# extension for debugging features and so we have things set up to require it. can you try manually installing it if it's not installed already? or perhaps look on their issue tracker for any insight into the C# extension + remote development?

molotch commented 2 years ago

I have the same issue with the C# extension loading and your . Three uncaught exceptions in the Ionide-fsharp extension.

Runtime Status: Cannot read property 'indexOf' of undefined Cannot read property 'indexOf' of undefined Cannot read property 'indexOf' of undefined

And no life signs (i.e. intellisense or linting).

WSL2 Ubuntu: fully updated
VSCode:
Version: 1.61.2 (user setup)
Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643
Date: 2021-10-19T14:57:20.575Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042

PS!

Do this mean that the extension is activated? In that case what does startup: false mean?

[2021-11-02 16:39:31.909] [exthost] [info] ExtensionService#_doActivateExtension ms-dotnettools.csharp, startup: false, activationEvent: 'onLanguage:fsharp', root cause: Ionide.Ionide-fsharp

molotch commented 2 years ago

So I disabled the Gitlens and Live Server extensions, then I get different errors from the fsharp extension. Now intellisense kicked in but the error list grew.

The remote extension host log:

[2021-11-03 09:16:38.930] [exthost] [info] extension host started
[2021-11-03 09:16:38.946] [exthost] [info] Lock '/home/anonymous/.vscode-server/data/User/workspaceStorage/adc767db753d7b6b7647b165bfb8cba8/vscode.lock': Lock acquired.
[2021-11-03 09:16:39.054] [exthost] [info] ExtensionService#_doActivateExtension ms-dotnettools.csharp, startup: false, activationEvent: 'onLanguage:fsharp', root cause: Ionide.Ionide-fsharp
[2021-11-03 09:16:39.054] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/extensions/ms-dotnettools.csharp-1.23.16/dist/extension
[2021-11-03 09:16:39.147] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: true, activationEvent: '*'
[2021-11-03 09:16:39.147] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/debug-auto-launch/dist/extension
[2021-11-03 09:16:39.149] [exthost] [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*', root cause: vscode.github
[2021-11-03 09:16:39.150] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/git/dist/main
[2021-11-03 09:16:39.195] [exthost] [info] ExtensionService#_doActivateExtension Azurite.azurite, startup: true, activationEvent: '*'
[2021-11-03 09:16:39.195] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/extensions/azurite.azurite-3.14.3/dist/src/main.js
[2021-11-03 09:16:39.605] [exthost] [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
[2021-11-03 09:16:39.605] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/github/dist/extension.js
[2021-11-03 09:16:39.657] [exthost] [info] ExtensionService#_doActivateExtension Ionide.Ionide-fsharp, startup: false, activationEvent: 'onLanguage:fsharp'
[2021-11-03 09:16:39.657] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp
[2021-11-03 09:16:39.770] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.js-debug, startup: false, activationEvent: 'onCommand:extension.js-debug.clearAutoAttachVariables'
[2021-11-03 09:16:39.770] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/ms-vscode.js-debug/src/extension.js
[2021-11-03 09:16:40.940] [exthost] [warning] [Ionide.Ionide-fsharp] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[fsharp]', provide the URI of a resource or 'null' for any resource.
[2021-11-03 09:16:40.949] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onStartupFinished'
[2021-11-03 09:16:40.949] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/emmet/dist/node/emmetNodeMain
[2021-11-03 09:16:40.961] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
[2021-11-03 09:16:40.961] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/merge-conflict/dist/mergeConflictMain
[2021-11-03 09:16:40.963] [exthost] [info] ExtensionService#_doActivateExtension rangav.vscode-thunder-client, startup: false, activationEvent: 'onStartupFinished'
[2021-11-03 09:16:40.963] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/anonymous/.vscode-server/extensions/rangav.vscode-thunder-client-1.9.1/dist/extension
[2021-11-03 09:16:41.014] [exthost] [info] eager extensions activated
[2021-11-03 09:16:50.446] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED
[2021-11-03 09:16:50.446] [exthost] [error] Error: Cannot find ident for tooltip
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166353
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166647
    at Immediate.<anonymous> (/home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:167010)
    at processImmediate (internal/timers.js:461:21)
[2021-11-03 09:16:50.750] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED
[2021-11-03 09:16:50.750] [exthost] [error] Error: No tooltip information
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166353
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166647
    at Immediate.<anonymous> (/home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:167010)
    at processImmediate (internal/timers.js:461:21)
[2021-11-03 09:16:59.894] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED
[2021-11-03 09:16:59.895] [exthost] [error] Error: Cannot find ident for tooltip
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166353
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166647
    at Immediate.<anonymous> (/home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:167010)
    at processImmediate (internal/timers.js:461:21)
[2021-11-03 09:17:48.735] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED
[2021-11-03 09:17:48.736] [exthost] [error] Error: No tooltip information
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166353
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166647
    at Immediate.<anonymous> (/home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:167010)
    at processImmediate (internal/timers.js:461:21)
[2021-11-03 09:17:50.376] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED
[2021-11-03 09:17:50.376] [exthost] [error] Error: No symbol information found
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166353
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166647
    at Immediate.<anonymous> (/home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:167010)
    at processImmediate (internal/timers.js:461:21)
[2021-11-03 09:17:51.959] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED
[2021-11-03 09:17:51.959] [exthost] [error] Error: No symbol information found
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166353
    at /home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:166647
    at Immediate.<anonymous> (/home/anonymous/.vscode-server/extensions/ionide.ionide-fsharp-5.8.1/fsharp.js:2:167010)
    at processImmediate (internal/timers.js:461:21)

Runtime Status image

molotch commented 2 years ago

But a reload later and it stops working and we're back to the original three errors in my first message. Seems intermittent.

kaashyapan commented 2 years ago

Same here on remote ubuntu. I have omnisharp installed. There are no errors displayed in the omnisharp logs. The F#/Ionide log is missing.

These are the uncaught exceptions listed in the extensions page.

Cannot read property 'indexOf' of undefined
Cannot read property 'subscriptions' of undefined
JustinGrote commented 2 years ago

This was working with F# Koans in a devcontainer but after a reload it stopped working. Omnisharp is working fine and I see this in devtools: image

Some sort of state issue?

JustinGrote commented 2 years ago

I think it's a race condition. If I don't have any F# documents open and wait for omnisharp to load and then open a F# (which kickstarts the F# extension) then it works.

vincenzoml commented 2 years ago

Yes, closing all the .fs files, closing vscode, reopening, waiting for the remote extension host to settle its log, and then opening a .fs file opens ionide.

vincenzoml commented 2 years ago

Hummm, after a while it died again with a meaningful error message, finally; this is in the remote extension host log:

[2021-11-10 09:21:45.304] [exthost] [info] extension host started [2021-11-10 09:21:45.312] [exthost] [info] Lock '/home/vincenzo/.vscode-server/data/User/workspaceStorage/ed7f104f72eeaee4795242096bf99d80/vscode.lock': Lock acquired. [2021-11-10 09:21:45.518] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: true, activationEvent: '' [2021-11-10 09:21:45.518] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/debug-auto-launch/dist/extension [2021-11-10 09:21:45.522] [exthost] [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '', root cause: vscode.github [2021-11-10 09:21:45.522] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/git/dist/main [2021-11-10 09:21:45.564] [exthost] [info] ExtensionService#_doActivateExtension codeandstuff.vscode-navigate-edit-history, startup: true, activationEvent: '' [2021-11-10 09:21:45.564] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/codeandstuff.vscode-navigate-edit-history-1.5.2/out/extension.js [2021-11-10 09:21:45.565] [exthost] [info] ExtensionService#_doActivateExtension spadin.remote-x11, startup: true, activationEvent: '' [2021-11-10 09:21:45.565] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/spadin.remote-x11-1.5.0/dist/extension.js [2021-11-10 09:21:45.566] [exthost] [info] ExtensionService#_doActivateExtension stkb.rewrap, startup: true, activationEvent: '*' [2021-11-10 09:21:45.566] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/stkb.rewrap-1.14.0/vscode/compiled/Extension [2021-11-10 09:21:46.954] [exthost] [info] ExtensionService#_doActivateExtension ms-dotnettools.csharp, startup: true, activationEvent: 'workspaceContains:/*.fs,*/.fsx,/*.fsproj,/*.sln', root cause: Ionide.Ionide-fsharp [2021-11-10 09:21:46.954] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/ms-dotnettools.csharp-1.23.16/dist/extension [2021-11-10 09:21:47.270] [exthost] [info] ExtensionService#_doActivateExtension Ionide.Ionide-fsharp, startup: true, activationEvent: 'workspaceContains:*/.fs,/*.fsx,*/.fsproj,*/.sln' [2021-11-10 09:21:47.270] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp [2021-11-10 09:21:47.332] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.js-debug, startup: false, activationEvent: 'onCommand:extension.js-debug.clearAutoAttachVariables' [2021-11-10 09:21:47.332] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/ms-vscode.js-debug/src/extension.js [2021-11-10 09:21:47.480] [exthost] [info] ExtensionService#_doActivateExtension vscode.github, startup: false, activationEvent: '*' [2021-11-10 09:21:47.480] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/github/dist/extension.js [2021-11-10 09:21:48.565] [exthost] [warning] [Ionide.Ionide-fsharp] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[fsharp]', provide the URI of a resource or 'null' for any resource. [2021-11-10 09:21:48.878] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onStartupFinished' [2021-11-10 09:21:48.879] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/emmet/dist/node/emmetNodeMain [2021-11-10 09:21:48.891] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished' [2021-11-10 09:21:48.891] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/extensions/merge-conflict/dist/mergeConflictMain [2021-11-10 09:21:48.894] [exthost] [info] ExtensionService#_doActivateExtension eamodio.gitlens, startup: false, activationEvent: 'onStartupFinished' [2021-11-10 09:21:48.894] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/eamodio.gitlens-11.6.1/dist/gitlens [2021-11-10 09:21:48.988] [exthost] [info] ExtensionService#_doActivateExtension waderyan.gitblame, startup: false, activationEvent: 'onStartupFinished' [2021-11-10 09:21:48.988] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/waderyan.gitblame-8.1.0/dist/index [2021-11-10 09:21:48.989] [exthost] [info] eager extensions activated [2021-11-10 09:21:59.345] [exthost] [info] ExtensionService#_doActivateExtension paolodellepiane.fantomas-fmt, startup: false, activationEvent: 'onLanguage:fsharp' [2021-11-10 09:21:59.345] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/paolodellepiane.fantomas-fmt-0.3.0/out/extension [2021-11-10 09:22:00.037] [exthost] [info] ExtensionService#_doActivateExtension mechatroner.rainbow-csv, startup: false, activationEvent: 'onLanguage:plaintext' [2021-11-10 09:22:00.037] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/vincenzo/.vscode-server/extensions/mechatroner.rainbow-csv-1.9.1/extension [2021-11-10 09:27:40.163] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED [2021-11-10 09:27:40.163] [exthost] [error] Error: Cannot find ident for tooltip at /home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:166353 at /home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:166647 at Immediate. (/home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:167010) at processImmediate (internal/timers.js:461:21)

vincenzoml commented 2 years ago

Returning to the window I had left open, after a while, the extension was running again, and then again it dumped those two lines and crashed:

[2021-11-10 09:27:40.163] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED [2021-11-10 09:27:40.163] [exthost] [error] Error: Cannot find ident for tooltip at /home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:166353 at /home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:166647 at Immediate. (/home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:167010) at processImmediate (internal/timers.js:461:21) [2021-11-10 09:39:34.118] [exthost] [error] [Ionide.Ionide-fsharp] provider FAILED [2021-11-10 09:39:34.118] [exthost] [error] Error: Cannot find ident for tooltip at /home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:166353 at /home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:166647 at Immediate. (/home/vincenzo/.vscode-server/extensions/ionide.ionide-fsharp-5.9.0/fsharp.js:2:167010) at processImmediate (internal/timers.js:461:21)

Krzysztof-Cieslak commented 2 years ago

Please also check the output in F# output panel.

vincenzoml commented 2 years ago

There's no F# output panel?

image

vincenzoml commented 2 years ago

Apparently, more or less as suggested above, closing all .fs tabs, then closing and reopening vscode is a workaround. I am still unsure whether the extension may crash again after some time. The FSharp error I reported in https://github.com/ionide/ionide-vscode-fsharp/issues/1607#issuecomment-964891975 is not present now, and there is an F# panel.

graydon commented 2 years ago

Unfortunately I'm having a similar experience with ionide currently: when doing remote development, it works for a little while (sometimes) before it just stops responding / vanishes from the vscode UI, and the only way I can get it to return to functioning is uninstall/reinstall.

kaashyapan commented 2 years ago

I fixed my versions to Ionide 5.5.9 & C# v1.23.8 and turned off auto updates. Can confirm that it works fine on remote linux with .NET 5.

vincenzoml commented 2 years ago

@kaashyapan thanks a lot for this workaround!

@Krzysztof-Cieslak I tried doing some bisection. v 5.7.2 is surely broken. v 5.7.1 seems to be the last one working, but I will report if it's broken too.

vincenzoml commented 2 years ago

I tried looking at the diff:

https://github.com/ionide/ionide-vscode-fsharp/compare/5.7.1...5.7.2

But did not spot anything that I understand.

pbiggar commented 2 years ago

I'm having the same issue. @JustinGrote's workaround seems to work for me.

vincenzoml commented 2 years ago

@pbiggar can you install version 5.7.1 of the ionide extension and check if that works for you? If not, please also report on version 5.5.9 which was reported correct by @kaashyapan .

graydon commented 2 years ago

I switched to 5.7.1 a few days ago and have not re-experienced any problems, so I would support the "something broke since then" hypothesis.

Al4ric commented 2 years ago

Same thing happens for me when using this inside development container (also no errors in any logs I could find). Disabling and re-enabling it again works (which requires reload). Also installing version 5.7.1 is also working fine. So any changes made after this seems to cause this issue.

Just checked next version - and 5.7.2 was not working for me. So 5.7.1 is last version that works fine.

Eevoo commented 2 years ago

TL;DR: 5.7.1 might be affected by this issue as well.

I encountered these symptoms and found this issue yesterday. Thanks to the previous workaround instructions, I was able to install Ionide-FSharp 5.7.1 in my devcontainer.json (pasted below for others convenience) and locked the OmniSharp extension for good measure. Rebuilding my container and reloading fixed the issue for me, or so I thought.

Today, after I did a rebuild of the container, Ionide-Fsharp was not starting, and indeed after fiddling for a bit, I got a modal pop-up box that said Ionide-Fsharp cannot load because C# was not loaded.

I used the workaround where I closed all .fs files, rebuilt my remote container, then pressed Ctrl + R to reload the whole window, and that restored Ionide-Fsharp to normal functionality.

// Add this to your devcontainer.json somewhere
    // Add the IDs of extensions you want installed when the container is created.
    "extensions": [
        "ms-dotnettools.csharp@1.23.17",
        "ionide.ionide-paket",
        "ionide.ionide-fake",
        "ionide.ionide-fsharp@5.7.1",
        "davidanson.vscode-markdownlint"
    ]
Xanthus commented 1 year ago

Have there been any developments here? Starting a new F# project and trying to use devcontainers (I'm on Ubuntu so no WSL weirdness) and I cannot get Ionide to activate no matter what I try. OmniSharp starts up and Ionide appears to be trying to start but after that nothing happens:

[2022-07-05 11:11:33.701] [exthost] [info] ExtensionService#_doActivateExtension ms-dotnettools.csharp, startup: false, activationEvent: 'workspaceContains:**/*.fs,**/*.fsproj,**/*.fsx,**/*.sln', root cause: Ionide.Ionide-fsharp
[2022-07-05 11:11:33.920] [exthost] [info] ExtensionService#_doActivateExtension Ionide.Ionide-fsharp, startup: false, activationEvent: 'workspaceContains:**/*.fs,**/*.fsproj,**/*.fsx,**/*.sln'

I'll provide more details if maintainers are interested but suffice it to say I've tried re-installing, delaying opening files, rebuilding containers, various combinations of all that. I've even tried adding a .cs file, installing C# on its own then once it's activated only then installing Ionide but always with the same result.