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

Can't open Realm in tests. #1711

Closed
htetlynnhtun opened this issue Jun 5, 2024 · 4 comments
Closed

Can't open Realm in tests. #1711

htetlynnhtun opened this issue Jun 5, 2024 · 4 comments

Comments

@htetlynnhtun
Copy link

What happened?

Failed to run test with the following Realm error

00:01 +0 -1: Init [E]
  Realm error : Could not open librealm_dart.dylib. Tried:
  - "/Users/username/.dev-tools/flutter/bin/cache/artifacts/engine/darwin-x64/../Frameworks/librealm_dart.dylib"
  Hint: Did you forget to add a dependency on the realm package?
  package:realm_dart/src/init.dart 71:5                _openRealmLib.throwError
  package:realm_dart/src/init.dart 84:29               _openRealmLib
  package:realm_dart/src/init.dart 120:24              initRealm
  package:realm_dart/src/native/realm_core.dart 47:31  _realmLib.<fn>
  package:realm_dart/src/native/realm_core.dart 55:2   _realmLib
  package:realm_dart/src/native/realm_core.dart        _realmLib
  package:realm_dart/src/native/realm_core.dart 104:5  new _RealmCore
  package:realm_dart/src/native/realm_core.dart 81:24  realmCore
  package:realm_dart/src/native/realm_core.dart        realmCore
  package:realm_dart/src/configuration.dart 85:14      Configuration.defaultStoragePath
  package:realm_dart/src/configuration.dart 95:47      Configuration.defaultRealmPath
  package:realm_dart/src/configuration.dart            Configuration.defaultRealmPath
  package:realm_dart/src/configuration.dart 109:44     Configuration._defaultPath
  package:realm_dart/src/configuration.dart 105:50     new Configuration._
  package:realm_dart/src/configuration.dart 411:14     new InMemoryConfiguration._
  package:realm_dart/src/configuration.dart 174:29     Configuration.inMemory
  test/realm_test.dart 6:39                            main.<fn>

Repro steps

  1. Clone this repo.
  2. run flutter pub get
  3. run dart run realm install -t macos (or even dart run realm_dart install -t macos
  4. run `flutter test test/realm_test.dart

Version

3.22.1

What Atlas Services are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

macos 14.5

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Copy link

sync-by-unito bot commented Jun 5, 2024

➤ PM Bot commented:

Jira ticket: RDART-1051

@nielsenko
Copy link
Contributor

@htetlynnhtun Thanks for trying realm. This is a duplicate of #1619 so I'll close this one.

@htetlynnhtun
Copy link
Author

So the fix #1623 is not released for production yet? Right?

@nielsenko
Copy link
Contributor

@htetlynnhtun No. It is merged to main, but not released yet.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 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

2 participants