raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
131 stars 16 forks source link

"There is no data provider registered that can provide view data." #112

Closed BruceMardle closed 3 weeks ago

BruceMardle commented 3 weeks ago

I've installed the Raspberry Pi Pico extension under VS Code on a Raspberry Pi 4 running up-to-date Bookworm. When I click on the Pico icon on the left side of the Code windows, it opens a panel that says "There is no data provider registered that can provide view data." How can I fix this?

paulober commented 3 weeks ago

This error indicates that the extension failed to activate. Do you see any error/debugging output in the "Help > Developer Tools" console? (or alternatively open a terminal in VS Code then select the output panel and select "Extension Host" in the dropdown on the right)

BruceMardle commented 3 weeks ago

If I start with Help>Developer Tools, it opens 3 new panes. The top of the top 1 says there are 2 warnings. If I then click on Raspberry Pi Pico Project, that adds another warning and 2 errors. The bottom of the Console seems to be relevant. If I select it, copy it, and paste it here, most of what it pastes isn't in the VS Code window. I'll try to attach a grab... VS Code errors

will-v-pi commented 3 weeks ago

Are you using 32 bit Raspberry Pi OS? It looks like the Microsoft Serial Monitor extension doesn’t have a build for your particular platform, which then prevents our extension from activating as that is a dependency.

BruceMardle commented 3 weeks ago

pi@raspberrypi:~ $ uname -a Linux raspberrypi 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

BruceMardle commented 3 weeks ago

but... sizeof(int)=4 [scratches head]

BruceMardle commented 3 weeks ago

and... pi@raspberrypi:~/c $ dpkg --print-architecture armhf I'll try installing the OS again.

will-v-pi commented 3 weeks ago

Ah yes, I think (although may be wrong) that the 32 bit OS on Pi 4 still has a 64 bit Kernel, but with 32 bit applications - which explains why uname reports 64 bit but dpkg reports 32 bit.