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 content on disk is newer" when renaming class #903

Closed
GabrielBB opened this issue Apr 26, 2019 · 1 comment
Closed

"The content on disk is newer" when renaming class #903

GabrielBB opened this issue Apr 26, 2019 · 1 comment

Comments

@GabrielBB
Copy link
Contributor

Environment
  • Operating System: Windows 8.1
  • JDK version: JDK 11
  • Visual Studio Code version: 1.33.1
  • Java extension version: 0.43.0
Steps To Reproduce
  1. Press F2 on a class name to rename it
  2. Check that filename is also renamed with the new class name
  3. Press CTRL + S to save the file with the change
Current Result

File name and class name are renamed as expected but once you try to save the file it throws an error (check picture in Additional Information) and it does not save. When you close the file and open it again the class has the old name. You proceed to change the name again and then it works and saves as expected. So, to change the class name you have to do it twice. I believe it has something to do with the file name change, VSCode says the file i'm using is old. Maybe you guys can close the file after the rename and open it again automatically or something.

Expected Result

Being able to save my file with the new class name with no problems.

Additional Informations

image

@fbricon
Copy link
Collaborator

fbricon commented Apr 26, 2019

Closing as duplicate of #871. Please use VS Code Insiders for now

@fbricon fbricon closed this as completed Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants