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

Isar Generator not using import aliases in generated code. #1557

Open
1 task done
jtdLab opened this issue Jan 31, 2024 · 1 comment
Open
1 task done

Isar Generator not using import aliases in generated code. #1557

jtdLab opened this issue Jan 31, 2024 · 1 comment

Comments

@jtdLab
Copy link

jtdLab commented Jan 31, 2024

Steps to Reproduce

When importing a file with an alias and running isar_generator: ^3.1.0+1
The generated file is not using the alias and thus has analyzer errors.

Code sample

// other.dart
enum Other { foo }
// foo.dart
import 'package:isar/isar.dart';

import 'other.dart' as o;

part 'foo.g.dart';

@collection
class Foo {
  Id id = Isar.autoIncrement;

  @enumerated
  o.Other other = o.Other.foo;
}
  • I am able to provide a reproducible example
@maxiloEmmmm
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants