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

Facing error in Java project for Fast run & fast debug feature #5845

Closed
rakshitasingh05 opened this issue Dec 13, 2023 · 6 comments
Closed
Assignees
Labels
lang: java Java rules integration P1 I'll work on this now. (Assignee required) product: IntelliJ IntelliJ plugin type: bug

Comments

@rakshitasingh05
Copy link
Contributor

rakshitasingh05 commented Dec 13, 2023

Description of the bug:

  1. Import Java Project
  2. Check if the project is synced with no compilation errors
  3. Click on the class name and click run to fetch the o/p
  4. Click on the class name and click debug to fetch the o/p
  5. Click on the class name and fast run which reproduced errors in the o/p
  6. Click on the class name and fast debug which reproduced errors in the o/p
  7. PFB the screenshots of the errors in fast run & fast debug

https://screenshot.googleplex.com/65V27w7JMZSkQRo
https://screenshot.googleplex.com/7YCg4aycnNfRK7h

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.

2023.2.4

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

No response

What Bazel plugin version are you using?

No response

Have you found anything relevant by searching the web?

No response

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

No response

@rakshitasingh05 rakshitasingh05 added type: bug product: IntelliJ IntelliJ plugin awaiting-maintainer Awaiting review from Bazel team on issues labels Dec 13, 2023
@sgowroji sgowroji added the lang: java Java rules integration label Dec 13, 2023
@mai93
Copy link
Collaborator

mai93 commented Dec 13, 2023

The error in console is ERROR: Skipping '//greeting_lib:greeting_test_deploy.jar': no such target '//greeting_lib:greeting_test_deploy.jar': target 'greeting_test_deploy.jar' not declared in package 'greeting_lib' , this only happens with Bazel 7.0.0

@hvadehra is there a known fix for this?

@mai93
Copy link
Collaborator

mai93 commented Dec 19, 2023

A fix will be included in a patch release of Bazel 7. I will leave this open until we implement the rest of the solution in the plugin but we can move forward with the release to Stable despite this issue.

@mai93 mai93 added P1 I'll work on this now. (Assignee required) and removed awaiting-maintainer Awaiting review from Bazel team on issues labels Dec 19, 2023
copybara-service bot pushed a commit to bazelbuild/bazel that referenced this issue Dec 19, 2023
This adds bazel support for fixing bazelbuild/intellij#5845. Once released, the necessary changes will need to be made to the IntelliJ plugin.

PiperOrigin-RevId: 592136548
Change-Id: I6158f379e76b61e75ca51f34888aeecaf0303cc6
hvadehra added a commit to bazelbuild/bazel that referenced this issue Dec 19, 2023
This adds bazel support for fixing bazelbuild/intellij#5845. Once released, the necessary changes will need to be made to the IntelliJ plugin.

PiperOrigin-RevId: 592136548
Change-Id: I6158f379e76b61e75ca51f34888aeecaf0303cc6

(cherry picked from commit 103830f)

Fixes #20601
meteorcloudy pushed a commit to bazelbuild/bazel that referenced this issue Dec 19, 2023
…ested (#20602)

This adds bazel support for fixing
bazelbuild/intellij#5845. Once released, the
necessary changes will need to be made to the IntelliJ plugin.

PiperOrigin-RevId: 592136548
Change-Id: I6158f379e76b61e75ca51f34888aeecaf0303cc6

(cherry picked from commit 103830f)

Fixes #20601
@tanishktyagii
Copy link
Contributor

We are also seeing this issue in the latest beta version v2023.12.19 .

iancha1992 pushed a commit to iancha1992/bazel that referenced this issue Jan 5, 2024
This adds bazel support for fixing bazelbuild/intellij#5845. Once released, the necessary changes will need to be made to the IntelliJ plugin.

PiperOrigin-RevId: 592136548
Change-Id: I6158f379e76b61e75ca51f34888aeecaf0303cc6
@tanishktyagii
Copy link
Contributor

We are also seeing this issue in the latest beta version v2024.01.02 .

github-merge-queue bot pushed a commit to bazelbuild/bazel that referenced this issue Jan 11, 2024
…ested (#20762)

This adds bazel support for fixing
bazelbuild/intellij#5845. Once released, the
necessary changes will need to be made to the IntelliJ plugin.

PiperOrigin-RevId: 592136548
Change-Id: I6158f379e76b61e75ca51f34888aeecaf0303cc6

Co-authored-by: Googler <hvd@google.com>
github-merge-queue bot pushed a commit to bazelbuild/bazel that referenced this issue Jan 11, 2024
…ested (#20762)

This adds bazel support for fixing
bazelbuild/intellij#5845. Once released, the
necessary changes will need to be made to the IntelliJ plugin.

PiperOrigin-RevId: 592136548
Change-Id: I6158f379e76b61e75ca51f34888aeecaf0303cc6

Co-authored-by: Googler <hvd@google.com>
@mai93
Copy link
Collaborator

mai93 commented Jan 15, 2024

This requires a fix in Bazel 7.0.0 which is going to be released in Bazel 7.0.1.

@mai93
Copy link
Collaborator

mai93 commented Feb 12, 2024

this is fixed for bazel 7.0.1 in a61a256

@mai93 mai93 closed this as completed Feb 12, 2024
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Bazel IntelliJ Plugin Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: java Java rules integration P1 I'll work on this now. (Assignee required) product: IntelliJ IntelliJ plugin type: bug
Projects
Development

No branches or pull requests

4 participants