Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImpl`

オープン
#2,348 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
github-actions, kotlin
領域
ci-cd

調査の方向性

Start with the linked CI run and .github/workflows/end-to-end-tests.main.kts, especially line 37. Compare the Kotlin 2.4.0 failure with the documented 2.3.21 workaround, then review KT-86352 and PR #2350. Done means the workflow compiles and CI succeeds without the reported FIR error.

索引モデルが issue の本文から書いたものです。

説明

problem

Component

Action

Just run CI for this project - looking at the step, it's about compiling the script: https://github.com/typesafegithub/github-workflows-kt/actions/runs/27213769566/job/80485705899

Expected

Succeeds.

Actual

Fails with

error: while analysing .github/workflows/end-to-end-tests.main.kts:37:5: org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImpl (end-to-end-tests.main.kts): org.jetbrains.kotlin.util.FileAnalysisException: While analysing .github/workflows/end-to-end-tests.main.kts:37:5: org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImpl

Most likely related to a bug in Kotlin 2.4.0, see KT-86352. Slack thread: https://kotlinlang.slack.com/archives/C0BT46EL8/p1780927673531079?thread_ts=1773078486.658489&cid=C0BT46EL8

Workaround, if exists

In your workflow, add:

@file:DependsOn("fwilhe2:setup-kotlin:v1")

import io.github.typesafegithub.workflows.actions.fwilhe2.SetupKotlin

// ...

workflow(
    // ...
    consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy(
        // ...
        additionalSteps = {
            uses(
                name = "Downgrade Kotlin",
                action = SetupKotlin(
                    // One version before 2.4.0 that contains a bug leading to this failure:
                    //   While analysing .github/workflows/build.main.kts:53:13:
                    //   org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments:
                    //   Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImpl
                    // This downgrade is meant to be a temporary workaround.
                    version = "2.3.21",
                ),
            )
        },
    ),

Example PR: https://github.com/typesafegithub/github-workflows-kt/pull/2350

主要言語
Kotlin
スター
665
フォーク
30
平均マージ
6分
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

typesafegithub/github-workflows-kt のほかの issue

typesafegithub/github-workflows-kt の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。