couchbaselabs / vscode-cblite

Apache License 2.0
11 stars 6 forks source link

Error running command cblite.explorer.getDocument #12

Open tele-bird opened 3 weeks ago

tele-bird commented 3 weeks ago

Using this sample app, I wrote data to the CBLite database on my iPhone simulator running on my Mac:

https://developer.couchbase.com/tutorial-quickstart-xamarin-forms-basic

I'm able to install the CBLite extension into my VSCode, open a cblite2 database, and the data appears in the left pane in VSCode (but only after re-opening the folder and database). However, when I right-click the DB file and select GetDocument, I get the following error:

Screenshot 2024-10-02 at 10 02 46 AM

Benjelino commented 1 week ago

@tele-bird is this issue resolved, I am facing this same issue

tele-bird commented 1 week ago

I tried again in this other sample app, and it still happens with the "user-profile" database. https://developer.couchbase.com/tutorial-quickstart-xamarin-forms-query However, I notice that the issue does not happen for documents in the "universities" database in this sample app. Probably there is something materially different in the "user-profile" database that is causing the issue. There may be a problem in those example apps, but I think that the cblite extension could handle the problem more gracefully.

borrrden commented 1 week ago

This is actually the result of upgrading the database to 3.2.0 format. There was a breaking change in the binary format that makes it unreadable on 3.1.x. This should get resolved with an update to use the 3.2.0 SDK via the plugin.