Skip to content
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

flatpak-vscode: Requested SDK extension #540

Open
vireakvibol opened this issue Sep 27, 2024 · 6 comments
Open

flatpak-vscode: Requested SDK extension #540

vireakvibol opened this issue Sep 27, 2024 · 6 comments

Comments

@vireakvibol
Copy link

vireakvibol commented Sep 27, 2024

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
Copy link

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
Copy link

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

@vireakvibol
Copy link
Author

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

@CodeShakingSheep
Copy link

CodeShakingSheep commented Oct 10, 2024

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 #434 (comment).

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
Copy link

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
Copy link

francoism90 commented Oct 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants