Project

General

Profile

FWD Source Code Analytics

Added by Atul Dalvi over 6 years ago

How can we use FWD only for Source Code Analytics without much complicated setup ?


Replies (155)

RE: FWD Source Code Analytics - Added by Atul Dalvi over 6 years ago

Constantin Asofiei wrote:

Atul Dalvi wrote:

But while performing call graph command why it is logging below errors, not able to get it. It should not generate these errors as we have all the corrected ast files now.

Atul, at least you are getting a different error, so we are making progress :).

Can you post how the code at .\abl\DCORP\Talk\OeFrameWork\service\ApplicationVersion.p.cache line 41 looks like (use the .cache file)? It might be a bug in FWD, as this suggests the qualified annotation (with the name of the class in use by that code) is missing.

At that line we have singleton class which is calling its method checking, creating & returning the self object as below -

Appversion:GetInstance()

RE: FWD Source Code Analytics - Added by Constantin Asofiei over 6 years ago

Atul, thanks, I need to do some testing and try to duplicate your error. I'll get back to you with my findings.

RE: FWD Source Code Analytics - Added by Constantin Asofiei over 6 years ago

Atul, can you provide any other details about what the code looks like ? Or how is your Appserver class defined - is it inheriting anything, etc.. Because I couldn't duplicate the problem yet.

RE: FWD Source Code Analytics - Added by Greg Shah over 5 years ago

The issues reported in #3360 and #3362 have both been resolved in FWD v3.2.0 which is the latest stable public release.

RE: FWD Source Code Analytics - Added by Greg Shah over 5 years ago

Things to consider regarding FWD Analytics v3.2.0:

1. The OO 4GL parsing support has been greatly improved. A great deal of OO 4GL code from customer applications has been properly parsed using these changes.

2. If you are encountering a large number of missing class references, please try the following:

  • Make sure that your ./cfg/class_map.xml is properly generated. You can run the GenerateClassMap tool to create or update that file (it will overwrite it so make sure you intend for that to happen). More details can be found in Class Map.
  • The pre-defined skeletons have been updated with many new .NET and OO 4GL classes. Make sure to download the latest version and use that when parsing. The files can be found in latest skeletons and details on how to use them are in Skeleton Classes.

Following the above instructions should greatly reduce the number of missing classes as well as the number of issues that you may encounter. I hope this helps.

(151-155/155)