flathub / com.visualstudio.code

https://flathub.org/apps/details/com.visualstudio.code
152 stars 72 forks source link

flatpak-vscode: Requested SDK extension #540

Open vireakvibol opened 1 month ago

vireakvibol commented 1 month ago

I don't know what happen but today i got node and dotnet sdk is not work like before.

flatpak run com.visualstudio.code flatpak-vscode: Requested SDK extension "node20" is not installed flatpak-vscode: Requested SDK extension "dotnet8" is not installed Warning: 'ms-enable-electron-run-as-node' is not in the list of known options, but still passed to Electron/Chromium.

NiffirgkcaJ commented 1 month ago

I got the issue with "OpenJDK" too, I had everything set up properly, and it was working just fine, until it broke like this.

quietlyflowing commented 1 month ago

I'm using PHP SDK and, unlike previous versions, VSCode can't see the SDK at all. Apparently all SDKs are broken now.

vireakvibol commented 1 month ago

Its look like i reinstall node from branch 23.08 to 24.08 and it start to work again.

CodeShakingSheep commented 1 month ago

Its look like i reinstall node from branch 23.08 to 24.08 and it start to work again.

I can confirm that reinstalling the SDK Extensions with the same runtime (currently 24.08 --> see https://github.com/flathub/com.visualstudio.code/blob/master/com.visualstudio.code.yaml#L3) works. Also see https://github.com/flathub/com.visualstudio.code/issues/434#issuecomment-1733888019.

E.g. for node20 I ran the following:

Uninstalling

flatpak remove org.freedesktop.Sdk.Extension.node20

Output:

        ID                                            Branch          Op
 1. [-] org.freedesktop.Sdk.Extension.node20          23.08           r

Reinstalling

flatpak install org.freedesktop.Sdk.Extension.node20

Output:

Looking for matches…
Similar refs found for ‘org.freedesktop.Sdk.Extension.node20’ in remote ‘flathub’ (system):

   1) runtime/org.freedesktop.Sdk.Extension.node20/x86_64/23.08
   2) runtime/org.freedesktop.Sdk.Extension.node20/x86_64/24.08

Which do you want to use (0 to abort)? [0-2]: 2

        ID                                              Branch            Op           Remote            Download
 1. [✓] org.freedesktop.Sdk.Extension.node20            24.08             i            flathub           21.9 MB / 20.8 MB

Installation complete.
quietlyflowing commented 1 month ago

Can confirm that the solution provided by @vireakvibol and further explained by @CodeShakingSheep works. In my case, I reinstalled PHP SDK from the newer branch et voilà: it works now.

francoism90 commented 1 month ago

Flatpak should make this process more user friendly, why doesn't upgrade to the latest SDK?

I'm wondering how many older SDKs will eventually be left installed, and don't receive any updates anymore. The tool Warehouse helps a lot, but Flatpak should take a look at this.