getcursor / cursor

The AI Code Editor
https://cursor.com
24.45k stars 1.53k forks source link

Inability to Paste Text from External Sources into Chat Panel #1307

Open vasco opened 7 months ago

vasco commented 7 months ago

Description:

I'm unable to paste text into the cursor.sh IDE's Chat panel on a Mac M2 with a Pro license when the text is copied from an external source. This issue disrupts workflow by preventing easy integration of external information into the IDE.

Steps to Reproduce:

  1. Copy text from an external source.
  2. Attempt to paste into the Chat panel using Cmd + V.
  3. Pasting fails with no text appearing in the Chat panel.

Expected Behavior: The IDE should allow pasting text into the Chat panel from any source.

Actual Behavior: Text from external sources cannot be pasted into the Chat panel.

Suggested Solution: Enable support for pasting from the external clipboard into the Chat panel.

System Details:

vasco commented 7 months ago

There are also use cases where you want to copy and paste text from internal sources that don't work (the Cmd + Shift + L is fantastic for several/most use cases but it doesn't replace the normal copy-past flow).

navidkpr commented 7 months ago

Hi,

Looking into this.

I haven't been able to reproduce this bug on my side yet.

There is an existing (non-deterministic) bug, where copy / paste stops working in chat, which usually is fixed if you restart cursor.

Does the issue persist if you restart cursor?

MikeBirdTech commented 7 months ago

Hi @navidkpr I am experiencing the same issue. I am only able to paste once into the chat window and then it is unable to. If I run Developer: Reload Window it sometimes allows me to paste once, but sometimes not at all. I'm also unable to select text within chat generated code blocks. I can click the copy button to copy all of the text, but when I want a portion of it (for example, to exclude "...rest of your code...") it does not work.

Here's the about info:

Version: 0.29.1
VSCode Version: 1.86.2
Commit: a962ca5721e80876320cb6a3a500cbc1cf679150
Date: 2024-03-02T20:35:34.996Z
Electron: 27.2.3
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.3.0
AlexanderPease commented 7 months ago

Same issue. I love Cursor, but this makes it unusable. OSX 13.6.3.

Version: 0.29.1 VSCode Version: 1.86.2 Commit: a962ca5721e80876320cb6a3a500cbc1cf679150 Date: 2024-03-02T20:35:34.996Z Electron: 27.2.3 ElectronBuildId: undefined Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 22.6.0

vasco commented 4 months ago

It is just providing a quick update. It appears there's a UX problem. It seems that using Cmd+V triggers the same action as Cmd+Shift+L, causing the text block to end up outside the visible area.

I would prefer if Cmd+V pasted the text in the text area at the cursor position while retaining Cmd+Shift+L as is. This unusual behavior (not knowing if Cmd+V will work as a normal Cmd+V or if it will work as Cmd+Shift+L), makes me have to use external tools where I passed the code first, and then, from the external code tool, I copy the code to the cursor's prompt text field to ensure a normal Cmd+V operation.

@navidkpr Yes the issue persists after a restart, it has some relation with the number of lines you are copying (I observed that copying multiple lines leads to this problem).

yachal-upson commented 2 months ago

Nothing to add sorry, thanks for the diagnosis so far. + 1 this is breaking UX

brennanjl commented 1 month ago

+1 running into this

marcelorl commented 1 month ago

Im having this issue too

ZerkerEOD commented 1 month ago

Just started happening to me also. Was working one moment then nothing. After checking and seeing it works in other applications I figured it was Cursor. I can't even paste into the IDE either.

maltoseslope commented 1 month ago

+1 running into this. Please help to take a look.

sofq commented 1 month ago
kstynen commented 1 month ago

+1 same issue here, unable to paste into chat window:

Version: 0.40.4 VSCode Version: 1.91.1 Commit: 63dae81aea2c3fc079420fe72578a8eef26ba870 Date: 2024-09-05T02:52:05.660Z Electron: 29.4.0 ElectronBuildId: undefined Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin x64 23.6.0

ZerkerEOD commented 1 month ago

So I was able to paste after restarting the IDE.

roderik commented 1 month ago

Ok, i'm having the same issue, i added a new shortcut cmd-shift-v to paste as text, and that works (main IDE window)

sriramarunachalam commented 1 month ago

Ok, i'm having the same issue, i added a new shortcut cmd-shift-v to paste as text, and that works (main IDE window)

This didnt work for me. I am having the same issues. Restarting IDE also didnt help

hazybitsio commented 3 weeks ago

Deal-breaker for me as well (MacOS)

letiescanciano commented 1 week ago

Same issue is happening to me!

yongkangc commented 6 days ago

same here

tydia commented 3 days ago

this sucks

Aronyu127 commented 2 hours ago

same here