GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
320 stars 59 forks source link

Not generating the code for IntelliJ IDE Java opened files. #3235

Open mg665826 opened 2 days ago

mg665826 commented 2 days ago

(Please ensure you are running the latest version of Cloud Cloud IntelliJ with Help > Check for Updates.)

Code assist is not generating code based on the files that are opened in the IDE.

Prompt in Code assist : "write Junit tests for deleteSyslogConfiguration method"

(screenshots are often helpful)

image

Expected Behavior

Actual Behavior

Additional Information

Feel free to deviate from this template as needed, especially if you are submitting a feature request.

ivanporty commented 1 day ago

Thanks for the report @mg665826. It seems to be the Gemini context issue, which may result from a few things. How many files do you have open when you request this? Is the file you are writing unit test for is large, how many lines?

mg665826 commented 23 hours ago

I have only opened two Java files. I am requesting that JUnit be generated for a single method. I launched IntelliJ IDE as a remote connection via "JetBrains Gateway.."

ivanporty commented 17 hours ago

I see, thanks @mg665826. Could you please reproduce it, and then send us a feedback report with all the logs, and mention Github issue 3235 in the feedback comment field? You can find using Gemini status bar -> Submit feedback:

Screenshot 2024-10-22 at 11 30 48 AM
mg665826 commented 17 hours ago

Feedback has been submitted.

ivanporty commented 16 hours ago

Thanks, looking at it