CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Context Menu does not use selected text

Open michabbb opened this issue 9 months ago • 4 comments

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

michabbb avatar May 16 '24 13:05 michabbb

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.

JeremiahHarm avatar Jun 06 '24 11:06 JeremiahHarm

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.....

michabbb avatar Jun 06 '24 12:06 michabbb

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 avatar Jun 19 '24 06:06 BiosNod

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

BiosNod avatar Jun 19 '24 07:06 BiosNod