-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dev Module #4087
base: 1.21.1
Are you sure you want to change the base?
Add Dev Module #4087
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure it also builds.
fabric-api-dev/src/main/java/net/fabricmc/fabric/FabricDev.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/FabricDev.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/mixin/dev/ArgumentTypesMixin.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/mixin/dev/ArgumentTypesMixin.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/FabricDev.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of these should be enabled by default imo.
fabric-api-dev/src/main/java/net/fabricmc/fabric/impl/FabricDevProperties.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/mixin/dev/BlockAndItemMixin.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/impl/FabricDevProperties.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/impl/FabricDevProperties.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/impl/FabricDevProperties.java
Outdated
Show resolved
Hide resolved
@@ -14,6 +14,7 @@ include 'fabric-api-bom' | |||
include 'fabric-api-catalog' | |||
|
|||
include 'fabric-api-base' | |||
include 'fabric-api-dev' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be set as a dev only module, and not included in the prod jar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason it's included in prod is since some developers requested that they would be able to use it outside of dev envs to be debugging in prod easier
fabric-api-dev/src/main/java/net/fabricmc/fabric/impl/FabricDevProperties.java
Outdated
Show resolved
Hide resolved
fabric-api-dev/src/main/java/net/fabricmc/fabric/impl/FabricDevProperties.java
Outdated
Show resolved
Hide resolved
* Default value: true</br> | ||
* {@link CommandManager#execute(ParseResults, String)} | ||
*/ | ||
public static final boolean ENABLE_COMMAND_EXCEPTION_LOGGING = getProperty("enableCommandExceptionLogging", true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if these should be named such as fabric.dev.command.logging.exception
(with all of the others following the same pattern?
Also adds properties for enabling certain things controlled by SharedConstants.isDevelopment so developers can pick and choose what they want to enable instead of everything being enabled