You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Dart VM version: 2.1.0 (Tue Nov 13 18:22:02 2018 +0100) on "linux_x64" with build_runner 1.2.3 and build 1.1.0. I'm applying built_value_generator on a project that includes a file like this (called vm_database.dart)
import'package:sqlite2/sqlite.dart';
// code that does not use built_value at all
package:sqlite2/sqlite.dart imports package:sqlite2/src/native.dart, which in turn has a import 'dart-ext:dart_sqlite'; directive.
When I run pub run build_runner build --verbose, I get an error on my file:
A builder I've written is applied on the same file, seemingly after built_value. It throws the following error:
[SEVERE] sally_generator on lib/vm_database.dart:
NoSuchMethodError: The method 'where' was called on null.
Receiver: null
Tried calling: where(Closure: (AssetId) => bool)
dart:core Object.noSuchMethod
package:build_resolvers/src/resolver.dart 148:14 AnalyzerResolver._performResolve.processAsset.<fn>
The text was updated successfully, but these errors were encountered:
I think we should be explicitly skipping any imports with the dart-ext scheme, just like we do with the dart scheme? Not sure if that would solve the second issue, but worth a shot.
It looks like that does fix both issues. I can only use build_resolvers 0.2.3 because built_value doesn't support version 0.35 of the analyzer yet, but after adding an additional check for dart-ext here
I'm using
Dart VM version: 2.1.0 (Tue Nov 13 18:22:02 2018 +0100) on "linux_x64"
withbuild_runner 1.2.3
andbuild 1.1.0
. I'm applyingbuilt_value_generator
on a project that includes a file like this (calledvm_database.dart
)package:sqlite2/sqlite.dart
importspackage:sqlite2/src/native.dart
, which in turn has aimport 'dart-ext:dart_sqlite';
directive.When I run
pub run build_runner build --verbose
, I get an error on my file:A builder I've written is applied on the same file, seemingly after
built_value
. It throws the following error:The text was updated successfully, but these errors were encountered: