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

Newest version of the IntelliJ plugin fails to analyze project #7290

Open
BalestraPatrick opened this issue Feb 7, 2025 · 5 comments
Open
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug

Comments

@BalestraPatrick
Copy link
Member

Description of the bug:

Hello! Some of our users recently upgraded from 2025.01.07 to 2025.01.21 and we started seeing the following errors:

[252 / 1,181] Building source jar bazel-out/darwin_arm64-fastbuild/bin/project-name/.ijwb/aspects/PackageParser_bin-src.jar; 0s disk-cache ... (3 actions, 0 running)
ERROR: /Users/me/src/project-name/.ijwb/aspects/BUILD.bazel:43:12: Extracting interface for jar project-name/.ijwb/aspects/tools/CreateAar_deploy.jar failed: missing input file '//project-name/.ijwb/aspects:tools/CreateAar_deploy.jar'
ERROR: /Users/me/src/project-name/.ijwb/aspects/BUILD.bazel:43:12: Extracting interface for jar project-name/.ijwb/aspects/tools/CreateAar_deploy.jar failed: 1 input file(s) do not exist

Upon debugging the message a little bit, it does seem like the structure of the files in ~/Library/Application\ Support/JetBrains/IntelliJIdea2024.3 has possibly changed with #7202.

The setup is macOS 15.2 with IntelliJ IDEA 2024.3.2.2 (Ultimate Edition).

I couldn't find any issue similar to this error, so I'm wondering if there's some set up changes that we're expected to make or is this a regression?

Which category does this issue belong to?

Intellij

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ IDEA 2024.3.2.2 (Ultimate Edition)

What programming languages and tools are you using? Please provide specific versions.

Java

What Bazel plugin version are you using?

2025.01.21

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@LeFrosch
Copy link
Collaborator

Thanks for the report. Could you please try invalidate IDE cache and tick "Clear file system cache...". Also make sure .ijwb is not part of the .bazelignore file.

I apologize for the inconvenience.

@BalestraPatrick
Copy link
Member Author

@LeFrosch Thanks for your answer. What's the right way to invalidate the IDE cache and ticking that setting? I only found Bazel -> Sync -> Clean Project Targets but that doesn't seem to help.
I can also confirm .ijwb is not part of our .bazelignore.

@LeFrosch
Copy link
Collaborator

Sorry for the confusion. You can find the action to clear the caches under File | Invalidate Caches... and then select Clear file system cache... in the dialog.
Image

@BalestraPatrick
Copy link
Member Author

I see, thanks! I tried that a few times and it restarted the IDE but the sync still fails with 2025.01.21.0.1-api-version-243. I then noticed that 2025.01.21.0.2-api-version-243 was released, and updating to that, cleaning the caches, and restarting made it work. I don't exactly see from the release notes if there was a fix on purpose in this release?

@LeFrosch
Copy link
Collaborator

LeFrosch commented Feb 11, 2025

Yes, I think I introduced a bug where our virtual file system does not pick up changes to the aspect files. So the code is updated but the aspect files stay the same due to vfs caching :c

Should be addressed by #7259.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug
Projects
Status: Untriaged
Development

No branches or pull requests

3 participants