carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.01k stars 213 forks source link

Context Menu does not use selected text #567

Open michabbb opened 4 months ago

michabbb commented 4 months ago

What happened?

i select text and choose something from the context menu, but it doesn´t get included in my prompt, here´s a short video:

https://www.youtube.com/watch?v=5gvoPaKfHFU

my version:

PhpStorm 2024.1.1
Build #PS-241.15989.102, built on April 23, 2024
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0

nothing special here:

image

is {{selectedCode}} the correct placeholder ? i didn´t change anything here.

Relevant log output or stack trace

No response

Steps to reproduce

select any text and choose an option from the context menu

CodeGPT version

2.7.1-241

Operating System

Windows

JeremiahHarm commented 4 months ago

I have that problem for a while now, current version is 2.7.1-241. No errors, just that nothing is happening when you want to use a selected text from your code.

michabbb commented 4 months ago

sad, because it´s the most important functionality that a plugin like this needs to work with 😏 even if you do "copy & paste" and write something above the code and hit the send "arrow icon", the message vanishes and nothing happens, happens all the time, don´t know what's going on there. very often I am forced to write code with backticks like this:


```some code.....
BiosNod commented 3 months ago

I have 2.8.0 and 100% same problem in PhpStorm 2024.1.1 and 2024.1.3 Btw in PyCharm it works fine.. It seems only PhpStorm have this issue

Nothing after click something from the context menu! I can chat with my local model fine without context menu... But anyway plugin is useless for me at this case

BiosNod commented 3 months ago

2.6.0 plugin version work with PHPStorm 2024.1.3 but... After 2.6.3 and up to 2.8.0 I too have this problem