isar icon indicating copy to clipboard operation
isar copied to clipboard

build runner not generated files

Open aquinary opened this issue 1 year ago • 3 comments

Steps to Reproduce

Please describe exactly how to reproduce the problem you are running into.

dart create -t console isar_test
cd isar_test
dart pub add isar build_runner
dart run build_runner watch

Code sample

Edit bin/isar_test.dart

import 'package:isar/isar.dart';

part 'isar_test.d.dart';

@Collection() 
class Package {
  Id? id;

  int? age;
}


void main(List<String> arguments) {
  
}

Details

  • Platform: Linux x86_64
  • Flutter version: Not use
  • Isar version: ^3.1.0+1

  • [x] I searched for similar issues already
  • [x] I filled the details section with the exact device model and version
  • [x] I am able to provide a reproducible example

aquinary avatar Oct 10 '24 22:10 aquinary

yesterday i also experienced it, try running dart pub upgrade

azkadev avatar Oct 10 '24 22:10 azkadev

yesterday i also experienced it, try running dart pub upgrade

It was necessary to add isar_generator to the dependencies. I found out about it when I moved to pub.dev > Version > Documentation for 3.1.0.

This is kind of crazy.

aquinary avatar Oct 10 '24 23:10 aquinary

thanks it works

fodedoumbouya avatar Oct 30 '24 13:10 fodedoumbouya