Metrics Plugin issue in Eclipse

11,857

Solution 1

I had the same problem with Eclipse Juno and metrics 1 (1.3.6) .

After a few Eclipse upgrade and theming, the metrics doesn't work anymore. It was just showing the calculation progression but it doesn't display the calculation results anymore.

After some net search, i found that http://metrics.sourceforge.net/ evolve into http://metrics2.sourceforge.net/, so i make the change. But, the metrics 2 (1.3.8) shows the same problem.

After a little search in my Eclipse workspace files, i found a directory named ".metadata". Then a sub directory named ".plugins". Then a sub directory named "net.sourceforge.metrics" with two files inside :

  • metricsdb.db
  • metricsdb.lg

So, after quitting Eclipse, i go to "MyJunoWorkspace/.metadata/.plugins/net.sourceforge.metrics/" directory, then i move the two files to another place, relaunch Eclipse, make a clean/full rebuild of my project from the package view. The metrics calculation results are now redisplayed. The dependency graph is also redisplayed.

The first step of version switching (metrics 1 to 2), result from my tests, and couldn't be necessary in all cases. Try first to move the two files.

Solution 2

When you right-click the project to open its properties, make sure you are in the Package Explorer view. It doesn't work if you are in Project Explorer.

Solution 3

To show up the Metrics window:

1) Click on 'Window' in the top options bar.

2) Select 'Show View' -> 'Other' -> 'Metrics' -> 'Metrics View'.

To Enable Project Metrics:

1) Right click on project.

2) Select 'Properties'.

3) Click on 'Metrics' label.

4) Check the 'Enable Metrics'.

You should be in the Package Explorer view.

Share:
11,857
Saurabh
Author by

Saurabh

I am working as a mobile full stack engineer with knowledge of basic and advanced concepts of java and hands on experience in frameworks like Hibernate, Spring, SpringBoot, SQL & Android framework APIs. I love writing, architecting mobile apps front end and backend API's using spring framework. Also, I have extensive experience in developing enterprise apps from scratch, scaling the backend and maintaining the full stack. Last but not the least about me I very inquisitive person passionate about technology and try to have fun with awesome stuff in this developer world.

Updated on August 05, 2022

Comments

  • Saurabh
    Saurabh over 1 year

    I have installed Metrics Plguin 1.3.8 in eclipse 3.7 indigo.After intalling and giving my system a restart I cant see any Metrics option in Project properties.

    Any one have any idea on this.

  • A. Masson
    A. Masson over 9 years
    I have the same problem. Tried to remove metricsdb.db and .lg files did not work for me :-(
  • zaozaoer
    zaozaoer almost 5 years
    I am using "Version: 2018-12 (4.10.0) Build id: 20181214-0600", for some reason, I don't find a "net.sourceforge.metrics" under myWorkspace/.metadata/.plugins/ directory, however, I after updated to metrics2, the problem solved.