Jump to content

Recommended Posts

Posted

Hi i'm using IDEA but when I modify my mod code and then rebuild it, while debugging, I keep getting "hot swap falied" errors and I'm forced to restart MC to test the new code. I generated the run configs with get the genIntellijRuns task and I've never had this problem in 1.12

 

I'm using the last version of IDEA and forge 1.14.4-28.1.102

 

How could i fix this problem?

thank you!

Posted

What kind of changes?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Are you running the build manually with a gradle task or are you clicking run -> reload changed classes?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

  • 5 months later...
Posted (edited)
  On 12/17/2019 at 9:38 AM, anothertime said:

I think I can confirm that this is a gradle/forgegradle problem. I configured IDEA to NOT use gradle to build/run my project and now the hot swap work correctly

Expand  

Please, how did you configure it?

https://www.jetbrains.com/help/idea/gradle-settings.html  <---  this does not solve the problem, it says that there are not do change

 

I have the same problem but I am working with only one project....

Edited by GnRSlashSP

†GnR† Slash

can one man truly make a difference?

  • 7 months later...
Posted
  On 5/26/2020 at 7:58 PM, GnRSlashSP said:

Please, how did you configure it?

https://www.jetbrains.com/help/idea/gradle-settings.html  <---  this does not solve the problem, it says that there are not do change

 

I have the same problem but I am working with only one project....

Expand  

I also had the same problem and I this is how I solved it:

  1. Open "Settings" -> "Build, Execution, Deployment" -> "Gradle".
  2. In the "Gradle projects" section select your project.
  3. "Build and run using:" is set to "Gradle". Select "IntelliJ IDEA" instead.

I don't know why this solves the problem and what consequences this may have (e.g., maybe you will have to manually run some gradle tasks each time you change forge version, etc), but this does allows you to use Hot Swap.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.