ionide / ionide-vscode-fsharp

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

Ionide extension stuck loading... #1969

Open LysetsDal opened 6 months ago

LysetsDal commented 6 months ago

Type: Bug

When i try opening a workspace with the extension enabled, i get this alert: Command fsharp.explorer.renameFile already registered by Ionide for F# (Ionide.ionide-fsharp) in the show running extensions. Have tried enabling globally and reinstalling but it didn't help.

Extension version: 7.16.1 VS Code version: Code 1.85.0 (Universal) (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T18:18:04.614Z) OS version: Darwin arm64 23.1.0 Modes: Unsupported

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|4, 4, 4| |Memory (System)|8.00GB (0.04GB free)| |Process Argv|--crash-reporter-id b0af2837-7802-4ee7-bf48-db5b90a45eed| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30899288 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 azure-dev_surveyone:30548225 282f8724:30602487 f6dab269:30613381 a9j8j154:30646983 showlangstatbar:30737416 962ge761:30917236 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30902429 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:30885898 pythontbext0:30879054 accentitlementst:30887150 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 ```
LuisFX commented 6 months ago

I'm experiencing same starting today 😕

gfritz commented 5 months ago

Installing version 7.15.2 restored functionality for me - the extension automatically loads, detects F# files, intellisense looks normal. I couldn't locate any logs, extension host logs, vscode developer tools logs, or anything to hint why 7.16.* version did not work for me.


I had the same issue and same message as reported. I started on version 7.16.1, changed to 7.16.0, and then on 7.15.2 the extension loaded and detected F# files without any prompting.

All 3 versions I tried had the same message: Command fsharp.explorer.renameFile already registered by Ionide for F# (Ionide.ionide-fsharp).

Dockerfile to setup my dotnet-sdk environment and extensions:

#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

# https://hub.docker.com/_/microsoft-dotnet-sdk/ because the microsoft container registry is difficult for me to reach quickly
FROM mcr.microsoft.com/dotnet/sdk:6.0

devcontainer.json:

{
    "name": "F# (.NET 6)",
    "dockerFile": "Dockerfile",

    // Set *default* container specific settings.json values on container create.
  "customizations": {
    "vscode": {
      "settings": {
        "terminal.integrated.defaultProfile.linux": "bash",
        // .NET Core is now the default for F# in .NET Core 3.0+
        // However, .NET Core scripting is not the default yet. Set that to true.
        "FSharp.useSdkScripts":true
      },
      // Add the IDs of extensions you want installed when the container is created.
      "extensions": [
        "ms-dotnettools.csharp",
        "Ionide.Ionide-fsharp",
        "EditorConfig.EditorConfig"
      ]
    }
  }

    // Use 'forwardPorts' to make a list of ports inside the container available locally.
    // "forwardPorts": [],

    // Use 'postCreateCommand' to run commands after the container is created.
    // "postCreateCommand": "dotnet restore",

    // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
    // "remoteUser": "vscode"
}