Jump to content

Cannot snapshot ClientForceData.java: not a regular file


jasperagent

Recommended Posts

I randomly got this error when I tried to build my game, tried reverting everything I did and it still did not do anything, and nothing is working. I don't think it's to do with my code, but it randomly happened after I made some changes?

1:28:28 pm: Executing 'assemble'...


> Configure project :
Java: 17.0.6, JVM: 17.0.6+10 (Eclipse Adoptium), Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.

> Task :compileJava FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
1 actionable task: 1 executed

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':compileJava'.
> Cannot fingerprint input file property 'stableSources': java.io.IOException: Cannot snapshot C:\Users\jbart\OneDrive\Documents\Minecraft\Mods\Forge\1.19.3\JaspersStarWarsMod\src\main\java\net\jasper\jstarwars\classes\client\ClientForceData.java: not a regular file

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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 888ms
1:28:29 pm: Execution finished 'assemble'.

ClientForceData.java:

package net.jasper.jstarwars.classes.client;

public class ClientForceData {
    private static int playerForce;

    public static void set(int force)
    {
        ClientForceData.playerForce = force;
    }

    public static int getPlayerForce()
    {
        return ClientForceData.playerForce;
    }
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.