Operating system: Windows
Java version: 8
Minecraft version: 1.15.2
Baritone version: 1.15.2
Forge mods (if used):
gradlew --refresh-dependencies works great.
gradlew setupDecompWorkspace fails, but I think this is due to this switch in build.gradle
-- classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
-- classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
++ classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.115'
++ classpath group: 'com.github.ImpactDevelopment', name: 'MixinGradle', version: '0.6.2'
I'm using intellij so gradlew genIntellijRuns worked like a charm.
I reimported the gradle build in intellij and ran build (commandline produces the same output)
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IMineProcess.java:94: error: cannot find symbol
default void mine(int quantity, Block... blocks) {
^
symbol: class Block
location: interface IMineProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IMineProcess.java:107: error: cannot find symbol
default void mine(Block... blocks) {
^
symbol: class Block
location: interface IMineProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\schematic\ISchematic.java:20: error: package net.minecraft.block does not exist
import net.minecraft.block.BlockState;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\schematic\ISchematic.java:21: error: package net.minecraft.util does not exist
import net.minecraft.util.Direction;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IBuilderProcess.java:42: error: cannot find symbol
void build(String name, ISchematic schematic, Vec3i origin);
^
symbol: class Vec3i
location: interface IBuilderProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IBuilderProcess.java:52: error: cannot find symbol
boolean build(String name, File schematic, Vec3i origin);
^
symbol: class Vec3i
location: interface IBuilderProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IBuilderProcess.java:54: error: cannot find symbol
default boolean build(String schematicFile, BlockPos origin) {
^
symbol: class BlockPos
location: interface IBuilderProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IBuilderProcess.java:67: error: cannot find symbol
void clearArea(BlockPos corner1, BlockPos corner2);
^
symbol: class BlockPos
location: interface IBuilderProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IBuilderProcess.java:67: error: cannot find symbol
void clearArea(BlockPos corner1, BlockPos corner2);
^
symbol: class BlockPos
location: interface IBuilderProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IBuilderProcess.java:74: error: cannot find symbol
List<BlockState> getApproxPlaceable();
^
symbol: class BlockState
location: interface IBuilderProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\process\IGetToBlockProcess.java:30: error: cannot find symbol
default void getToBlock(Block block) {
^
symbol: class Block
location: interface IGetToBlockProcess
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerContext.java:38: error: cannot find symbol
ClientPlayerEntity player();
^
symbol: class ClientPlayerEntity
location: interface IPlayerContext
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:20: error: package net.minecraft.client.entity.player does not exist
import net.minecraft.client.entity.player.ClientPlayerEntity;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:21: error: package net.minecraft.entity.player does not exist
import net.minecraft.entity.player.PlayerEntity;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:22: error: package net.minecraft.inventory.container does not exist
import net.minecraft.inventory.container.ClickType;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:24: error: package net.minecraft.item does not exist
import net.minecraft.item.ItemStack;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:25: error: package net.minecraft.util does not exist
import net.minecraft.util.ActionResultType;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:26: error: package net.minecraft.util does not exist
import net.minecraft.util.Direction;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:27: error: package net.minecraft.util does not exist
import net.minecraft.util.Hand;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:28: error: package net.minecraft.util.math does not exist
import net.minecraft.util.math.BlockPos;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:29: error: package net.minecraft.util.math does not exist
import net.minecraft.util.math.BlockRayTraceResult;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:30: error: cannot find symbol
import net.minecraft.world.GameType;
^
symbol: class GameType
location: package net.minecraft.world
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerController.java:31: error: cannot find symbol
import net.minecraft.world.World;
^
symbol: class World
location: package net.minecraft.world
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerContext.java:42: error: cannot find symbol
World world();
^
symbol: class World
location: interface IPlayerContext
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerContext.java:44: error: cannot find symbol
default Iterable<Entity> entities() {
^
symbol: class Entity
location: interface IPlayerContext
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerContext.java:48: error: cannot find symbol
default Stream<Entity> entitiesStream() {
^
symbol: class Entity
location: interface IPlayerContext
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\IPlayerContext.java:55: error: cannot find symbol
RayTraceResult objectMouseOver();
^
symbol: class RayTraceResult
location: interface IPlayerContext
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\BetterBlockPos.java:20: error: package net.minecraft.util does not exist
import net.minecraft.util.Direction;
^
C:\Users\matth\github\baritone\src\api\java\baritone\api\utils\BetterBlockPos.java:21: error: package net.minecraft.util.math does not exist
import net.minecraft.util.math.BlockPos;
^
100 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileApiJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s
1 actionable task: 1 executed
Is there something simple I'm missing here? Thanks!
Try to build 1.15.2 branch
If you're missing Block that means ForgeGradle didn't decompile successfully.
Yeah- I agree. Packages aren't being satisified.
When I refreshed dependencies, I didn't see any errors. I see a message about new dep
New Dep: com.github.ImpactDevelopment:Vanilla:1.15.2_mapped_snapshot_20200213-1.15.1
but I don't see any warnings about the decompile failing.
Is there a good way to see more information? Maybe it's failing silently?
Can you try setting up your workspace with the --info flag? I think that's what it's called
Good spot. Looks like It's using JDK 8 221 instead of 241. I'll keep digging
What is the task that decompiles forgegradle?
um, I think setting up the workspace should cover it as well?
Right shouldn't it unpack as part of --refresh-dependencies?
Think so. I'm currently cloning it to test for myself
I appreciate that.
damn I feel bad lol. 15 minutes and still importing :upside_down_face:
Worked perfectly for me
Steps:
Huh. Strangely, it takes me about 15 seconds to import
I think something is up with the intellijruns not being generated for me
This is on the 1.15.2 branch right?
Master works awesome
I'll give docker a shot
Sorry to keep spamming this thread. Docker is working great so far. I can see it decompiling the minecraft sources. The question is what is the problem? Is it windows? Is it the fact that I have gradle 5 instead of gradle 4.9 like unix does? I'm not sure
I think it was weird caching by something. You should be using the provided gradle, not your systems, which is probably why it took me 15 minutes. If it happens again try deleting the entire project folder and invalidating caches in Intellij.
Let me know if this is ready to close :)
Thank you for your help! Is there anything you need fixing or a PR for? I'm going to be diving into the code and happy to contribute back. There's a lot of issues and it's hard to tell what's a priority and what's not.
I'm not sure, I don't contribute a ton to this project but look at anything with a milestone. Unfortunately a lot of the issues are clogged with edge case errors and I'm not sure if I should close them or not, because sometimes there is a genuine issue with baritone.