fabricmc / fabric-example-mod Goto Github PK
View Code? Open in Web Editor NEWExample Fabric mod
License: Creative Commons Zero v1.0 Universal
Example Fabric mod
License: Creative Commons Zero v1.0 Universal
i am useing vscode. The build.grable file has 39 erers or problomes and when i run the client it saids build faild do you want to continue
Into the Sunset on May 1st: Bintray, JCenter, GoCenter, and ChartCenter
By default, every mod created based on the example mod depends on JCenter through settings.gradle
. While this won't fix existing mods, at the very least we should ensure that new mods created don't depend on it.
GitHub's new template feature (see https://twitter.com/github/status/1136671651540738048?s=19 ) would make it easier to create new Fabric mod repos from this example.
I request that this repository be marked as a template.
Mod itself builds just fine, but the game won't launch because it can't find LWJGL / GLFW.
I've tried both the auto generator, the MinecraftDev plugin, and manually setting this repo up, all to no avail.
warning: dev-launch-injector in pass-through mode, missing or unreadable config file (E:\ModȌreating\.gradle\loom-cache\launch.cfg)
[15:20:33] [main/INFO]: Loading for game Minecraft 1.15.2
[15:20:33] [main/INFO]: [FabricLoader] Loading 2 mods: [email protected], [email protected]+build.187
[15:20:33] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8 Source=file:/C:/Users/David/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.8+build.18/af077ad2845a00cde186fa2c99c4dd32bd2a2766/sponge-mixin-0.8+build.18.jar Service=Knot/Fabric Env=CLIENT
[15:20:34] [main/INFO]: Setting user: Player458
[15:20:37] [main/INFO]: [STDERR]: [LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
[15:20:37] [main/INFO]: [STDERR]: [LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[15:20:37] [main/INFO]: [STDERR]: [LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
---- Minecraft Crash Report ----
// Shall we play a game?
Time: 3/16/20 3:20 PM
Description: Initializing game
java.lang.ExceptionInInitializerError
at net.minecraft.client.options.GameOptions.<init>(GameOptions.java:221)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:363)
at net.minecraft.client.main.Main.main(Main.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:138)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at net.minecraft.client.util.InputUtil.<clinit>(InputUtil.java:109)
... 11 more
Caused by: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at org.lwjgl.system.Library.loadSystem(Library.java:147)
at org.lwjgl.system.Library.loadSystem(Library.java:67)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.system.MemoryAccessJNI.<clinit>(MemoryAccessJNI.java:13)
at org.lwjgl.system.Pointer.<clinit>(Pointer.java:28)
at org.lwjgl.system.Platform.mapLibraryNameBundled(Platform.java:80)
at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:674)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:330)
at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:327)
at java.lang.ClassValue.getFromHashMap(ClassValue.java:227)
at java.lang.ClassValue.getFromBackup(ClassValue.java:209)
at java.lang.ClassValue.get(ClassValue.java:115)
at java.lang.invoke.DirectMethodHandle.checkInitialized(DirectMethodHandle.java:351)
at java.lang.invoke.DirectMethodHandle.ensureInitialized(DirectMethodHandle.java:341)
at java.lang.invoke.DirectMethodHandle.ensureInitialized(DirectMethodHandle.java:373)
at net.minecraft.client.util.InputUtil.<clinit>(InputUtil.java:106)
... 11 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.minecraft.client.options.GameOptions.<init>(GameOptions.java:221)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:363)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:138)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
-- System Details --
Details:
Minecraft Version: 1.15.2
Minecraft Version ID: 1.15.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_241, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 555676384 bytes (529 MB) / 731381760 bytes (697 MB) up to 1897922560 bytes (1810 MB)
CPUs: 12
JVM Flags: 0 total;
Launched Version: Fabric
Backend library: LWJGL version 3.2.2 build 10
Backend API: ~~ERROR~~ NoClassDefFoundError: Could not initialize class org.lwjgl.glfw.GLFW
GL Caps:
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'
Type: Client (map_client.txt)
CPU: <unknown>
#@!@# Game crashed! Crash report saved to: #@!@# E:\Mod creating\Item Previews\run\.\crash-reports\crash-2020-03-16_15.20.37-client.txt
Process finished with exit code -1
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
Where:
Build file 'F:\PowerTech\build.gradle' line: 2
What went wrong:
Plugin [id: 'fabric-loom', version: '0.2.3-SNAPSHOT'] was not found in any of the following sources:
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 18s
Below are the reports , I guess it might be somthing wrong with the json, or the reason lies in my computer settings.
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 32300 path $.libraries[50].downloads.classifiers.nat
ives-windows.path
at com.google.gson.Gson.fromJson(Gson.java:942)
at com.google.gson.Gson.fromJson(Gson.java:865)
at net.fabricmc.loom.providers.MinecraftProvider.provide(MinecraftProvider.java:78)
at net.fabricmc.loom.util.LoomDependencyManager.lambda$handleDependencies$1(LoomDependencyManager.java:111)
... 138 more
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 32300 path $.libraries[50].downloads.classifiers.natives-windows.path
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1568)
at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1031)
at com.google.gson.stream.JsonReader.nextString(JsonReader.java:815)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:702)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:723)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:723)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:723)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:698)
at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:894)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.Gson.fromJson(Gson.java:927)
Updated to 1.16.2 got an error at startup about a fabric mixin.
Error log: https://gist.github.com/Slexom/988e452f778eb3c2065e697fd37c7ce4
minecraft_version=1.16.2
yarn_mappings=1.16.2+build.1
loader_version=0.9.1+build.205
fabric_version=0.17.2+build.396-1.16
> Task :genSourcesDecompile FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':genSourcesDecompile'.
> FernFlowerTask requires a 64bit JVM to run due to the memory requirements
* 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 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 7s
1 actionable task: 1 executed
Ho to fix this?
Everytime I run ./gradlew genSources the build fails and it says that no Minecraft dependency is specified.
In order to interact with other apps through rpc, I want to get information about players' chat content, but I don't understand which method
and at
parameter should be used in @Inject
Annotioin.
please help me with some example, thanks.
Remove the modImplementation
of the full fabric API, and remove "fabric": "*"
from the example mod's fabric.mod.json
.
Leaving the fabric API in the example mod means that many mods depend on the full Fabric API, even when they don't use all of API's modules.
This issue is part of a plan to improve depending on Fabric API.
Caused by: java.util.zip.ZipError: zip END header not found,When I use IntelliJ IDEA
sorry for the noob question , im trying to build my own mod , after gradle genSource
all seems fine , but when i try to run a client or compile the mod , gradle will throw the error :
> Task :downloadAssets FAILED
:downloadAssets (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 2.13 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':downloadAssets'.
> com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 177409 path $.objects.
i has already tried use different template ( such as the kotlin version and template generator ) but i still got the same error , is there anything i forgot that caused this error ?
First off I would like to compliment the fabric initiative. But I'm having some trouble with running my mod on a server. I'm not sure if this is the right place for this but if it's not, please point me in the right direction.
I'm building a mod and I started by cloning the fabric-example-mod and I started in VS Code, as a side note, pretty cool how easy it was to get it up on running on VS Code, kudos to the fabric team. When I just start the debug task, the fabric launcher (if I'm not mistaken the fabric launcher is de program that runs the MC server?) pops up and the server is started and the mod is loaded.
You can find my fork of the example mod here btw https://github.com/yentheo/fabric-example-mod
Now I changed up the mod a little bit and added some dependencies like jackson-databind.
When I run the debug task, my server starts up fine and the mod runs fine too.
Now I wanted to try and setup a server from scratch without the debug task. So I downloaded the server installer from here https://fabricmc.net/use/ and did the installation. Now when I run java -jar fabric-server-launch.jar
I get a running server. All is well.
Now I want to publish my mod to run it in that server. But at this time I don't want to really publish it to any public repository. I just want to create a jar and put it inside the mods folder. So I run the ./gradlew build
task and I get my jar. I also download the fabric-api jar and put it inside the mods folder.
When starting the server at this point I get:
02:54:29] [main/INFO]: Loading for game Minecraft 20w08a
[02:54:30] [main/INFO]: [FabricLoader] Loading 4 mods: [email protected], [email protected]+build.299-1.16, [email protected]+build.184, [email protected]
[02:54:30] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8 Source=file:/Users/yentheoerlemans/fabric-server/fabric-server-launch.jar Service=Knot/Fabric Env=SERVER
[02:54:36] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[02:54:36] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[02:54:36] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[02:54:36] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[02:54:36] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[02:54:36] [main/FATAL]: Failed to start the minecraft server
net.fabricmc.loader.api.EntrypointException: Could not look up entries for entrypoint main!
at net.fabricmc.loader.EntrypointStorage.getEntrypoints(EntrypointStorage.java:153) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.FabricLoader.getEntrypoints(FabricLoader.java:220) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:41) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke(EntrypointUtils.java:34) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointServer.start(EntrypointServer.java:32) ~[fabric-server-launch.jar:?]
at net.minecraft.class_3176.<init>(class_3176.java:100) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:948) [intermediary-server.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:193) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:138) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.knot.KnotServer.main(KnotServer.java:26) [fabric-server-launch.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:61) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:105) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:49) [fabric-server-launch.jar:?]
Suppressed: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/type/TypeReference
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:398) ~[?:?]
at net.fabricmc.loader.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:45) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.EntrypointStorage$NewEntry.create(EntrypointStorage.java:100) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:92) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.EntrypointStorage.getEntrypoints(EntrypointStorage.java:143) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.FabricLoader.getEntrypoints(FabricLoader.java:220) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:41) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke(EntrypointUtils.java:34) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointServer.start(EntrypointServer.java:32) ~[fabric-server-launch.jar:?]
at net.minecraft.class_3176.<init>(class_3176.java:100) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:948) [intermediary-server.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:193) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:138) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.knot.KnotServer.main(KnotServer.java:26) [fabric-server-launch.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:61) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:105) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:49) [fabric-server-launch.jar:?]
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.type.TypeReference
at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[?:?]
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at net.fabricmc.loader.launch.server.InjectingURLClassLoader.loadClass(InjectingURLClassLoader.java:56) ~[fabric-server-launch.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at net.fabricmc.loader.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:161) ~[fabric-server-launch.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
... 26 more
I don't think publishing works like I think it works but I could not find a comprehensive guide in the docs and I'm a bit of a noob in the java world.
What I can make of it is that it can't find the extra dependencies I added to the build.gradle file like the jackson-databind stuff.
What am I doing wrong? Thanks in advance!
I was trying to add a new item to the mod, I followed the tutorial, and I got to the "texture import" part, where the tutorial tells me to put a .json
file and a .png
file to the following folders:
.../resources/assets/tutorial/models/item/fabric_item.json
<- For the .json
file
.../resources/assets/tutorial/textures/item/fabric_item.png
<- For the .png
file
I've put these two files in the [MOD FOLDER]/src/main/resources...
(etc.), but when I'm starting the game, the same error message comes up. [Server-Worker-3/WARN]: Unable to load model: 'hammer:diamond_hammer#inventory' referenced from: hammer:diamond_hammer#inventory: java.io.FileNotFoundException: hammer:models/item/diamond_hammer.json
(Yes, I renamed the workspaces.)
Please, take a look into my issue, because I'm sure it's me messing up, I just don't know what I messed up.
There isn't a forum for fabric that i know of, and the wiki has helpful information but it doesnt tell me a lot of things i need to know.
The only thing is the discord but i dont have discord so can you make a forum or something?
I ran the command .\gradlew genSources and other variations but this error kept on occurring. I also don't know how to check whether I have a 64 bit or 32 bit JVM or how to change that.
gradle.properties:
minecraft_version=20w18a
yarn_mappings=20w18a+build.14
loader_version=0.8.2+build.194
fabric_version=0.10.3+build.338-1.16
build.gradle
dependencies {
minecraft "com.mojang:minecraft:20w18a"
mappings "net.fabricmc: yarn:20w18a+build.14:v2"
modImplementation "net.fabricmc:fabric-loader:0.8.2+build.194"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.10.3+build.338-1.16"
}
The above are the only things I've changed in my main project files.
A block I made in my mod is supposed to copy the settings from Blocks.OAK_LOG. However, when that block is initialized, it throws an 'IllegalArgumentException: Cannot get property EnumProperty{name=axis, clazz=class net.minecraft.util.math.Direction$Axis, values=[x, y, z]} as it does not exist in Block{minecraft:air}." Every other block I try this with works except for Logs. When I change the block to copy to anything else it runs fine. What I mean by 'copy' is when I use the static AbstractBlock.Settings.copy(Block) method.
Hopefully the crash log is attached. I haven't reported anything on GitHub before so if you need any more info relating to this please don't hesitate to ask!
crash-2020-05-05_21.42.17-client.txt
I don't have a lot of knowledge I have fixed this issue before but I didn't know how I did it. Please give me instructions, Thanks
Seems a mixin somewhere is awry at the moment, as the repo (direct ZIP download and open, at time of writing) throws a "NoSuchMethod" exception. The mod compiles just fine, however, with no errors, with both IntelliJ and Gradle mediated "Build and Run" settings (I tried both, just to be safe). The full log of up to the error can be seen here, with the debug log here. The error message is as follows:
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:194)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
... 3 more
Caused by: java.lang.NoSuchMethodError: 'net.minecraft.util.crash.CrashReportSection net.minecraft.util.crash.CrashReportSection.method_577(java.lang.String, net.minecraft.util.crash.CrashCallable)'
at net.minecraft.util.crash.CrashReport.handler$zej000$fillSystemDetails(CrashReport.java:541)
at net.minecraft.util.crash.CrashReport.fillSystemDetails(CrashReport.java:72)
at net.minecraft.util.crash.CrashReport.<init>(CrashReport.java:38)
at net.minecraft.util.crash.CrashReport.initCrashReport(CrashReport.java:270)
at net.minecraft.client.main.Main.main(Main.java:122)
... 8 more
Process finished with exit code 1
Best Regards
FAILURE: Build failed with an exception.
> root project > Resolve dependencies of :classpath
* What went wrong:
A problem occurred configuring root project 'fabric-example-mod-master'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.eclipse.platform:org.eclipse.core.filesystem:[1.7.0,2.0.0).
Required by:
project : > fabric-loom:fabric-loom.gradle.plugin:0.5-SNAPSHOT:20201202.201951-40 > net.fabricmc:fabric-loom:0.5-SNAPSHOT:20201202.201953-40 > org.cadixdev:mercury:0.1.0-rc1 > org.eclipse.jdt:org.eclipse.jdt.core:3.21.0
> Could not resolve org.eclipse.platform:org.eclipse.core.filesystem:1.7.700.
> Could not get resource 'http://nexus.bsdn.org/content/groups/public/org/eclipse/platform/org.eclipse.core.filesystem/1.7.700/org.eclipse.core.filesystem-1.7.700.pom'.
> Could not HEAD 'http://nexus.bsdn.org/content/groups/public/org/eclipse/platform/org.eclipse.core.filesystem/1.7.700/org.eclipse.core.filesystem-1.7.700.pom'.
> Read timed out
* Try:
Run with --stacktrace option to get the stack trace. Run with --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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 34s
ENV: win10, java1.8.0
Location: china
Step:
I tried two ways and got same error.
1>
1. git clone
2. ./gradlew.bat downloadAssets
2>
1. git clone
2. ./gradlew.bat genSources
3. ./gradlew.bat idea
Tips:
the error msg said can't find "http://resources.download.minecraft.net/bd/bdf48ef6b5d0d23bbb02e17d04865216179f510a"
, but I can open this link and download it by "wget" or "Chrome" or any other browser
Trace:
Task has not declared any outputs despite executing actions.
16:53:07.313 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':downloadAssets'.
16:53:07.313 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute downloadAssets for :downloadAssets' started
16:53:07.317 [LIFECYCLE] [org.gradle.api.Project] :downloading assets...
16:53:07.317 [DEBUG] [org.gradle.api.Project] :downloading asset icons/icon_16x16.png
16:53:07.392 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@79f7a1e16 pairs: {GET http://resources.download.minecraft.net/bd/bdf48ef6b5d0d23bbb02e17d04865216179f510a HTTP/1.1: null}{Accept-Encoding: gzip}{User-Agent: Java/1.8.0_192}{Host: resources.download.minecraft.net}{Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2}{Proxy-Connection: keep-alive}
16:53:07.468 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@296988f87 pairs: {null: HTTP/1.1 404 Not Found}{Server: WeCloud-Engine#11/1.16.0}{Date: Fri, 26 Jul 2019 08:53:01 GMT}{Content-Type: text/html}{Content-Length: 165}{Connection: keep-alive}{Keep-Alive: timeout=20}
16:53:07.468 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Execute downloadAssets for :downloadAssets'
16:53:07.468 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute downloadAssets for :downloadAssets' completed
16:53:07.469 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context.
16:53:07.469 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':downloadAssets'
16:53:07.469 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Task :downloadAssets'
16:53:07.469 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Task :downloadAssets' completed
16:53:07.469 [INFO] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] :downloadAssets (Thread[Daemon worker Thread 6,5,main]) completed. Took 0.158 secs.
16:53:07.469 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: released lock on :
16:53:07.469 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.19 completed (1 worker(s) in use)
16:53:07.469 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: released lock on root.1.19
16:53:07.469 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 6,5,main]] finished, busy: 0.158 secs, idle: 0.0 secs
16:53:07.469 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':',5,main]] finished, busy: 0.0 secs, idle: 0.158 secs
16:53:07.469 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':' Thread 3,5,main]] finished, busy: 0.0 secs, idle: 0.158 secs
16:53:07.470 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':' Thread 2,5,main]] finished, busy: 0.0 secs, idle: 0.158 secs
16:53:07.470 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskExecutionGraph] Timing: Executing the DAG took 0.175 secs
16:53:07.470 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks'
16:53:07.470 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run tasks' completed
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':downloadAssets'.
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.io.IOException: Not Found
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights.
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:53:07.471 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
16:53:07.472 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler]
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.10.3/userguide/command_line_interface.html#sec:command_line_warnings
16:53:07.472 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
16:53:07.472 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 4s
This isn't really an example mod, and could confuse users. If it's an example mod, it should be adding actual content rather than printing a line on initialization.
I've been working on a class that dynamically get accessToken from mojang authentication server to pass as arguments into the launcher. However, after some research I found the :runclient
uses net.fabricmc.devlaunchinjector.Main
as the main class to launch the game and pass arguments , but I'm unable to import it to modify in my class.
Is there are tutorial or method in launching fabricmc from a class?
./gradlew runClient
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Configure project :
Fabric Loom: 0.2.6-SNAPSHOT Build(jenkins #26)
:setting up loom dependencies
:merging jars
Could not merge JARs! Deleting source JARs - please re-run the command and move on.
java.util.zip.ZipError: zip END header not found
at com.sun.nio.zipfs.ZipFileSystem.zerror(ZipFileSystem.java:1612)
at com.sun.nio.zipfs.ZipFileSystem.findEND(ZipFileSystem.java:1021)
at com.sun.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1030)
at com.sun.nio.zipfs.ZipFileSystem.(ZipFileSystem.java:130)
at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:117)
at java.nio.file.FileSystems.newFileSystem(FileSystems.java:326)
at java.nio.file.FileSystems.newFileSystem(FileSystems.java:276)
at net.fabricmc.stitch.util.StitchUtil.getJarFileSystem(StitchUtil.java:71)
at net.fabricmc.stitch.merge.JarMerger.(JarMerger.java:75)
at net.fabricmc.loom.providers.MinecraftProvider.mergeJars(MinecraftProvider.java:190)
at net.fabricmc.loom.providers.MinecraftProvider.provide(MinecraftProvider.java:100)
at net.fabricmc.loom.util.LoomDependencyManager.lambda$handleDependencies$1(LoomDependencyManager.java:111)
at java.lang.Iterable.forEach(Iterable.java:75)
at net.fabricmc.loom.util.LoomDependencyManager.handleDependencies(LoomDependencyManager.java:106)
at net.fabricmc.loom.AbstractPlugin.lambda$configureCompile$10(AbstractPlugin.java:286)
at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1$1.run(DefaultListenerBuildOperationDecorator.java:150)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.reapply(DefaultUserCodeApplicationContext.java:58)
at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1.run(DefaultListenerBuildOperationDecorator.java:147)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction.execute(DefaultListenerBuildOperationDecorator.java:144)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:91)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:80)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy25.afterEvaluate(Unknown Source)
at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate$1.execute(LifecycleProjectEvaluator.java:190)
at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate$1.execute(LifecycleProjectEvaluator.java:187)
at org.gradle.api.internal.project.DefaultProject.stepEvaluationListener(DefaultProject.java:1416)
at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate.run(LifecycleProjectEvaluator.java:196)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject$1.run(LifecycleProjectEvaluator.java:111)
at org.gradle.internal.Factories$1.create(Factories.java:25)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:226)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:220)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:186)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:95)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:67)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:693)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:141)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:54)
at org.gradle.configuration.NotifyingBuildConfigurer$ConfigureBuild.run(NotifyingBuildConfigurer.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.NotifyingBuildConfigurer.configure(NotifyingBuildConfigurer.java:40)
at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:197)
at org.gradle.initialization.DefaultGradleLauncher.doClassicBuildStages(DefaultGradleLauncher.java:137)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:125)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:105)
at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58)
at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55)
at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82)
at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:49)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:46)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:46)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)
FAILURE: Build failed with an exception.
Failed to notify project evaluation listener.
Failed to provide com.mojang:minecraft:1.15.1
java.lang.NullPointerException (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 15s
As a newcomer, I had no idea how to setup a fabric project.
I cloned the example mod to my computer.
I made a new java project in Eclipse.
I linked to the repo as a source folder in my project.
I made a gradle run configuration.
I asked what gradle tasks to run to launch a Minecraft client, and found an answer on the fabricord.
I put clean build runClient
in the gradle run configuration.
While looking for fabric api, I noticed this page:
https://fabricmc.net/wiki/tutorial:setup
and I thought it would have been nice to have seen that earlier.
Could someone add that page into the readme file please?
Gradle should be updated to 6.0, such that its compatible with jdk13 as mentioned on the Gradle project: gradle/gradle#8681 (comment)
I am getting this error in my mod java file, here's the whole mod java file:
https://pastebin.pl/view/49b96942
Visual Studio Code, Windows 10
I'll try reinstalling JDK
Hi!
I don't know if this is the right repo for this issue, since I don't know which fabric component is at fault here. In that case feel free to close this and I'll move to a different one.
I downloaded the example mod and changed it to use the latest version, but when starting the game, there are tons of errors of the following form:
[19:33:47] [Server thread/ERROR]: Couldn't read loot table minecraft:blocks/spruce_sign from minecraft:loot_tables/blocks/spruce_sign.json
java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.world.loot.entry.LootEntries
at net.minecraft.world.loot.entry.LootEntries$Serializer.method_407(LootEntries.java:47) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.world.loot.entry.LootEntries$Serializer.deserialize(LootEntries.java:41) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[gson-2.8.0.jar:?]
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41) ~[gson-2.8.0.jar:?]
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72) ~[gson-2.8.0.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:887) ~[gson-2.8.0.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:952) ~[gson-2.8.0.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:162) ~[gson-2.8.0.jar:?]
at net.minecraft.util.JsonHelper.deserialize(JsonHelper.java:440) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.JsonHelper.deserialize(JsonHelper.java:448) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.world.loot.LootPool$Serializer.method_358(LootPool.java:173) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.world.loot.LootPool$Serializer.deserialize(LootPool.java:169) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[gson-2.8.0.jar:?]
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41) ~[gson-2.8.0.jar:?]
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72) ~[gson-2.8.0.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:887) ~[gson-2.8.0.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:952) ~[gson-2.8.0.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:162) ~[gson-2.8.0.jar:?]
at net.minecraft.util.JsonHelper.deserialize(JsonHelper.java:440) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.JsonHelper.deserialize(JsonHelper.java:456) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.world.loot.LootSupplier$Serializer.method_340(LootSupplier.java:215) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.world.loot.LootSupplier$Serializer.deserialize(LootSupplier.java:211) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[gson-2.8.0.jar:?]
at net.minecraft.util.JsonHelper.deserialize(JsonHelper.java:493) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.JsonHelper.deserialize(JsonHelper.java:518) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.JsonHelper.deserialize(JsonHelper.java:538) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.world.loot.LootManager.apply(LootManager.java:63) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.resource.SynchronousResourceReloadListener.method_18235(SynchronousResourceReloadListener.java:12) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:705) ~[?:1.8.0_212]
at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:687) ~[?:1.8.0_212]
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) ~[?:1.8.0_212]
at net.minecraft.resource.ResourceReloadHandler.method_18365(ResourceReloadHandler.java:71) ~[minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.server.ServerTask.run(ServerTask.java:18) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.ThreadExecutor.runSafely(ThreadExecutor.java:135) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.GameTaskQueue.runSafely(GameTaskQueue.java:23) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.ThreadExecutor.executeQueuedTask(ThreadExecutor.java:114) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.server.MinecraftServer.executeQueuedTask(MinecraftServer.java:692) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.util.ThreadExecutor.waitFor(ThreadExecutor.java:123) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.server.MinecraftServer.reloadDataPacks(MinecraftServer.java:1456) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.server.MinecraftServer.method_3800(MinecraftServer.java:447) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.server.integrated.IntegratedServer.method_3735(IntegratedServer.java:79) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.server.integrated.IntegratedServer.setupServer(IntegratedServer.java:104) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:602) [minecraft-1.14%20Pre-Release%201-mapped-3.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
These are the versions I am using:
minecraft_version=1.14 Pre-Release 1
yarn_mappings=1.14 Pre-Release 1+build.3
loader_version=0.4.0+build.121
fabric_version=0.2.7+build.122
Cheers!
I change the files acorrding to my need like the modid.json versiobln etc and after I build it, i put it in the mods folder but fabric doesnt read it, I also tried putting the .jar file in my own minecraft instead of the one giving with getSource but it just dont work 😔
The example's mod json should include a mc version dependency in the "1.14.x" style to encourage better standards. The loader dep needs updating as well.
When generating the IDEA run configuration, the assetIndex
inside the client command line is not properly quoted
--assetIndex 1.14 Pre-Release 1-1.14 --assetsDir "[...]/fabric-loom/assets"
Instead, it should be
--assetIndex "1.14 Pre-Release 1-1.14" --assetsDir "[...]/fabric-loom/assets"
This error makes the game unable to find the assetIndex when it contains spaces.
fabric-example-mod/gradle.properties
Line 16 in 2b8fe8c
# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric
fabric_version=0.3.0+build.197
following the link, 0.3... doesn't even exist.
Could it be you were thinking of another link? (or fabric changed it at some point)
Would this link make more sense ?
https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api/
I was following the guide here, but I got stuck on the very last part:
Finally, to launch the game, select the debug menu item on the left. This will then build your mod and launch the game.
Running the "Minecraft Client" or "Minecraft Server" debug configuration allows for the code to build and run, but there is a RuntimeException
thrown, as shown in this crash log. There are no code errors reported by VSCode, and the code seems to build just fine. This is after having restarted the guide with a fresh repo clone four or five times.
OS: Ubuntu 18.04 x64
I always encounter this exception when running gradle tasks
and gradle build
:
> Configure project :
Fabric Loom: 0.5.34 Build(jenkins #34)
Repository https://jcenter.bintray.com/ replaced by http://maven.aliyun.com/nexu
s/content/repositories/jcenter.
:setting up loom dependencies
:merging jars
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'fabric-example-mod'.
> Failed to provide com.mojang:minecraft:1.16.3 : zip END header not found
* 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 10s
Could anyone tell me what to do? Thanks
It doesn't make the build fail, so it's not a huge issue, but it does highlight my Gradle files and that make me worried
11:06:40 PM: Executing tasks ':classes :testClasses'...
Starting Gradle Daemon...
Gradle Daemon started in 1 s 993 ms
> Configure project :
Fabric Loom: 0.5.43 Build(release #43)
:setting up loom dependencies
:setting up mappings (yarn 1.16.4+build.6)
> Task :compileJava
2020-12-27 23:07:30,837 Execution worker for ':' Thread 2 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
Note: SpongePowered MIXIN Annotation Processor Version=0.8.2
Note: ObfuscationServiceFabric supports type: "official:intermediary"
Note: ObfuscationServiceFabric supports type: "official:named"
Note: ObfuscationServiceFabric supports type: "intermediary:official"
Note: ObfuscationServiceFabric supports type: "intermediary:named"
Note: ObfuscationServiceFabric supports type: "named:official"
Note: ObfuscationServiceFabric supports type: "named:intermediary"
Note: ObfuscationServiceMCP supports type: "searge"
Note: ObfuscationServiceMCP supports type: "notch"
Note: Loading named:intermediary mappings from C:\Users\Username\.gradle\caches\fabric-loom\mappings\yarn-1.16.4+build.6-v2.tiny
Note: Writing refmap to C:\Users\Username\Documents\Fabric Mods\fabric-example-mod\build\classes\java\main\fabric-example-mod-refmap.json
Note: Writing refmap to C:\Users\Username\Documents\Fabric Mods\fabric-example-mod\build\classes\java\main\fabric-example-mod-refmap.json
Note: Writing named:intermediary output TinyMappings to C:\Users\Username\Documents\Fabric Mods\fabric-example-mod\build\loom-cache\mixin-map-1.16.4-1.16.4+build.6-v2.0.tiny
Note: Writing refmap to C:\Users\Username\Documents\Fabric Mods\fabric-example-mod\build\classes\java\main\fabric-example-mod-refmap.json
Note: Writing refmap to C:\Users\Username\Documents\Fabric Mods\fabric-example-mod\build\classes\java\main\fabric-example-mod-refmap.json
Note: Writing named:intermediary output TinyMappings to C:\Users\Username\Documents\Fabric Mods\fabric-example-mod\build\loom-cache\mixin-map-1.16.4-1.16.4+build.6-v2.0.tiny
> Task :processResources
> Task :classes
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
BUILD SUCCESSFUL in 50s
2 actionable tasks: 2 executed
11:07:40 PM: Tasks execution finished ':classes :testClasses'.
Is there something I can do to fix it?
P.S.
I just noticed that the cache file that the builder is trying to locate doesn't exist. Don't know if that's impacting anything.
I talked with @modmuss50 for some time yesterday on Discord about issues using VSCode to run the fabric-example-mod project, which are still not resolved that I can tell - however, while I was attempting to run the project I did notice some things missing from the .gitignore
file that should be included for all projects if anyone with VSCode decides to open it.
Here are the things I feel should be added to the .gitignore
file:
#vscode
.settings/
.vscode/
bin/
.classpath
.project
I found many of these by cloning the project https://github.com/strikerrocker/CraftingStick and then opening the project in VSCode.
(This project I can run using VSCode whereas I cannot with the example project)
i cant launch mc
i keep getting this error
(im using eclipse on debian linux)
http://www.hastebin.net/evypoquceb.properties
The Language Support for Java(TM) by Red Hat extension prompts to automatically adds a few settings to the workspace, but I thought it would be a great idea to add them to the template.
.vscode/settings.json
{
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"java.configuration.updateBuildConfiguration": "automatic"
}
The example mod's build.gradle has:
id 'fabric-loom' version '0.2.7-SNAPSHOT'
This seems bad - snapshot versions of Loom should only be used for Loom development.
try to run from idea after build and cant find lwjgl
[22:10:42] [main/INFO]: Setting user: Player309 [22:10:46] [main/INFO]: LWJGL Version: 3.2.2 build 10 [22:10:46] [main/INFO]: [STDERR]: [LWJGL] Failed to load a library. Possible solutions: a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath. b) Add the JAR that contains the shared library to the classpath. [22:10:46] [main/INFO]: [STDERR]: [LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
Could not unzip C:\Users\samsung.gradle\wrapper\dists\gradle-5.5.1-bin\cfsov38hb3r1zj4ic9bbjcc7n\gradle-5.5.1-bin.zip to C:\Users\samsung.gradle\wrapper\dists\gradle-5.5.1-bin\cfsov38hb3r1zj4ic9bbjcc7n.
Reason: error in opening zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.zip.ZipFile.(ZipFile.java:169)
at org.gradle.wrapper.Install.unzip(Install.java:219)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:75)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)
Every time I attempt to build or genSources
, it says it's unable to delete a file from the .gradle\loom-cache\remapped_mods\ folder, and checking if a process is using it shows java.exe as the culprit. Killing java and running again changes which file it throws an error about. After doing this for a while, I get an error about File 'C:\Users\<me>\.gradle\caches\fabric-loom\1.15.2-mapped-net.fabricmc.yarn-1.15.2+build.15-v2\minecraft-1.15.2-mapped-net.fabricmc.yarn-1.15.2+build.15-v2-sources.lmap' specified for property 'lineMapFile' does not exist.
I don't know if this is the right project to submit this issue under, but my goal is just to look at Minecraft's deobfuscated code, and this was the way suggested to me.
This error just comes when trying to build the project with pretty much everything the same.
The current .gitignore
for VSCode is this :
# vscode
.settings/
.vscode/
bin/
.classpath
.project
While in reality, it should be that :
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
You can view proper templates for .gitignore
in github.com/github/gitignore.
A useful tool to generate .gitignore
can be found at gitignore.io. Personally, I love this tool. I'm not a fan of having to look for each individual .gitignore
for every project I create, I'm way too lazy for that.
The .classpath
, .project
, .settings
and .factorypath
are added by Language Support for Java(TM) by Red Hat inside .vscode/settings.json
. Well, they should probably be also inside .gitignore
, but I think that they should be in a separate "block" from VSCode.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.