microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
207 stars 7 forks source link

Solution with missing TFM does not enable intellisense #1100

Open mattleibow opened 2 months ago

mattleibow commented 2 months ago

Type: Bug

I noticed that if my solution contains a project that has a missing TFM, for example I opened a solution in the MAUI repo that had a Tizen project, the whole intellisense system stops working.

If I opened a solution/solution filter that had that project removed, then things eventually started working.

Extension version: 1.4.29 VS Code version: Code 1.89.0 (b58957e67ee1e712cebf466b995adf4c5307b2bd, 2024-05-01T02:09:22.859Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD EPYC 7763 64-Core Processor (16 x 2445)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|63.95GB (46.47GB free)| |Process Argv|--crash-reporter-id ff64b95d-aa07-473c-bb8f-337e2ad5c46f| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 chatpanelt:31018789 dsvsc021:30996838 724cj586:31013169 pythoncenvpt:31022790 fchga941:31038042 dwnewjupytercf:31035177 ```
emaf commented 1 month ago

@arkalyanms I've removed the area-maui tag since in this case the MAUI Sdk solution was mentioned just as an example, and this doesn't seem related to the Maui Dev Kit extension.

tmeschter commented 1 month ago

@mattleibow What do you mean by a "missing" TFM in this case?

mattleibow commented 1 month ago

I had a solution where one of the projects was tizen but I had not installed the tizen workload. The same with the fact that I did not have the macos workload, but I had the macos TFM in one of the other projects.

github-actions[bot] commented 1 month ago

@tmeschter, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.

tmeschter commented 2 weeks ago

Note to self: try creating a basic project that refers to an unknown TFM and see what breaks. It's possible we don't even make it past NuGet restore.