`Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImpl`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
調査の方向性
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 の本文から書いたものです。
説明
Component
- github-workflows-kt (library with the DSL)
- bindings server (https://bindings.krzeminski.it)
- I don't know
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
typesafegithub/github-workflows-kt のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
typesafegithub/github-workflows-kt#2389 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
typesafegithub/github-workflows-kt#2368 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Use a lib to interact with GitHub対応中かも @LeoColman が 557 日前に担当しました。 オープンoperational
typesafegithub/github-workflows-kt#1884 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
problem
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
typesafegithub/github-workflows-kt#1864 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
problem
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
typesafegithub/github-workflows-kt#1756 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
typesafegithub/github-workflows-kt の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
lugassawan/swe-workbench#799 ·
メンテナーはふだん 1 日以内に返信
-
Default book icon displayed while loading対応中かも @Bhaskar-Guthula-137 が今日担当しました。 オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
kiwix/kiwix-android#5194 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jellyfin/jellyfin-androidtv#5885 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 73/100
tortuvshin/open-apps#377 ·
メンテナーはふだん 1 日以内に返信
-
contributor: external needs review
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信