Skip to main content
Participant
October 20, 2010
Question

FlexPMD 1.2 and Eclipse Plug-In

  • October 20, 2010
  • 3 replies
  • 12614 views

Hi, I'm probably missing something simple here but Flex PMD (using the eclipse plugin) isn't working for me: Nothing gets populated in either the Flex PMD view or the CPD view but the views do open when I run Flex PMD.

My configuration is:

FlexPMD command line installation: C:\Software\FlexPmdAll\flex-pmd-command-line-1.2.jar

FlexPMD custom ruleset: C:\Software\FlexPmdAll\pmd.xml

Java command line: java -Xms512m -Xmx512m

FlexCPD command line installation: C:\Software\FlexPmdAll\flex-pmd-cpd-command-line-1.2.jar

There are no spaces in my workspace path, it is simply: C:\Views\ProjectNameHere\

Using these settings I get a pop-up error message saying: 'add markers job' has encountered a problem.

Expanding on this error gives me: An internal error occurred during: "add markers job". Index: 0, Size: 0

If I change the Java command line (a tip found on the web) to: java -Xms512m -Xmx512m -Djava.io.tmpdir=C:\Users\NameGoesHere\AppData\Local\Temp

I get the same error.

If I remove the custom ruleset value no error message shows when I run Flex PMD but nothing happens either.

If you have any idea what's wrong let me know. The open source website is offline and I can't find any reference sites that don't link to it for an answer.

Cheers,

Tony

This topic has been closed for replies.

3 replies

Participant
October 15, 2011

I've just gotten the "add markers job" error when trying to analyze various individual files in my project, but I don't get it when I analyze the whole folder.

Based on this, plus some details about the classes themselves, I have a hunch that maybe the error is happening when there aren't any errors to report.

Thoughts?

I'm using FDT on a Mac running 10.6

Inspiring
November 4, 2011

Based on the last two posts here : http://forums.adobe.com/message/3872559#3872559 the problem might spaces in the workspace path. The default is something like 'c:\Documents and Settings...' so it may well be http://bugs.adobe.com/jira/browse/FLEXPMD-127

I don't get any output, or any errors, Builder 4.5, Flex 4.1 SDK, Windows XP.

Hopefully the next release will fix all this, because it's a really common use case that really should Just Work.

Cancerinform
Inspiring
September 18, 2011

Hi,

I had a similar problem. I resolved it by installing the update into FB 4.5. However, while I get a PMD view, I do not get any CPD view. I am on Mac OSX

Participant
September 22, 2011

I have encountered this same problem. I am on Win7, have admin privs, am running Flash Builder 4.

Is there any way to fix this without updating to Flash Builder 4.5?

Participating Frequently
October 20, 2010

Hi Tony,

we're planning a new release of the plugin really soon. could you give a try to install a newer temp version from this update site? http://www.rialvalue.com/flexPmd/updateSite/ and let me know if the problem still persist?

this update site comes with FlexPMD 1.1 bundled but from the preferences you'll be able to point to whatever version you have locally

please let me know if the problems persist

Tony_RyAuthor
Participant
October 20, 2010

Hi Xavi,

Thanks for your quick reply.

I uninstalled the FlexPMD plugin I had and installed the one in your link.

I changed no settings. I am using the bundled runtime and the Java arguments line is java -Xms512m -Xmx512m. I am not using a custom ruleset.

When I try to run FlexPMD and error message pops up saying:

!java.lang.NoClassDefFoundError: java -Xms512m -Xmx512m

Caused by: java.lang.ClassNotFoundException: java -Xms512m -Xmx512m

...

Some stack trace

...

Could not find the main class: java  -Xms512m -Xmx512m. Program will exit.

Exception in thread "main"

!

It doesn't seem to like the Java arguments...

Cheers,

Tony

Participating Frequently
October 20, 2010

mmm it sounds like it's messing around with your old preferences... Could you open the preferenes panel for FlexPmd, make a dummy change and save them just to override any wrong value?

Xavi