McJty / YouTubeModding14

Source code for my YouTube modding tutorial series for Minecraft 1.15 and 1.16
MIT License
107 stars 35 forks source link

Hot swap in IDEA #6

Open anothertime77 opened 4 years ago

anothertime77 commented 4 years ago

Hi! I've replicated your multi-mob workspace and I think it work very well. The only thing is that I can't change code anymore while debugging because when I do so and recompile, I got an error from IDEA saying that "hot swap failed". I'm changing code inside an existing method, not adding or removing methods or something like that. I've asked about this in the forgegradle minecraft forge forum but got no solutions. Does it work for you? Sorry if I'm bothering you

taliptayfur commented 4 years ago

Hi @anothertime77, did you add new imports while changing the code? As I know adding new imports also doesn't work with hot swapping.

anothertime77 commented 4 years ago

No imports were added.

I figured it out eventually as a problem with forgegradle itself, it doesn't handle multi-mods project well. You can solve the problem by telling idea to handle the build itself instead of delegating it to (forge)gradle