Git Product home page Git Product logo

Comments (10)

acanda avatar acanda commented on September 25, 2024

This bug has been fixed in PMD 5.2.3 which was released yesterday. The eclipse-pmd plugin 1.4 uses an older version of PMD which is still affected this bug. I just released eclipse-pmd 1.5 which uses the latest PMD. All you have to do is check for updates (Help > Check for Updates) and the new version of eclipse-pmd should be installed.

from eclipse-pmd.

neelu-sarkar avatar neelu-sarkar commented on September 25, 2024

Just upgraded to Eclipse Mars and I'm seeing this issue with v1.5.0.201505230804 of the plugin.

Any ideas?

from eclipse-pmd.

acanda avatar acanda commented on September 25, 2024

@neelu-sarkar: try to clean and build the affected Eclispe projects. Eclipse stores the PMD warnings and if you just upgraded from eclipse-pmd 1.4 to 1.5 then you might still have the PMD warnings generated by eclipse-pmd 1.4. Cleaning and building the projects will trigger a new PMD analysis with eclipse-pmd 1.5.

If you still have the warnings after cleaning and building then please run PMD 5.3.2 from the command line and check if it produces the same false positives. If it does then this is probably a (slightly) different bug which has to be fixed in PMD. In this case you have to report the bug at the PMD bug tracker.

from eclipse-pmd.

neelu-sarkar avatar neelu-sarkar commented on September 25, 2024

@acanda
I've tried clean and build a few times already with no luck. PMD running from maven / command line is fine.

I've only had v1.5 of the plugin installed in Mars but workspace I was using was an upgraded Luna one, so I've just tried creating a new Mars workspace and importing the same projects and the pmd warnings no longer appear so happy just to carry on with that.

Maybe something in the upgrade workspace process went wrong? I've definitely had v1.4 installed in Luna in the past but not at the point of upgrading to Mars.

Cheers

from eclipse-pmd.

jeffjensen avatar jeffjensen commented on September 25, 2024

I'm seeing the same issue with Luna. Maven PMD doesn't flag it but Eclipse
does.

For us, it will only happen in some Entity classes on some instance
variables with at least 2 annotations.

On Wed, Jul 1, 2015 at 5:59 AM, Neelu Sarkar [email protected]
wrote:

@acanda https://github.com/acanda
I've tried clean and build a few times already with no luck. PMD running
from maven / command line is fine.

I've only had v1.5 of the plugin installed in Mars but workspace I was
using was an upgraded Luna one, so I've just tried creating a new Mars
workspace and importing the same projects and the pmd warnings no longer
appear so happy just to carry on with that.

Maybe something in the upgrade workspace process went wrong? I've
definitely had v1.4 installed in Luna in the past but not at the point of
upgrading to Mars.

Cheers


Reply to this email directly or view it on GitHub
#25 (comment).

from eclipse-pmd.

neelu-sarkar avatar neelu-sarkar commented on September 25, 2024

@jeffjensen

Seeing the same thing - my new Mars workspace has started reporting the PMD violations again :(

from eclipse-pmd.

neelu-sarkar avatar neelu-sarkar commented on September 25, 2024

@acanda

I just looked inside ch.acanda.eclipse.pmd.core_1.5.0.201505230804.jar and it's using PMD 5.3.2.

I guess I'll need to wait until the plugin is updated to use 5.3.3?

The related PMD bug was only fixed in this version:
http://sourceforge.net/p/pmd/bugs/1364/

Cheers
(Thanks for the plugin btw!)

from eclipse-pmd.

acanda avatar acanda commented on September 25, 2024

@neelu-sarkar @jeffjensen
Thank you for clarifying - this is a different bug than the one originally reported. Your bug has been fixed and will most likely be part of the not yet released PMD 5.3.3. I will release a new version of eclipse-pmd as soon as PMD 5.3.3 is officially available.

from eclipse-pmd.

jeffjensen avatar jeffjensen commented on September 25, 2024

Nice, thanks for letting us know Philip!

On Thu, Jul 2, 2015 at 11:44 AM, Philip Graf [email protected]
wrote:

@neelu-sarkar https://github.com/neelu-sarkar @jeffjensen
https://github.com/jeffjensen
Thank you for clarifying - this is a different bug than the one originally
reported. Your bug has been fixed and will most likely be part of the not
yet released PMD 5.3.3. I will release a new version of eclipse-pmd as soon
as PMD 5.3.3 is officially available.


Reply to this email directly or view it on GitHub
#25 (comment).

from eclipse-pmd.

acanda avatar acanda commented on September 25, 2024

PMD 5.3.3 has been released with a fix for PMD bug 1364 so I released eclipse-pmd 1.6 with PMD 5.3.3. Enjoy!

from eclipse-pmd.

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.