Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Cannot build #3

Closed
ghost opened this issue Dec 14, 2021 · 3 comments · Fixed by #5
Closed

Cannot build #3

ghost opened this issue Dec 14, 2021 · 3 comments · Fixed by #5

Comments

@ghost
Copy link

ghost commented Dec 14, 2021

Hi! I'm trying to build Mirai on my local PC (Windows 11 with WSL) and getting this error:

pelfox@pelfox-dev:~/Mirai$ ./gradlew applyPatches
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
Configuration on demand is an incubating feature.

> Task :Pufferfish:paper:applyServerPatches
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.

> Task :applyApiPatches FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':applyApiPatches' (type 'SimpleApplyGitPatches').
  - In plugin 'io.papermc.paperweight.patcher' type 'io.papermc.paperweight.patcher.tasks.SimpleApplyGitPatches' property 'upstreamDir' specifies directory '/home/pelfox/Mirai/.gradle/caches/paperweight/upstreams/Pufferfish/Pufferfish-API' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the directory exists before the task is called.
      2. Make sure that the task which produces the directory is declared as an input.

    Please refer to https://docs.gradle.org/7.3.1/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.

* 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

BUILD FAILED in 52s
3 actionable tasks: 3 executed
@ghost
Copy link
Author

ghost commented Dec 14, 2021

See this issue to get information how to fix this error. I'll try to do it myself, but later.

@ghost ghost mentioned this issue Dec 14, 2021
@ghost ghost changed the title Cannot build at local machine Cannot build Dec 14, 2021
@ghost ghost mentioned this issue Dec 14, 2021
@etil2jz
Copy link
Owner

etil2jz commented Dec 16, 2021

Since #5, vanilla class import doesn't work, which breaks patch applying as some classes are imported manually. I reopen this issue.

@etil2jz etil2jz reopened this Dec 16, 2021
@etil2jz
Copy link
Owner

etil2jz commented Dec 17, 2021

@Pelfox Fixed since commit f9fcb70 😉

@etil2jz etil2jz closed this as completed Dec 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant