There is no data provider registered that can provide view data

Cody stopped working.




I got the “There is no data provider registered that can provide view data.” I also cannot access any of the sidebar settings under Settings & Support. Whenever I try i get a “command ‘cody.sidebar.XXX’ not found” message pop-up. I’ve tried uninstalling/reinstalling both the extension and VS Code, and switching back and forth between release and pre-release. Any info, guidance, on this?

Edit:
I should add that hovering over a squiggly and picking Quick Fix → Ask Cody to Fix does work, whereas Ask Cody to Explain does not and brings up the aforementioned pop-up.

VS Code 1.90.2
Cody version: All
OS: Win10 (Windows_NT x64 10.0.19045)

Here’s another user with the same issue:

2 Likes

same problem here. any news on that?

Please try to deinstall and install Cody new.

If the issue persists, please provide the output logs of Sourcegraph Cody in the output tab.

Sorry for the inconvenience.

This issue with Cody in VS Code likely results from either a bug in the Cody extension or a compatibility problem following the latest VS Code update. One approach to resolving this is to clear the VS Code cache, as it sometimes creates compatibility issues after updates. To do this, close VS Code, navigate to the Users\<YOUR_USERNAME>\Roaming\%AppData%\Code\ folder (on Windows), and delete the Cache and CachedData folders before restarting VS Code.

Another method is to disable all other extensions, keeping only Cody enabled. If Cody works with other extensions turned off, re-enable them one by one to identify any potential conflicts. Switching between the latest stable Cody release and the pre-release may also help, as some versions are more compatible with recent VS Code updates than others.

Thank you for your detailed explanation.
I edited some parts, which you may know, would violate our community rules.

But because your answer was very helpful and clearly written, I refrain from banning and turn a blind eye.