microsoft / vsminecraft

Visual Studio extension for developing MinecraftForge mods using Java.
Other
194 stars 25 forks source link

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

Open ArcanoxDragon opened 9 years ago

ArcanoxDragon commented 9 years ago

I set up a new project using the "New MinecraftForge Mod (Minecraft 1.8)" template, 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.

sharwell commented 9 years ago

Well this isn't good. :frowning: Perhaps we can pretend it's part of a special YOLO coding experience :wink:

I am almost certain this bug actually lies in the Java project system which is part of the following repository. Would you like to create a copy of this issue there? https://github.com/tunnelvisionlabs/JavaForVS/issues

ArcanoxDragon commented 9 years ago

Yeah, I'll file it over there too.

mluparu commented 9 years ago

Thanks @briman0094 and @sharwell

FunshineX commented 9 years ago

as an addon to this, if I modify the .classpath file to add additional classpathentry tags, I must then unload and reload the project to see the new classpath folders. I also get the crashes when trying to rename in VS but as a workaround I rename them in the filesystem, and unload/reload for the changes to apply