org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:generateDebugSqlDelightInterface'.

GitHub | drymarev | 5 months ago
  1. 0

    Imports in .sq files containing certain SQL keywords throw SqlDelightException

    GitHub | 5 months ago | drymarev
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:generateDebugSqlDelightInterface'.

    Root Cause Analysis

    1. com.squareup.sqldelight.gradle.SqlDelightException

      Example.sq line 1:7 - no viable alternative at input 'no'

      at com.squareup.sqldelight.gradle.ErrorListener.syntaxError()
    2. com.squareup.sqldelight
      ErrorListener.syntaxError
      1. com.squareup.sqldelight.gradle.ErrorListener.syntaxError(ErrorListener.kt:26)
      1 frame
    3. ANTLR 4 Runtime
      DefaultErrorStrategy.reportError
      1. org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:65)
      2. org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:558)
      3. org.antlr.v4.runtime.DefaultErrorStrategy.reportNoViableAlternative(DefaultErrorStrategy.java:310)
      4. org.antlr.v4.runtime.DefaultErrorStrategy.reportError(DefaultErrorStrategy.java:147)
      4 frames
    4. com.squareup.sqldelight
      SqlDelightTask.execute
      1. com.squareup.sqldelight.SqliteParser.java_type_name(SqliteParser.java:7048)
      2. com.squareup.sqldelight.SqliteParser.import_stmt(SqliteParser.java:399)
      3. com.squareup.sqldelight.SqliteParser.sql_stmt_list(SqliteParser.java:324)
      4. com.squareup.sqldelight.SqliteParser.parse(SqliteParser.java:216)
      5. com.squareup.sqldelight.gradle.SqlDelightTask.parseThen(SqlDelightTask.kt:112)
      6. com.squareup.sqldelight.gradle.SqlDelightTask.execute(SqlDelightTask.kt:58)
      6 frames
    5. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    6. Gradle Core
      ExecuteActionsTaskExecuter.executeActions
      1. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:245)
      2. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
      3. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:232)
      4. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
      5. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
      6. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
      6 frames