continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
13.56k stars 950 forks source link

Code auto completion does not work in IntelliJ Community Edition #1466

Open sh-TU opened 1 month ago

sh-TU commented 1 month ago

Before submitting your bug report

Relevant environment info

- OS: Windows 10
- Continue: 0.0.50
- IDE: IntelliJ Community Edition 2024.1.2
- Model Provider: llama.cpp
- Model: starcoder2-3b

Description

The tab auto completion does not work in IntelliJ Community Edition. However, the chat works fine and was able to produce response. The ~/.continue/core.log file doesn't show any errors too.

To reproduce

  1. Install continue.dev from the marketplace in your intelliJ
  2. Proceed with the setup
  3. Set provider to llama.cpp
  4. Set model to starcoder2-3b
  5. Set apiBase to the llama.cpp server

Screenshot below shows the chat is working fine.

image

Screenshot below shows that the autocompletion does not work with intelliJ (left) while in vscode (right) works

image

Log output

No response

sestinj commented 1 month ago

@sh-TU have you checked the box in settings for "Enable Tab Autocomplete"? I understand that this isn't super obvious, so in the next version it will be the default for anyone who downloads

https://docs.continue.dev/walkthroughs/tab-autocomplete#im-not-seeing-any-completions

bjester commented 1 month ago

@sh-TU have you checked the box in settings for "Enable Tab Autocomplete"? I understand that this isn't super obvious, so in the next version it will be the default for anyone who downloads

https://docs.continue.dev/walkthroughs/tab-autocomplete#im-not-seeing-any-completions

This caught me, as I assumed the tabAutocompleteOptions.disable = false would be sufficient until I checked the IDE settings for Continue. Autocomplete is now working

timbit123 commented 1 month ago

I have the same issue in phpstorm 2024.1.3 continue 0.0.50 I do see the gpu working but nothing is showing up also there is an error showing up image but I do have git working and configured in the settings and vscode is working fine

sestinj commented 1 month ago

@bjester very good to know! Already made the change for the next release where it will be default on

sestinj commented 1 month ago

@timbit123 Do you have git installed in wsl?

This is an error that I can solve separately, but in the meantime that is the workaround it looks like

timbit123 commented 1 month ago

I do have git installed in wsl and windows and also configured in phpstorm

sh-TU commented 1 month ago

@sestinj i didn't. I thought the tabAutocompleteOptions.disable = false is sufficient as well. Enabling that works now. Thank you image

timbit123 commented 1 month ago

@sestinj do you want me to create a ticket separately?

LeoLiuYan commented 1 month ago

@sestinj HI, why the IDEA version does not have the right-click function item?

sestinj commented 1 month ago

@timbit123 Yes that would be helpful, thank you

sestinj commented 1 month ago

@LeoLiuYan What do you mean by this?

sheekhajain-TU commented 1 week ago

@sestinj i didn't. I thought the tabAutocompleteOptions.disable = false is sufficient as well. Enabling that works now. Thank you image

Hi @sestinj .. Esh and I are from the same team. After auto completion code issue was resolved, we started using it using Java Technology on IntelliJ Community edition and bumped into some other issues.

Please find the list of issues that are encountered after integrating the tool with IntelliJ-

  1. The code suggestion/completion is quite slow. And most of the time, it provides irrelevant suggestions. image

image

  1. After sometime of usage,

i. slowness is observed in IDE.

ii. It stops taking some basic commands also like CTRL+A, navigation from feature file to stepDefinitions using a click.

  1. Due to this performance issue, suggestions are getting duplicated

image

  1. Multiple IDE errors are thrown.Example-

image

We need to restart the IDE multiple times due to above mentioned issues.

Request you to look into these issues and help us with the resolution.

sheekhajain-TU commented 1 week ago

Hi @sestinj .. Did you get chance to look into these issues?

sestinj commented 1 week ago

@sheekhajain-TU Yes, thank you for the detailed reports! I've actually just released a new version (0.0.53), which should resolve a number of these problems.

It would be helpful to hear how the new version improves things for you, and what problems you still run into. I'll be focusing a lot on JetBrains this week, so hopefully can address any feedback you have.

It would also be helpful to know which LLM you are using for autocomplete, as this can make a big difference in the quality of suggestions.

sheekhajain-TU commented 1 week ago

Hi @sestinj ..Thanks for the update!! Please find below details: