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 IDEA cannot resolve references to com.intellij.* classes #320

Closed
Hixon10 opened this issue Nov 29, 2022 · 6 comments
Closed

IntelliJ IDEA cannot resolve references to com.intellij.* classes #320

Hixon10 opened this issue Nov 29, 2022 · 6 comments
Assignees
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@Hixon10
Copy link

Hixon10 commented Nov 29, 2022

Describe the bug:

  1. I pressed use this template button and got my initial repo.
  2. I opened it in IntelliJ IDEA 2022.2.3 (Community Edition)
  3. I added an example changelog, fixed TODO(..) in generated classes.
  4. I ran gradle build and got BUILD SUCCESSFUL in 19s.
  5. Now I want to develop something, so I opened class MyProjectManagerListener, but IDEA cannot resolve any plugin-related classes.

image

Expected behavior:

  1. I can navigate across plugin related classes after building the project.
@Konafets
Copy link
Contributor

I have the same issue and it occurs each time I change something in the Gradle config. My workflow is to use File > Repair IDE and go through every step.

@YannCebron
Copy link
Member

please clarify Gradle IntelliJ Plugin version, is it 1.10.0? does it reproduce also with 1.9.0? re-importing Gradle project can also help

@Konafets
Copy link
Contributor

For me it is 1.10.0. After switching back to 1.9.0 it works again.

@Hixon10
Copy link
Author

Hixon10 commented Nov 30, 2022

@YannCebron yes, I used 1.10.0. Right now I've changed the version to 1.9.0, and the problem is not reproduced anymore.

@hsz
Copy link
Member

hsz commented Dec 5, 2022

The issue comes from the Gradle IntelliJ Plugin: JetBrains/intellij-platform-gradle-plugin#1209
Fixed in the 1.11.0-SNAPSHOT snasphot release – will be released soonish.

@hsz hsz added the dependencies Pull requests that update a dependency file label Dec 5, 2022
@hsz hsz added this to the next milestone Dec 5, 2022
@hsz
Copy link
Member

hsz commented Jan 13, 2023

Fixed with the Gradle IntelliJ Plugin 1.12.0

@hsz hsz closed this as completed Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

4 participants