Kevin Moore
Kevin Moore
@brianquinlan ?
Does `PubSub` have a `fromJson` constructor and a `toJson` function?
And/or have you tried typing your function `FutureOr` *and* marking it `async`?
have you tried printing out the `pubspec.lock` file in CI? Comparing the versions of Dart? The only example I can think of is if the analyzer version has changed...
```diff diff --git a/examples/json/lib/functions.dart b/examples/json/lib/functions.dart index 4213df4..802a158 100644 --- a/examples/json/lib/functions.dart +++ b/examples/json/lib/functions.dart @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under...
Yep. Let's call it an enhancement!
I tried modifying the integration test file and it works perfectly. I'm going to close this out. If you can modify the `integartion_test/lib/src/json_handlers.dart` to reproduce the error, let me know....
I guess this IS a problem. Investigating more! https://github.com/GoogleCloudPlatform/functions-framework-dart/pull/472
It appears that `pkg:analyzer` `TypeSystem.isSubtypeOf` is broken in `v6.5.2`
Thanks @mrmax99 – we have some really weird overlap of package features here causing problems. We don't want analyzer to "go back" because the perf win with the new implementation...