Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The issue of being unable to use copy and paste occurs in version 1.30.0. #3631

Closed
mainmethod0126 opened this issue Apr 26, 2024 · 3 comments · Fixed by #3646
Closed

The issue of being unable to use copy and paste occurs in version 1.30.0. #3631

mainmethod0126 opened this issue Apr 26, 2024 · 3 comments · Fixed by #3646
Assignees
Milestone

Comments

@mainmethod0126
Copy link

While programming Java with vscode, after upgrading the "Language Support for Java(TM) by Red Hat" to version 1.30.0, the copy and paste functions do not work. I downgraded to 1.29.0 just in case, and it works properly. Could this be a bug?

Environment
  • Operating System: Windows 10 Pro / 22H2 / 19045.4291
  • JDK version: zulu-17
  • Visual Studio Code version: 1.81.1
  • Java extension version: 1.30.0
Steps To Reproduce
  1. Copy text with ctrl + c
  2. Paste text with ctrl + v
  3. No response to paste
  4. When downgrading the Java extension version to 1.29.0, it works properly.

[Please attach a sample project reproducing the error]
Please attach logs

Current Result
Expected Result
Additional Informations

When downgrading the Java extension version to 1.29.0, it works properly.

@hiagorios
Copy link

Same here, switching to 1.29.0 works.

@snjeza
Copy link
Contributor

snjeza commented Apr 26, 2024

I can't reproduce the issue.
@mainmethod0126 @hiagorios Could you attach the Java Language Server's workspace logs ?

@rgrunber
Copy link
Member

rgrunber commented Apr 29, 2024

I'm able to reproduce this as well with VS Code 1.81.1 . The Paste API (still experimental) was updated in 1.88.0 and it broke being able to use < 1.29.0 of our extension with VS Code >= 1.88.0. We fixed it in 1.30.0 but didn't make it backwards compatible. I did confirm regular copy/paste would work as usual (without the auto-import/auto-escape behaviour).

Definitely a bug though.

Update(s):

Temporary workaround if you wish to be on 1.81.1 (1.82.0 or newer don't seem to have this specific problem) :

"[java]": {
        "editor.pasteAs.enabled": false
}

The behaviour is not the same on all version. Using the 1.30.0 extension on different VS Code versions with editor.pasteAs.enabled enabled :

1.88.0 : smart paste works
1.87.2 : no smart paste, but regular paste still works
... (all versions in between exhibit same behaviour, regular paste still works)
1.82.0 : no smart paste, but regular paste still works
1.81.1: no smart paste, no regular paste

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants