Skip to content
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

Open
wants to merge 19 commits into
base: 1.21.1
Choose a base branch
from
Open

Add Dev Module #4087

wants to merge 19 commits into from

Conversation

IThundxr
Copy link
Contributor

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

@modmuss50 modmuss50 added the enhancement New feature or request label Sep 12, 2024
Copy link
Member

@modmuss50 modmuss50 left a 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/README.md Outdated Show resolved Hide resolved
fabric-api-dev/src/main/resources/fabric.mod.json Outdated Show resolved Hide resolved
gradle.properties Outdated Show resolved Hide resolved
fabric-api-dev/README.md Outdated Show resolved Hide resolved
fabric-api-dev/README.md Outdated Show resolved Hide resolved
fabric-api-dev/README.md Outdated Show resolved Hide resolved
fabric-api-dev/README.md Outdated Show resolved Hide resolved
fabric-api-dev/README.md Outdated Show resolved Hide resolved
fabric-api-dev/README.md Outdated Show resolved Hide resolved
Copy link
Member

@modmuss50 modmuss50 left a 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.

@@ -14,6 +14,7 @@ include 'fabric-api-bom'
include 'fabric-api-catalog'

include 'fabric-api-base'
include 'fabric-api-dev'
Copy link
Member

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.

Copy link
Contributor Author

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

* Default value: true</br>
* {@link CommandManager#execute(ParseResults, String)}
*/
public static final boolean ENABLE_COMMAND_EXCEPTION_LOGGING = getProperty("enableCommandExceptionLogging", true);
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants