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

IntelliJ doesn't like import actions.8398a7.ActionSlackV3 #350

Open
jmfayard opened this issue Jul 18, 2022 · 3 comments
Open

IntelliJ doesn't like import actions.8398a7.ActionSlackV3 #350

jmfayard opened this issue Jul 18, 2022 · 3 comments
Labels
problem Not really a bug, but something isn't right.

Comments

@jmfayard
Copy link
Contributor

jmfayard commented Jul 18, 2022

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)

@jmfayard jmfayard added the bug Something isn't working label Jul 18, 2022
@jmfayard jmfayard changed the title [Bug] IntelliJ doesn [Bug] IntelliJ doesn't like import actions.8398a7.ActionSlackV3 Jul 18, 2022
@krzema12
Copy link
Member

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.

@krzema12 krzema12 added problem Not really a bug, but something isn't right. and removed bug Something isn't working labels Jul 19, 2022
@krzema12 krzema12 changed the title [Bug] IntelliJ doesn't like import actions.8398a7.ActionSlackV3 IntelliJ doesn't like import actions.8398a7.ActionSlackV3 Jul 19, 2022
@krzema12
Copy link
Member

Asked here, before I cut a bug: https://kotlinlang.slack.com/archives/C0B8H786P/p1658230028613269

@krzema12
Copy link
Member

TODO: check if it's still broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Not really a bug, but something isn't right.
Projects
None yet
Development

No branches or pull requests

2 participants