unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.8k stars 707 forks source link

[VS Code] Stuck loading projects #18139

Open kazo0 opened 3 weeks ago

kazo0 commented 3 weeks ago

Current behavior

Plugin forever loading Projects? I'm noticing that I need to always manually invoke the Select Active Project in the command palette. Otherwise it just stays stuck loading the Projects:

image

I don't see anything in any of the logs

Workaround

Reverting C# Dev Kit to 1.9.55 make projects load properly.

Use the Uninstall/Install another version to revert the update: image

agneszitte commented 3 weeks ago

@spouliot let us know if you have some input on this, please

agneszitte commented 3 weeks ago

fyi @jeromelaban seems to happen with latest Uno.Sdk 5.3.108 (cf. @mcNets comment here https://github.com/unoplatform/uno/discussions/18078#discussioncomment-10562320), but also @jhanvi03 was also able to reproduce it with Uno.Sdk 5.3.99 on her side yesterday (see her comment here)

agneszitte commented 3 weeks ago

fyi @jeromelaban to happen with latest Uno.Sdk 5.3.108 (cf. @mcNets comment here #18078 (comment)) and normally @jhanvi03 was also able to reproduce it with Uno.Sdk 5.3.99 on her side yesterday (see her comment here)

Maybe related to the latest VS Code update from yesterday, August version 1.93, as @jhanvi03 started to notice the issue with this new version. (She said that on her side she did not have this issue previously with uno.Sdk 5.3.99 and 5.3.108 + uno extension 0.15.6 with previous VS Code version 1.92)

@kazo0, @mcNets did you update VS Code to latest version 1.93 on your side yesterday?

dr1rrb commented 3 weeks ago

~Using vs code 1.93.0 and uno extension 0.15.6 I've no issue on my side~

Re-tested using a new project, this is actually failing also on my side, including if I rollback to 5.3.99 (and same with 5.3.31) ...

mcNets commented 3 weeks ago

@agneszitte yes, I did.

dr1rrb commented 3 weeks ago

FYI Still failing with latest branch of our vs code extension (including with 5.3.31)

agneszitte commented 3 weeks ago

Also I just remembered that VS Code auto update by default if the default settings are not changed https://code.visualstudio.com/Docs/supporting/faq#_how-do-i-opt-out-of-vs-code-autoupdates

jeromelaban commented 3 weeks ago

It's worth noting that this particular UI is not an Uno feature, and is provided by devkit, it's likely we won't be able to fix anything there, and will have to wait for the C# DevKit team to fix it. There's no issue yet.

jhanvi03 commented 3 weeks ago

We have tested with older/previous VS code version and C# DevKit version and issue seems to be with new version of C# Devkit.

VS Code Version C#DevKit Version Project Load Issue
1.92.2 1.10.16 Exist
1.92.2 1.9.55 Does Not Exist
1.93.0 1.10.16 Exist
1.93.0 1.9.55 Does Not Exist
jeromelaban commented 3 weeks ago

This may then be somehow related to https://github.com/microsoft/vscode-dotnettools/issues/1436.

spouliot commented 3 weeks ago

I filed an issue with MS last week when using a pre release version of dev kit.

Looks like they have gone ahead with the release without fixing the issue :(

jeromelaban commented 3 weeks ago

@spouliot could you link the issue please?

mcNets commented 3 weeks ago

I got the issue with 5.3.108, but if I downgrade to 5.3.99 it runs with no other actions.

I'm on 1.93.0-insider

spouliot commented 3 weeks ago

@spouliot could you link the issue please?

https://github.com/microsoft/vscode-dotnettools/issues/1391

spouliot commented 1 week ago

Updating the Microsoft C# DevKit to version 1.11.9 (pre-release) will fix the issue.