Comments (9)
from formatter-maven-plugin.
git clone --branch issue-713 https://github.com/delanym/formatter-maven-plugin.git
cd formatter-maven-plugin
./do
from formatter-maven-plugin.
These debug messages are not coming from this plugin. They seem to be coming from Maven, as it parses the configuration. I don't know why it's happening, but I don't think it's an issue for this plugin to solve.
from formatter-maven-plugin.
Seems an issue with commons-digester3: https://issues.apache.org/jira/browse/MNG-7747
from formatter-maven-plugin.
Likely coming from our usage of it here https://github.com/revelc/formatter-maven-plugin/blob/main/src/main/java/net/revelc/code/formatter/model/ConfigReader.java and https://github.com/revelc/formatter-maven-plugin/blob/main/src/main/java/net/revelc/code/formatter/model/RuleSet.java
So it seems unless I'm reading that wrong as I only quickly looked is that its doing a quick configuration it can read the xml file. Maybe we can do that some other way.
from formatter-maven-plugin.
But yes, not maven, its that library which I know tomcat uses it and its incredibly noisy in debug in general. Still nothing we can do in regards to what is going on there I don't think. The code is certainly probably really old here. I probably did an upgrade from the old commons digester to latest but didn't even remember we use that.
from formatter-maven-plugin.
Oh, my mistake. When I saw that it seemed to be parsing Maven configuration, it seemed like Maven was responsible. But, I guess we're using it. Still, like @hazendaz said, I'm not sure there's anything we can do about it... the debug logs are going to be noisy. If there's a bug in the logs from the digester library, I suggest filing a report with the commons-digester3 maintainers. We can upgrade to the newer version if they release one that fixes it. We can also look into alternatives for reading the config file, but I'm not sure we have a compelling reason to do so. Noisy or poorly-formatted debug lines aren't really very compelling reasons, I think.
from formatter-maven-plugin.
It's a bit hard to troubleshoot how this config parsing code is being used, because it's a bit convoluted, and there's a bit of an overuse of the var
keyword, obscuring the types everywhere, but I'm looking into it a bit, to see if there's an easy way to use something else, or strip this out entirely.
from formatter-maven-plugin.
After spending some time figuring out how we're using digester, I think it's best that we leave it as-is. It's possible we could switch to something like FasterXML's Jackson, which I'm more familiar with, but it would require rewriting the models, and the way it is currently implemented is pretty lightweight, has good validation for edge cases (like having multiple profiles in the XML file), and works for both the Java and the Javascript formatter config files. My recommendation is to leave it alone and maybe file a bug with upstream digester maintainers if the whitespace in the debug output is too annoying.
from formatter-maven-plugin.
Related Issues (20)
- NOTICE: Eclipse 2023-06 Requires jdk 17 for many parts HOT 7
- Eclipse Formatter Attribute Ignored: Parameter After Annotation HOT 1
- Sealed interfaces are not correctly formatted HOT 3
- Not able to run validate due to ExtensionRegistry return null value HOT 4
- False configuration used for line Indentation HOT 2
- lineEnding=KEEP breaks JSON validation on Windows HOT 6
- Report problematic line number in error message HOT 3
- Tab treated as one space for the purpose of line length HOT 3
- Includes are not honored by includeResources
- Rewrite the cache store to match that done on impsort HOT 1
- Please use change log or github releases
- Support 'windows' users for contributions
- No documentation for 'find-transitive-eclipse-updates.sh' and it does not work on windows without additional software
- Next Release: placeholder to prevent release HOT 6
- Java 21 compliance HOT 1
- Incorrect documentation HOT 3
- Formatter no longer formats in version 2.24.0 HOT 10
- Integration Tests needed - Good for first time contributors
- NPE: Cannot invoke "org.eclipse.jdt.internal.compiler.ast.TypeReference.extraDimensions()" with version 2.24 HOT 1
- Allow 'validate' to write violations to a file, and not stop the build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formatter-maven-plugin.