github-workflows-kt
github-workflows-kt copied to clipboard
IntelliJ doesn't like import actions.`8398a7`.ActionSlackV3
Action
I'm using ActionSlackV3
which is inside a weirdly named package:
import it.krzeminski.githubactions.actions.
8398a7
.ActionSlackV3
Everw now and then when I open the script in IntelliJ, it does a Collecting Imports
action automatically
and breaks the script by converting it to
import it.krzeminski.githubactions.actions
ActionSlackV3
is then not available anymore
Workaround, if exists
Manually reverting the import or using a typealias
typealias ActionSlackV3 = it.krzeminski.githubactions.actions.`8398a7`.ActionSlackV3
typealias ActionSlackV3Always = it.krzeminski.githubactions.actions.`8398a7`.ActionSlackV3.MentionStatus.Always
typealias ActionSlackV3Custom = it.krzeminski.githubactions.actions.`8398a7`.ActionSlackV3.Status.Custom
Library version
IntelliJ IDEA 2022.1.3 (Ultimate Edition)
One thing that comes to my mind is preventing having a digit in front of the package name, e.g. owner8398a7
or u8398a7
.
Anyway, looks like an IntelliJ bug right? Not sure if we should track it here, at least as a library bug - maybe as a problem. TODO: browse for such bug in IntelliJ's YouTrack or create such bug.
Asked here, before I cut a bug: https://kotlinlang.slack.com/archives/C0B8H786P/p1658230028613269