Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browsing the realm database generated using Realm v10.8.0 fails #1434

Closed
ravikirankhareedi opened this issue Jun 15, 2021 · 15 comments
Closed

Comments

@ravikirankhareedi
Copy link

ravikirankhareedi commented Jun 15, 2021

Describe the bug
Opening realm files throws an error - "Realm files of format version 22 is not supported by this version of Realm."
Realm Studio Version 11.0.0-beta.1
Realm v10.8.0

To Reproduce
Use Realm v10.8.0 with a swift application. Make use of the new feature, AnyRealmValue. Write to the DB. Try opening the file with the above mentioned version of Realm Studio.

Expected behavior
As per the doc, Realm Studio Version 11.0.0-beta.1 should be compatible.

Screenshots

Versions:

  • OS: Mac 11.1
  • Studio Version: Realm Studio Version 11.0.0-beta.1
  • Realm Object Server version [e.g. 3.0.1]
@kneth
Copy link
Member

kneth commented Jun 18, 2021

@ravikirankhareedi Unfortunately we haven't released Realm Studio with support for the new data types (and the new file format). We are currently working on getting a version of Realm JavaScript release with support for new file format. Realm Studio will be upgraded and released shortly after.

@tomcondon
Copy link

It seems irresponsible to release a new file format without a tool that can read it. Looking at data in your database independent of your app being developed is a pretty vital feature. As I am finding out this Father's day this Sunday night.

@ravikirankhareedi
Copy link
Author

@ravikirankhareedi Unfortunately we haven't released Realm Studio with support for the new data types (and the new file format). We are currently working on getting a version of Realm JavaScript release with support for new file format. Realm Studio will be upgraded and released shortly after.

Thanks for the update. Can you please update the documentation accordingly. Thanks.

@ianpward
Copy link

@tomcondon We had planned for RealmJS to be released with the other SDKs but the engineer responsible for performing the release was hit by a personal emergency. Thank you for your support of this free and open source project.

@tomcondon
Copy link

Sorry for your colleague, but you should really have updated the documentation. Now that I upgraded, I am kind of flying blind with respect of examining what is in my database without a functioning Realm Studio.

@ndav
Copy link

ndav commented Jun 21, 2021

It’s unfortunate that this has happened but we are where we are. I have literally just started using realm and though it was me. Glad I found this thread. I would say from an engineering perspective it would have been better to hold off on the library update until the tools were ready to support it.

Not particularly helpful comments on this being a free library. Essentially telling us to shut up or put up. Developer relations are way more important than a simple issue (especially now with MongoDB in the fray). Let’s move past it but I would suggest a little more comms to those using the library to make this the community you’d want it to be.

@ianpward
Copy link

I am just hoping that we can all have some patience and remember that we are humans that have other things occur in our lives. We couldn't have held back the release because the other releases were out already when the issue with JS occurred, but I'm not sure we would have held the other releases anyway since Studio is in use by less than 10% of our users. Other users develop their own ways to view the database such as print the object in question to console or develop their own command-line utility. I myself find Studio useful for development - but if you're in development and you really need to use Studio, why not downgrade to a version that supports Studio to continue your development?

@ndav
Copy link

ndav commented Jun 22, 2021

Just to clarify this issue exists in swift/iOS too (not just JS). This was the basis of the initial issue report.

@ianpward
Copy link

Studio is built with RealmJS which is dependency to build a new version.

@ndav
Copy link

ndav commented Jun 22, 2021

Studio is built with RealmJS which is dependency to build a new version.

Aha got you 👍

@yuya-h-29
Copy link

@ndav @kneth @ravikirankhareedi
Hi, I'm new to iOS dev and Realm database.
So... I came across this issue now. (Realm files of format version 22 is not supported by this version of Realm.)
I understood it is not possible to browse the data in the format currently, but how can I change the format version to browse data in Realm Studio??

@FelixLisczyk
Copy link

@yuya-h-29 You need to use an older version of the Realm framework, e.g. v10.7.7. This approach only works if you haven't shipped your app with the new Realm framework yet. Downgrading an existing database will crash the app on launch.

@yuya-h-29
Copy link

yuya-h-29 commented Jun 23, 2021

@FelixLisczyk
Thank you for the reply!
I wrote pod 'RealmSwift', '~> 10.7.7' in my project and copy and paste the URL of /Users/... /default.realm to Realm Studio, but still get the same message...
I used MongoDB Realm Studio 10.1.2.

@yuya-h-29
Copy link

@FelixLisczyk
I downgraded to '10.7.3' and now it is working...
Thank you for your help!!

@ianpward
Copy link

Realm Studio v11 has been released with support for file format v22 -
https://studio-releases.realm.io/v11.0.0

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants