Skip to content

Data Connect Kotlin Generated Code Missing comma between parameters #10336

Closed

Description

@mschwerz-bitrip

[REQUIRED] Environment info

firebase-tools: 15.14.0

Platform: macOS

[REQUIRED] Test case

Run through the Android codelab: https://firebase.google.com/codelabs/firebase-dataconnect-android

[REQUIRED] Steps to reproduce

[REQUIRED] Expected behavior

Code generated for the SearchMovieQuery.kt to have a comma between block and fetchPolicy parameters:

public suspend fun SearchMovieQuery.execute(
  
    
  
    block_: SearchMovieQuery.Variables.Builder.() -> Unit = {},
  
  fetchPolicy: com.google.firebase.dataconnect.QueryRef.FetchPolicy = com.google.firebase.dataconnect.QueryRef.FetchPolicy.PREFER_CACHE,
  ): com.google.firebase.dataconnect.QueryResult<
    SearchMovieQuery.Data,
    SearchMovieQuery.Variables
  > =
  ref(
    
      
  
    block_
    
  ).execute(fetchPolicy = fetchPolicy)

[REQUIRED] Actual behavior

Code generated by firebase tools produces a SearchMovieQuery.kt that cannot compile currently:

public suspend fun SearchMovieQuery.execute(
  
    
  
    block_: SearchMovieQuery.Variables.Builder.() -> Unit = {}
  
  fetchPolicy: com.google.firebase.dataconnect.QueryRef.FetchPolicy = com.google.firebase.dataconnect.QueryRef.FetchPolicy.PREFER_CACHE,
  ): com.google.firebase.dataconnect.QueryResult<
    SearchMovieQuery.Data,
    SearchMovieQuery.Variables
  > =
  ref(
    
      
  
    block_
    
  ).execute(fetchPolicy = fetchPolicy)

Activity

  1. added
    api: dataconnect
    on Apr 14, 2026
  2. aalej commented on Apr 14, 2026

    @aalej
    Contributor

    Thanks for reporting this @mschwerz-bitrip! I was able to reproduce the issue, I'll raise this to our engineering team so they can take a look and will mark this as reproducible.

  3. dconeybe commented on Apr 14, 2026

    @dconeybe
    Contributor

    @aashishpatil-g has a fix in progress for this bug. Thank you for reporting and my apologies for the inconvenience! It was a case that was missed during my testing 🤦🏻

  4. aashishpatil-g commented on Apr 15, 2026

    @aashishpatil-g
    Contributor

    This should be fixed in the latest emulator release 3.4.5.

  5. added a commit that references this issue on Apr 29, 2026
  6. added a commit that references this issue on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: dataconnectreproducibletype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions