Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textfield sugar에서 kotlin internal backend error가 발생함 #706

Open
jisungbin opened this issue May 24, 2023 · 2 comments · Fixed by #804
Open

textfield sugar에서 kotlin internal backend error가 발생함 #706

jisungbin opened this issue May 24, 2023 · 2 comments · Fixed by #804
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed sugar-hosted

Comments

@jisungbin
Copy link
Contributor

jisungbin commented May 24, 2023

No mapping for symbol: VALUE_PARAMETER name:singleLine index:10 type:kotlin.Boolean

추후 이 문제를 해결하고 textfield sugar를 활성화해야 함

@jisungbin jisungbin added bug Something isn't working sugar-hosted labels May 24, 2023
@jisungbin jisungbin self-assigned this May 24, 2023
@jisungbin jisungbin changed the title textfield sugar에서 internal backend error가 발생함 textfield sugar에서 kotlin internal backend error가 발생함 May 24, 2023
jisungbin added a commit that referenced this issue May 24, 2023
@jisungbin jisungbin reopened this Jul 16, 2023
@jisungbin
Copy link
Contributor Author

jisungbin commented Jul 16, 2023

kotlinc의 문제가 아닌 sugar-hosted-transformer 문제로 파악됨

kotlin version: 1.8.22
error message: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
File being compiled: /Users/jisungbin/AndroidStudioProjects/quack-quack-android/ui/src/main/kotlin/team/duckie/quackquack/ui/sugar/textfield.kt
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
	at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:253)
	at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:237)
	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:68)
	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:55)
	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:41)
	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
	at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
	at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29)
	at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:16)
	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
	at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
	at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:43)
	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.invokeCodegen(JvmIrCodegenFactory.kt:321)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.runCodegen(KotlinToJVMBytecodeCompiler.kt:348)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:123)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:47)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:168)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:53)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:100)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:46)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:495)
	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:133)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.doCompile(IncrementalCompilerRunner.kt:486)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:409)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileNonIncrementally(IncrementalCompilerRunner.kt:290)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:112)
	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:627)
	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:101)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1587)
	at jdk.internal.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.RuntimeException: Exception while generating code for:
