This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209144 - NoGo for plugin jDepend Plugin
Summary: NoGo for plugin jDepend Plugin
Status: VERIFIED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: javydreamercsw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-04 20:00 UTC by carlosqt
Modified: 2012-03-07 08:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception when jDepend Analysis action was called on debugger.jpda.ui NetBeans module. (2.50 KB, text/plain)
2012-03-05 09:38 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description carlosqt 2012-03-04 20:00:55 UTC
Exception appears on NB 7.1.1<br />
Win7, Java 1.7.0, 64-bit. Plugin functionality tested.
When it fails only 2 files are created. When it works it creates the 3 files but png is always 0kb. More details on the Comments section.

http://plugins.netbeans.org/plugin/32365
Comment 1 Jiri Kovalsky 2012-03-05 09:38:38 UTC
Created attachment 116343 [details]
Exception when jDepend Analysis action was called on debugger.jpda.ui NetBeans module.
Comment 2 Jiri Kovalsky 2012-03-05 09:39:00 UTC
Can you take a look at it Javier? Thanks!
Comment 3 javydreamercsw 2012-03-05 15:09:29 UTC
From the stacktrace it seems like GraphViz is not available, this is stated as a requirement for the plugin. Check if it's available. I guess I'll need to have the plugin check and give a warning or something if not found.
Comment 4 javydreamercsw 2012-03-05 15:48:01 UTC
It seems that Graphviz was not installed. Added some logic to detect this upon plugin validation to display the proper message and unload the plugin as an enhancement for next version. See issue: http://kenai.com/jira/browse/JDEPEND_PLUGIN-6 for more details.

Reporter, if the missing Graphviz is not the case please feel free to reopen with more details.
Comment 5 Jiri Kovalsky 2012-03-05 15:59:13 UTC
Javier, please upload new plugin binary otherwise you cannot mark this issue as resolved. Thanks for your understanding.
Comment 6 javydreamercsw 2012-03-05 19:12:44 UTC
Why not? IMO is just a plugin missing required elements from the user. The fix will just elegantly handle that scenario by displaying a message and unloading the plug-in. Even if I upload the new version the plugin won't work without Graphviz installed, it just won't show the related actions in the IDE.

This "fix" is just an enhancement.
Comment 7 Jiri Kovalsky 2012-03-06 10:00:12 UTC
Yes, I understand that Javier. But in my opinion you cannot mark issue as resolved if nothing changed in reality. If I right now download the plugin and will not face the same behavior (exception, enabled useless action), this bug can be resolved. Otherwise it must stay opened.

BTW, where can I get the GraphViz library/plugin? This information should be mentioned in the plugin's description.
Comment 8 javydreamercsw 2012-03-06 13:53:48 UTC
I marked it as works for me not fixed (if I remember correctly). I added the Graphviz link to the plugin details (is not a plugin, is an application that needs to be installed in the OS).

Based on the way NetBeans uses Resolved/Works for me I was not doing any different.

I'll go ahead and release a new version even if I disagree since the plugin was behaving correctly (just not too user friendly).
Comment 9 javydreamercsw 2012-03-06 15:39:07 UTC
Published new version of the plug-in with the ENHANCEMENT. See http://plugins.netbeans.org/plugin/32365 for more details.
Comment 10 Jiri Kovalsky 2012-03-07 08:06:52 UTC
Great, I think this solution is satisfactory. Thanks a lot Javier for your quick fix! Verifying.