shedaniel / RoughlyEnoughItems

Clean and Configurable. Your recipe viewer mod for 1.13+.
Other
325 stars 66 forks source link

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

Open Ryhon0 opened 5 months ago

Ryhon0 commented 5 months ago

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?

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.

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

Hunam6 commented 4 months ago

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.

ITotallyExist commented 3 weeks ago

@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