Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

38M Downloads

[Bug] package me.shedaniel.math does not exist

Ryhon0 opened this issue ยท 2 comments

commented

What happened?

I'm trying to implement a REI plugin for my mod, I followed the wiki for adding the dependency and I'm getting the following errors while compiling:

error: package me.shedaniel.math does not exist
import me.shedaniel.math.Point;
                        ^
error: package me.shedaniel.math does not exist
import me.shedaniel.math.Rectangle;
                        ^
error: cannot find symbol
		public List<Widget> setupDisplay(BasicDisplay display, Rectangle bounds) {
		                                                       ^
  symbol:   class Rectangle

What mod loaders are you seeing the problem on?

Fabric

What do you think this bug is of?

  • Visual
  • Recipe Lookup
  • Cheat Mode
  • Plugin Integration / JEI Plugin Compatibility
  • Others

Relevant log output

/mnt/SSD/Projects/RWorld/src/main/java/xyx/ryhn/rworld/RREIPlugin.java:7: error: package me.shedaniel.math does not exist
import me.shedaniel.math.Point;
                        ^
/mnt/SSD/Projects/RWorld/src/main/java/xyx/ryhn/rworld/RREIPlugin.java:8: error: package me.shedaniel.math does not exist
import me.shedaniel.math.Rectangle;
                        ^
/mnt/SSD/Projects/RWorld/src/main/java/xyx/ryhn/rworld/RREIPlugin.java:103: error: cannot find symbol
		public List<Widget> setupDisplay(BasicDisplay display, Rectangle bounds) {
		                                                       ^
  symbol:   class Rectangle
  location: class Category
3 errors

FAILURE: Build failed with an exception.

Anything else?

build.gradle:

repositories {
        maven { url "https://maven.shedaniel.me" }
}

dependencies {
        modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:${rei_version}"
	modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:${rei_version}"
	modCompileOnly "me.shedaniel:RoughlyEnoughItems-default-plugin-fabric:${rei_version}"
}

gradle.properties:

rei_version=14.1.727

By submitting this issue, I have included the necessary logs by pasting the contents into the correct location or attaching the file as an upload.

  • Yes, and I did not use any paste services other than GitHub Gists.

By submitting this issue, I have confirmed my REI and REI's dependencies are up to date.

  • Yes
commented

I had the same some weeks ago, I somehow managed to fix it. I am now in the process of updating my mod to recent versions of Minecraft and I am having the same issue again.

The files of me.shedaniel.math exist but they don't seem to be detected by Gradle/Intellij.

commented

@Ryhon0 @Hunam6

I solved this by putting

modApi ("me.shedaniel.cloth:basic-math:+")

in dependencies under build.gradle

i think the math was moved to cloth api or something? not entirely sure