microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

There is no data provider registered that can provide view data #4219

Closed RSud-devops closed 5 months ago

RSud-devops commented 5 months ago

Type: Bug

Hi,

I've been using vsCode's Docker extension for quite some time now, and find it very handy on a daily basis. But all of a sudden, I get the message "There is no data provider registered that can provide view data" in every section of the extension. I can't figure out what could have happened. For the record, the docker server I'm running is accessible from vsCode on my local computer via an SSH connection. To do this, I use the Remote -SSH extension. I hope you can help me find the source of this problem.

Best regards,

Marc Alleaume

Extension version: 1.28.0 VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:19.222Z) OS version: Linux x64 5.4.0-170-generic Modes: Remote OS version: Linux x64 5.10.0-26-amd64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 4422)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|2, 1, 1| |Memory (System)|15.45GB (9.01GB free)| |Process Argv|--unity-launch --crash-reporter-id 9ed56891-7c68-4300-9b0d-97de9e7e5fcd| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|cinnamon| |XDG_CURRENT_DESKTOP|X-Cinnamon| |XDG_SESSION_DESKTOP|cinnamon| |XDG_SESSION_TYPE|x11| |Item|Value| |---|---| |Remote|SSH: 46.105.166.228:54321| |OS|Linux x64 5.10.0-26-amd64| |CPUs|Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz (8 x 3599)| |Memory (System)|15.64GB (13.54GB free)| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyonecf:30548226 962ge761:30951796 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 dsvsc019acf:30951919 3ef8e399:30949928 ```
bwateratmsft commented 5 months ago

My guess is that extension activation is failing for some reason. Does it happen consistently? Can you go to the extension page in the extensions view, to the Runtime Status tab, and share what is shown there? For example:

image

RSud-devops commented 5 months ago

Thank you for taking care of the issue.

Yes, this happens regularly. Here's the screenshot of what you're asking, it does indeed show that the extension is not yet activated: image But even when I try to activate it, the problem is still there and it still says 'Not yet activated'. regards,

Marc

bwateratmsft commented 5 months ago

Does it show any errors when you open the Docker view in a toast notification or in that Runtime Status page? Can you share the output of Output > Extension Host? image

RSud-devops commented 5 months ago

OK, here is bellow the extension host (Remote) output: image

bwateratmsft commented 5 months ago

https://github.com/microsoft/vscode/issues/196300 looks like the same issue--dd-trace is injecting itself into the loading logic and causing problems. I see a line in your stack from dd-trace. Can you try uninstalling dd-trace and see if the issue persists?

bwateratmsft commented 5 months ago

Upstream issue in DataDog repo: https://github.com/DataDog/dd-trace-js/issues/3856

RSud-devops commented 5 months ago

Great!!! I uninstalled all datadog packages on my docker server, including dd-trace, and managed to enable the docker extension in vsCode. I now have full functionality of the docker extension remotely - SSH. I would like to thank you for your valuable help.

Regards, Marc

bwateratmsft commented 5 months ago

Awesome! Glad it's working now!