MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
522 stars 444 forks source link

Run/Debug configuration application main class GradleStart shows as red #509

Closed RexTheCapt closed 4 years ago

RexTheCapt commented 6 years ago

When i add a new Run/Debug application configuration and set the "Main class" to "GradleStart" it shows up as red. I am following a tutorial on youtube and when they do this step it shows up as blue

Then i did try to follow this video i get the same red text. I did do what he did but with never version.

version= 1.12.2-14.23.4.2705 mappings= snapshot_20180716 did not upgrade wrapper

When it comes to run minecraft i press the green play button and "Edit configuration" pops up instead of a minecraft client and this is the window

derimagia commented 6 years ago

The error is on the bottom, "Module not specified". Try number 5 here: https://mcforge.readthedocs.io/en/latest/gettingstarted/#terminal-free-intellij-idea-configuration

RexTheCapt commented 6 years ago

I only get two options in the "Use classpath of module" list. "" and "forge*mdk".

Here is a screenshot https://imgur.com/U39Lhzb

RexTheCapt commented 6 years ago

@derimagia i still can't find a sollution

derimagia commented 6 years ago

If you try to run it what error do you get?

RexTheCapt commented 6 years ago

In the build console i get the error java: invalid source release: 9, i have no idea what that means. After i have run the gradle task genIntellijRuns and edit the configuration for "Minecraft Client" the main class is still red. Updated the gradle config to use the latest forge and yesterdays mappings. If you wan't i can make a little short video that shows what i do.

derimagia commented 6 years ago

Sounds like you need to set your project to be using Java 8

RexTheCapt commented 6 years ago

sourceCompatibility and targetCompatibility is set to 1.8 in the gradle config. So it is already setup for java 8. It was the default settings too

derimagia commented 6 years ago

In your IDE, similar to https://stackoverflow.com/a/26009627/9741606

RexTheCapt commented 6 years ago

Followed the instructions in the link, ran the gradle task setupDecompWorkspace, ran genIntellijRuns, selected minecraft client and clicked play Error: java: invalid source release: 9, checked the config for the task and same as always.

derimagia commented 6 years ago

You changed all of these to 8 / 1.8 right? And the JDK you have setup for the project is 1.8? (Again, in IntelliJ)

RexTheCapt commented 6 years ago

I am pretty sure i have done that.

Actually just started to use intellij.

DaemonUmbra commented 4 years ago

Closing this issue as it does not appear to be applicable to the currently supported ForgeGradle branch (FG_3.0).

If I am incorrect in this regard, please create a new issue prefixed with [FG_3.0] and containing:

Note that an ongoing effort to update legacy MinecraftForge branches to utilize FG_3.0 is ongoing and accepting informed contributions. (For more information join the Discord and read through the #mcpconfig channel)