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

Realm models do not support file-scoped namespace #3215

Closed
GenPike opened this issue Feb 8, 2023 · 1 comment
Closed

Realm models do not support file-scoped namespace #3215

GenPike opened this issue Feb 8, 2023 · 1 comment

Comments

@GenPike
Copy link

GenPike commented Feb 8, 2023

What happened?

The new source generator doesn't automatically implement IRealmObject when used with file-scoped namespace approach. With classic namespace syntax everything is good, may be related to #3130

Repro steps

  1. Add new model with file-scoped namespace.
  2. Then add same model with classic namespace brackets.

Version

7

What Atlas Services are you using?

Atlas Device Sync

What type of application is this?

Xamarin

Client OS and version

Not relevant

Code snippets

namespace MyApp.Models;

public partial class SomeObject : IRealmObject
{
    public string SomeProperty { get; set; }
}

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

@papafe
Copy link
Contributor

papafe commented Feb 8, 2023

Hi @GenPike, thanks for the report. This has been already fixed and will be included in the next release.

@papafe papafe closed this as completed Feb 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 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