popclip.pasteText() is unable to replace the content properly in SublimeText

Hello, I developed an extension using JavaScript. After completing the processing logic, I replaced the original content with the result using “popclip.pasteText()”. However, I encountered an issue with the “2023.7 (18 Jul 2023)” version, where it only displays a pop-up notification of the copied text in SublimeText but doesn’t replace the original content. This problem was not present in previous versions of PopClip. Are there any other reports of this issue? How should I handle this problem?
Additionally, I tested the “ChatGPT Extensions” and encountered the same issue in SublimeText.

1 Like

Hi @tallfishsir , welcome to the forum and thanks for reporting this.

I’ve tested with Sublime Text in the past but I’ve not got it on my current machine. So I just installed it.

I can see the same problem you are seeing. It isn’t detecting that the text is editable (this can be seen because it isn’t showing Cut and Paste options).

I’ll investigate an report back

I’ve figured it out and made a fix, and published it as beta Build 4153, available at https://pilotmoon.com/popclip/download.

If you get a chance to try it, please let me know if it works for you.

I just tried it out, and beta Build 4153 has already resolved this issue. Thank you very much.

1 Like