Jump to content

[1.18.1] Cannot upgrade project to latest forge version 39.0.66


Tintow

Recommended Posts

Trying to update to the latest version and I keep receiving the following error.

Exception in thread "main" java.lang.IllegalStateException: Could not find forge-1.18.1-39.0.59 in classpath
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonUserdevLaunchHandler.lambda$findJarOnClasspath$2(CommonUserdevLaunchHandler.java:60)
	at java.base/java.util.Optional.orElseThrow(Optional.java:403)

Checking several other mdk downloads, the referenced forge version is the same as the mdk name but version 39.0.66 references 39.0.59 in the build.gradle

Is this just a typo in the mdk file or have I misunderstood how this works?

Link to comment
Share on other sites

Just now, diesieben07 said:

Did you regenerate the run configurations for your IDE?

Yes, after updating the forge version I'm doing   ./gradlew genIntelliJruns --refresh-dependencies

After doing some further testing, it seems IntelliJ is caching the classpath data somewhere - if I update the forge version, run the above command it fails with the error.  If I then just restart IntelliJ the project builds without issue. 

Is it normal to need to restart IntelliJ after updating forge?

 

Link to comment
Share on other sites

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.