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

[Remote IDEs] Not generating the code for IntelliJ IDE Java opened files. #3235

Open
mg665826 opened this issue Oct 21, 2024 · 12 comments
Open

Comments

@mg665826
Copy link

(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

  • IDE type (e.g. IntelliJ, Pycharm): IntelliJ. (remote)
  • IDE version: 2024.3
  • Cloud Code version (Settings > Plugins > Cloud Code):
  • Cloud SDK (Settings > Cloud Code > Cloud SDK)
    • Are you allowing the plugin to manage the Cloud SDK:
    • Version of the Cloud SDK:
image
  • Skaffold version (If you are using Kubernetes features; Settings > Cloud Code > Kubernetes):
  • Operating System: Linux

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

@ivanporty
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

Feedback has been submitted.

@ivanporty
Copy link
Collaborator

Thanks, looking at it

@ivanporty
Copy link
Collaborator

From your feedback, it seems all files were closed when you opened a chat. Gemini chat uses currently opened files for context, it doesn't use all files from your project automatically. It seems completion worked fine for you with opened files.

Could you please try with opening files you need for chat requests in the editor, and see if it helps?

@coolmg
Copy link

coolmg commented Oct 25, 2024

Files are already open in the IDE. This problem was only reported for opened files.

FYI, my code is on a Linux machine, and I am using the JetBrains gateway for Remote IDE.

@ivanporty
Copy link
Collaborator

Thanks @coolmg. Does it only happen on a remote IDE? Does it work properly on local IDE?

@coolmg
Copy link

coolmg commented Oct 25, 2024

Yes, it works on local IDE, not working with remote IDE

@ivanporty
Copy link
Collaborator

Thanks, this is very helpful. We are not technically fully supporting remote IDEs yet, but we are looking into this. We'll update where we'll know more.

@ivanporty ivanporty changed the title Not generating the code for IntelliJ IDE Java opened files. [Remote IDEs] Not generating the code for IntelliJ IDE Java opened files. Oct 25, 2024
@coolmg
Copy link

coolmg commented Oct 25, 2024

It worked fine a month ago, but I am having this problem recently.

@ivanporty
Copy link
Collaborator

@coolmg we didn't make any specific changes to selecting files to be sent with the request. Was it a version change on the IDE side then - did you upgrade your IDE, Gateway, anything else that could have caused files not being selected (or maybe disallowed)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants