JavaForVS icon indicating copy to clipboard operation
JavaForVS copied to clipboard

Renaming/deleting folders in "src" folder tree crashes plugin

Open ArcanoxDragon opened this issue 9 years ago • 0 comments

(repost from Microsoft/vsminecraft#18)

I set up a new Java project using the "New MinecraftForge Mod (Minecraft 1.8)" template (from Microsoft's Minecraft plugin), and went to rename the folder "examplemod" under "src/main/java/com" to my own package name using F2. As soon as I hit "Enter", it displayed an error box noting something about "examplemod" being removed from the hierarchy. The folder stayed named "examplemod" in Visual Studio, but was renamed on the filesystem. Refreshing the view nor reloading the project fixed the folder's name in VS, so the file was "not found" to the IDE. I had to edit the .javaproject file manually in Notepad++ to change the references to the correct folder, and then reload the project.

This happens when renaming or deleting any file in my project's "src" folder. It makes it hard to refactor as I have to edit the .javaproject file every time.

ArcanoxDragon avatar May 04 '15 22:05 ArcanoxDragon