FUN name:QuackFilledLargeFilledTextField visibility:public modality:FINAL <> (value:kotlin.String, onValueChange:kotlin.Function1<kotlin.String, kotlin.Unit>, modifier:androidx.compose.ui.Modifier?, enabled:kotlin.Boolean, readOnly:kotlin.Boolean, placeholderText:kotlin.String?, placeholderStrategy:team.duckie.quackquack.ui.TextFieldPlaceholderStrategy?, keyboardOptions:androidx.compose.foundation.text.KeyboardOptions?, keyboardActions:androidx.compose.foundation.text.KeyboardActions?, minLines:kotlin.Int, maxLines:kotlin.Int, visualTransformation:androidx.compose.ui.text.input.VisualTransformation?, onTextLayout:kotlin.Function1<androidx.compose.ui.text.TextLayoutResult, kotlin.Unit>?, interactionSource:androidx.compose.foundation.interaction.MutableInteractionSource?, $composer:androidx.compose.runtime.Composer?, $changed:kotlin.Int, $changed1:kotlin.Int, $default:kotlin.Int) returnType:kotlin.Unit
  annotations:
    Casa
    Composable
    NonRestartableComposable
    ExperimentalDesignToken
    ExperimentalQuackQuackApi
    SugarRefer(fqn = 'team.duckie.quackquack.ui.QuackFilledTextField')
  VALUE_PARAMETER name:value index:0 type:kotlin.String
    annotations:
      CasaValue(literal = '"QuackFilledTextFieldPreview"')
  VALUE_PARAMETER name:onValueChange index:1 type:kotlin.Function1<kotlin.String, kotlin.Unit>
    annotations:
      CasaValue(literal = '{}')
  VALUE_PARAMETER name:modifier index:2 type:androidx.compose.ui.Modifier? [assignable]
  VALUE_PARAMETER name:enabled index:3 type:kotlin.Boolean [assignable]
  VALUE_PARAMETER name:readOnly index:4 type:kotlin.Boolean [assignable]
  VALUE_PARAMETER name:placeholderText index:5 type:kotlin.String? [assignable]
  VALUE_PARAMETER name:placeholderStrategy index:6 type:team.duckie.quackquack.ui.TextFieldPlaceholderStrategy? [assignable]
  VALUE_PARAMETER name:keyboardOptions index:7 type:androidx.compose.foundation.text.KeyboardOptions? [assignable]
  VALUE_PARAMETER name:keyboardActions index:8 type:androidx.compose.foundation.text.KeyboardActions? [assignable]
  VALUE_PARAMETER name:minLines index:9 type:kotlin.Int [assignable]
  VALUE_PARAMETER name:maxLines index:10 type:kotlin.Int [assignable]
  VALUE_PARAMETER name:visualTransformation index:11 type:androidx.compose.ui.text.input.VisualTransformation? [assignable]
  VALUE_PARAMETER name:onTextLayout index:12 type:kotlin.Function1<androidx.compose.ui.text.TextLayoutResult, kotlin.Unit>? [assignable]
  VALUE_PARAMETER name:interactionSource index:13 type:androidx.compose.foundation.interaction.MutableInteractionSource? [assignable]
  VALUE_PARAMETER name:$composer index:14 type:androidx.compose.runtime.Composer? [assignable]
  VALUE_PARAMETER name:$changed index:15 type:kotlin.Int
  VALUE_PARAMETER name:$changed1 index:16 type:kotlin.Int
  VALUE_PARAMETER MASK_FOR_DEFAULT_FUNCTION name:$default index:17 type:kotlin.Int
  BLOCK_BODY
    BLOCK type=kotlin.Unit origin=null
      CALL 'public abstract fun startReplaceableGroup (key: kotlin.Int): kotlin.Unit declared in androidx.compose.runtime.Composer' type=kotlin.Unit origin=null
        $this: GET_VAR '$composer: androidx.compose.runtime.Composer? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=androidx.compose.runtime.Composer? origin=null
        key: CONST Int type=kotlin.Int value=301007161
      CALL 'public final fun sourceInformation (composer: androidx.compose.runtime.Composer, sourceInformation: kotlin.String): kotlin.Unit declared in androidx.compose.runtime.ComposerKt' type=kotlin.Unit origin=null
        composer: GET_VAR '$composer: androidx.compose.runtime.Composer? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=androidx.compose.runtime.Composer? origin=null
        sourceInformation: CONST String type=kotlin.String value="C(QuackFilledLargeFilledTextField)P(12,8,6!1,11,10,9,3,2,5,4,13,7)50@50356L39:textfield.kt#1qusoy"
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=4
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'modifier: androidx.compose.ui.Modifier? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:Companion type:androidx.compose.ui.Modifier.Companion visibility:public [final,static]' type=androidx.compose.ui.Modifier.Companion origin=null
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=8
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'enabled: kotlin.Boolean [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CONST Boolean type=kotlin.Boolean value=true
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=16
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'readOnly: kotlin.Boolean [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CONST Boolean type=kotlin.Boolean value=false
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=32
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'placeholderText: kotlin.String? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CONST Null type=kotlin.Nothing? value=null
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=64
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'placeholderStrategy: team.duckie.quackquack.ui.TextFieldPlaceholderStrategy? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          GET_FIELD 'FIELD FIELD_FOR_ENUM_ENTRY name:Hidable type:team.duckie.quackquack.ui.TextFieldPlaceholderStrategy visibility:public [final,static]' type=team.duckie.quackquack.ui.TextFieldPlaceholderStrategy origin=null
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=128
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'keyboardOptions: androidx.compose.foundation.text.KeyboardOptions? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CALL 'public final fun <get-Default> (): androidx.compose.foundation.text.KeyboardOptions declared in androidx.compose.foundation.text.KeyboardOptions.Companion' type=androidx.compose.foundation.text.KeyboardOptions origin=GET_PROPERTY
            $this: GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:Companion type:androidx.compose.foundation.text.KeyboardOptions.Companion visibility:public [final,static]' type=androidx.compose.foundation.text.KeyboardOptions.Companion origin=null
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=256
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'keyboardActions: androidx.compose.foundation.text.KeyboardActions? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CALL 'public final fun <get-Default> (): androidx.compose.foundation.text.KeyboardActions declared in androidx.compose.foundation.text.KeyboardActions.Companion' type=androidx.compose.foundation.text.KeyboardActions origin=GET_PROPERTY
            $this: GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:Companion type:androidx.compose.foundation.text.KeyboardActions.Companion visibility:public [final,static]' type=androidx.compose.foundation.text.KeyboardActions.Companion origin=null
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=512
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'minLines: kotlin.Int [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CONST Int type=kotlin.Int value=1
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=1024
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'maxLines: kotlin.Int [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          WHEN type=kotlin.Int origin=IF
            BRANCH
              if: GET_VAR 'singleLine: kotlin.Boolean declared in team.duckie.quackquack.ui.QuackFilledTextField' type=kotlin.Boolean origin=null
              then: CONST Int type=kotlin.Int value=1
            BRANCH
              if: CONST Boolean type=kotlin.Boolean value=true
              then: CONST Int type=kotlin.Int value=2147483647
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=2048
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'visualTransformation: androidx.compose.ui.text.input.VisualTransformation? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CALL 'public final fun <get-None> (): androidx.compose.ui.text.input.VisualTransformation declared in androidx.compose.ui.text.input.VisualTransformation.Companion' type=androidx.compose.ui.text.input.VisualTransformation origin=GET_PROPERTY
            $this: GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:Companion type:androidx.compose.ui.text.input.VisualTransformation.Companion visibility:public [final,static]' type=androidx.compose.ui.text.input.VisualTransformation.Companion origin=null
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=4096
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'onTextLayout: kotlin.Function1<androidx.compose.ui.text.TextLayoutResult, kotlin.Unit>? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          BLOCK type=team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> origin=null
            CLASS LAMBDA_IMPL CLASS name:<no name provided> modality:FINAL visibility:public/*package*/ superTypes:[kotlin.jvm.internal.Lambda; kotlin.Function1<androidx.compose.ui.text.TextLayoutResult, kotlin.Unit>]
              $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>
              CONSTRUCTOR GENERATED_MEMBER_IN_CALLABLE_REFERENCE visibility:public/*package*/ <> () returnType:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> [primary]
                BLOCK_BODY
                  DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> (arity: kotlin.Int) declared in kotlin.jvm.internal.Lambda'
                    arity: CONST Int type=kotlin.Int value=1
                  BLOCK type=kotlin.Unit origin=null
              FUN name:invoke visibility:public modality:FINAL <> ($this:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>, it:androidx.compose.ui.text.TextLayoutResult) returnType:kotlin.Unit
                overridden:
                  public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1
                $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>
                VALUE_PARAMETER name:it index:0 type:androidx.compose.ui.text.TextLayoutResult
                BLOCK_BODY
                  RETURN type=kotlin.Nothing from='public final fun invoke (it: androidx.compose.ui.text.TextLayoutResult): kotlin.Unit declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>'
                    GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:INSTANCE type:kotlin.Unit visibility:public [final,static]' type=kotlin.Unit origin=null
              FIELD FIELD_FOR_OBJECT_INSTANCE name:INSTANCE type:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> visibility:public [final,static]
              FUN CLASS_STATIC_INITIALIZER name:<clinit> visibility:public/*package*/ modality:FINAL <> () returnType:kotlin.Unit
                BLOCK_BODY
                  SET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:INSTANCE type:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> visibility:public [final,static]' type=kotlin.Unit origin=INITIALIZE_FIELD
                    value: CONSTRUCTOR_CALL 'public/*package*/ constructor <init> () [primary] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>' type=team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> origin=null
              FUN BRIDGE name:invoke visibility:public modality:OPEN <> ($this:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>, p1:kotlin.Any?) returnType:kotlin.Any?
                $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>
                VALUE_PARAMETER BRIDGE name:p1 index:0 type:kotlin.Any?
                EXPRESSION_BODY
                  RETURN type=kotlin.Nothing from='public open fun invoke (p1: kotlin.Any?): kotlin.Any? declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>'
                    CALL 'public final fun invoke (it: androidx.compose.ui.text.TextLayoutResult): kotlin.Unit declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>' type=kotlin.Unit origin=BRIDGE_DELEGATION
                      $this: GET_VAR '<this>: team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>.invoke' type=team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> origin=null
                      it: TYPE_OP type=androidx.compose.ui.text.TextLayoutResult origin=IMPLICIT_CAST typeOperand=androidx.compose.ui.text.TextLayoutResult
                        GET_VAR 'p1: kotlin.Any? declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided>.invoke' type=kotlin.Any? origin=null
            GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:INSTANCE type:team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> visibility:public [final,static]' type=team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField.<no name provided> origin=null
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null
          $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=null
            arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
              $this: GET_VAR '$default: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
              other: CONST Int type=kotlin.Int value=8192
            arg1: CONST Int type=kotlin.Int value=0
        then: SET_VAR 'interactionSource: androidx.compose.foundation.interaction.MutableInteractionSource? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Unit origin=null
          CALL 'public final fun remember <T> (calculation: @[DisallowComposableCalls] kotlin.Function0<T of androidx.compose.runtime.ComposablesKt.remember>, $composer: androidx.compose.runtime.Composer?, $changed: kotlin.Int): T of androidx.compose.runtime.ComposablesKt.remember [inline] declared in androidx.compose.runtime.ComposablesKt' type=androidx.compose.foundation.interaction.MutableInteractionSource origin=null
            <T>: androidx.compose.foundation.interaction.MutableInteractionSource
            calculation: BLOCK type=kotlin.Function0<androidx.compose.foundation.interaction.MutableInteractionSource> origin=LAMBDA
              COMPOSITE type=kotlin.Unit origin=null
              FUNCTION_REFERENCE 'private final fun QuackFilledLargeFilledTextField$lambda$0 (): androidx.compose.foundation.interaction.MutableInteractionSource declared in team.duckie.quackquack.ui.sugar.TextfieldKt' type=kotlin.Function0<androidx.compose.foundation.interaction.MutableInteractionSource> origin=INLINE_LAMBDA reflectionTarget=null
            $composer: GET_VAR '$composer: androidx.compose.runtime.Composer? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=androidx.compose.runtime.Composer? origin=null
            $changed: CONST Int type=kotlin.Int value=0
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun isTraceInProgress (): kotlin.Boolean declared in androidx.compose.runtime.ComposerKt' type=kotlin.Boolean origin=null
        then: CALL 'public final fun traceEventStart (key: kotlin.Int, dirty1: kotlin.Int, dirty2: kotlin.Int, info: kotlin.String): kotlin.Unit declared in androidx.compose.runtime.ComposerKt' type=kotlin.Unit origin=null
          key: CONST Int type=kotlin.Int value=301007161
          dirty1: GET_VAR '$changed: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
          dirty2: GET_VAR '$changed1: kotlin.Int declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=kotlin.Int origin=null
          info: CONST String type=kotlin.String value="team.duckie.quackquack.ui.sugar.QuackFilledLargeFilledTextField (textfield.kt:33)"
    WHEN type=kotlin.Unit origin=IF
      BRANCH
        if: CALL 'public final fun isTraceInProgress (): kotlin.Boolean declared in androidx.compose.runtime.ComposerKt' type=kotlin.Boolean origin=null
        then: CALL 'public final fun traceEventEnd (): kotlin.Unit declared in androidx.compose.runtime.ComposerKt' type=kotlin.Unit origin=null
    CALL 'public abstract fun endReplaceableGroup (): kotlin.Unit declared in androidx.compose.runtime.Composer' type=kotlin.Unit origin=null
      $this: GET_VAR '$composer: androidx.compose.runtime.Composer? [assignable] declared in team.duckie.quackquack.ui.sugar.TextfieldKt.QuackFilledLargeFilledTextField' type=androidx.compose.runtime.Composer? origin=null

	at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
	at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate$default(FunctionCodegen.kt:43)
	at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethodNode(ClassCodegen.kt:391)
	at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethod(ClassCodegen.kt:408)
	at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generate(ClassCodegen.kt:170)
	at org.jetbrains.kotlin.backend.jvm.FileCodegen.lower(JvmPhases.kt:44)
	at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:120)
	at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:116)
	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
	at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:65)
	... 43 more
