Git Product home page Git Product logo

Comments (9)

hazendaz avatar hazendaz commented on June 20, 2024

from formatter-maven-plugin.

delanym avatar delanym commented on June 20, 2024
git clone --branch issue-713 https://github.com/delanym/formatter-maven-plugin.git
cd formatter-maven-plugin
./do

from formatter-maven-plugin.

ctubbsii avatar ctubbsii commented on June 20, 2024

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.

delanym avatar delanym commented on June 20, 2024

Seems an issue with commons-digester3: https://issues.apache.org/jira/browse/MNG-7747

from formatter-maven-plugin.

hazendaz avatar hazendaz commented on June 20, 2024

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.

hazendaz avatar hazendaz commented on June 20, 2024

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.

ctubbsii avatar ctubbsii commented on June 20, 2024

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.

ctubbsii avatar ctubbsii commented on June 20, 2024

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.

ctubbsii avatar ctubbsii commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.