Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • IntelliJ/Gradle opens wrong source file [1.14.4]
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
Keheck

IntelliJ/Gradle opens wrong source file [1.14.4]

By Keheck, November 16 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

Keheck    0

Keheck

Keheck    0

  • Tree Puncher
  • Keheck
  • Members
  • 0
  • 23 posts
Posted November 16 (edited)

As you may know, you can inspect usages, declarations, etc. in IntelliJ when you LShift+Click them. I have this problem that for some files Gradle/IntelliJ opens the file that is in the cache (C:\Users\[user]\.gradle\caches\...). An example would be:

The file to open: C:/[...]/1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3/forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-sources.jar!/net/minecraft/item/ItemStack.java

The file Gradle opens: C:/[...]/1.13.2-25.0.22_mapped_snapshot_20180921-1.13/forge-1.13.2-25.0.22_mapped_snapshot_20180921-1.13-sources.jar!/net/minecraft/item/ItemStack.java

 

Note the difference when it comes to the Minecraft version. For some reason, Gradle opens the file from 1.13.2 rather than from 1.14.4, which is the version I'm writing the mod in. It works when I look for the class in the file navigator in the "External Libraries" tree. Is there an option where I can change the path that Gradle takes to open source files? The attached image may help to clarify my problem.

TheHell.png

The left one is the 1.13.2 and the right one the 1.14.4 file

Edited November 16 by Keheck
  • Quote

Share this post


Link to post
Share on other sites

DaemonUmbra    358

DaemonUmbra

DaemonUmbra    358

  • Reality Controller
  • DaemonUmbra
  • Forum Team
  • 358
  • 6451 posts
Posted November 16

I think I've heard this mentioned a few times that for some reason when intellij attaches a new source for Forge it doesn't detach the old one, try doing this manually and refreshing the project.

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DavidM
      1.8.9 Forge not installing on mac

      By DavidM · Posted 24 minutes ago

      1.8.9 is no longer supported on this forum due to its age. Update to a modern version of Minecraft to receive support.
    • SmellySteve
      1.8.9 Forge not installing on mac

      By SmellySteve · Posted 33 minutes ago

      Please help.
    • sangam1
      [Forge 1.14.4] Issue opening GUI

      By sangam1 · Posted 54 minutes ago

      Hey everyone,   I am getting this error: [18:30:23] [Client thread/WARN] [minecraft/ScreenManager]: Trying to open invalid screen with name: gocraft   I have a literal headache trying to figure out why its throwing that error. Please excuse the messiness as I am going to clean up later.   This is my container This is my screen This is my client proxy This is my item   I am able to have the item name show up and it shows in my hand, but when I right click it, I get that error. Anyone know why?   And sorry its all on GitHub. Full Git:   Thanks in advance!!  
    • DaemonUmbra
      Forge 1.14.4 not working

      By DaemonUmbra · Posted 2 hours ago

      I see you're using Java 13, this isn't going to work for running Forge, though I don't think it's the issue here. Apparently your Minecraft jar is somehow incomplete, delete versions/1.14.4/1.14.4.jar and try again.
    • DaemonUmbra
      re:server tick loop

      By DaemonUmbra · Posted 2 hours ago

      How did you install the modpack?
  • Topics

    • SmellySteve
      2
      1.8.9 Forge not installing on mac

      By SmellySteve
      Started 14 hours ago

    • sangam1
      0
      [Forge 1.14.4] Issue opening GUI

      By sangam1
      Started 54 minutes ago

    • izaakbobo1
      10
      Forge 1.14.4 not working

      By izaakbobo1
      Started October 13

    • daylite
      7
      re:server tick loop

      By daylite
      Started 20 hours ago

    • geekles
      4
      [Forge 1.14.4] Loading saved world

      By geekles
      Started Friday at 02:37 AM

  • Who's Online (See full list)

    • fridaythekittycat
    • Choonster
    • ComputerCraze
    • billybobpumpkin
    • AnonymousVoidF
    • tyon2006
    • SerpentDagger
    • GhibliGirl
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • IntelliJ/Gradle opens wrong source file [1.14.4]
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community