Caused by: java.lang.IllegalStateException: No mapping for symbol: VALUE_PARAMETER name:singleLine index:10 type:kotlin.Boolean
	at org.jetbrains.kotlin.backend.jvm.codegen.IrFrameMap.typeOf(irCodegenUtils.kt:55)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitGetValue(ExpressionCodegen.kt:669)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitGetValue(ExpressionCodegen.kt:132)
	at org.jetbrains.kotlin.ir.expressions.IrGetValue.accept(IrGetValue.kt:19)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitWhen(ExpressionCodegen.kt:957)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitWhen(ExpressionCodegen.kt:132)
	at org.jetbrains.kotlin.ir.expressions.IrWhen.accept(IrWhen.kt:25)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitSetValue(ExpressionCodegen.kt:797)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitSetValue(ExpressionCodegen.kt:132)
	at org.jetbrains.kotlin.ir.expressions.IrSetValue.accept(IrSetValue.kt:25)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitWhen(ExpressionCodegen.kt:960)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitWhen(ExpressionCodegen.kt:132)
	at org.jetbrains.kotlin.ir.expressions.IrWhen.accept(IrWhen.kt:25)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitStatementContainer(ExpressionCodegen.kt:459)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:463)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:132)
	at org.jetbrains.kotlin.ir.expressions.IrBlockBody.accept(IrBlockBody.kt:24)
	at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.generate(ExpressionCodegen.kt:238)
	at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.doGenerate(FunctionCodegen.kt:122)
	at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:47)
	... 53 more

@jisungbin jisungbin added the help wanted Extra attention is needed label Jul 20, 2023
@jisungbin jisungbin pinned this issue Jul 20, 2023
@jisungbin
Copy link
Contributor Author

jisungbin commented Mar 8, 2024

이젠 원인을 안다! No mapping for symbol: VALUE_PARAMETER name:singleLine 라고 나와있네!
singleLine 파라미터의 IR 처리가 끝난 이후에 해당 파라미터에 접근을 시도해서 (symbolowner가 해제됨) 발생한 오류!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed sugar-hosted
Projects
Status: 🐛 Bug
Development

Successfully merging a pull request may close this issue.

1 participant