Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Outline View is empty

Tags:

eclipse

A simple one today. My Outline view in eclipse does not show me any methods or fields anymore. I have selected the few options that are available in the outline view menu to show me everything possible but still nothing.

If I right click in the class editor and select Quick Outline I get the info that used to appear in the Outline view. What gives?!

Any help?

Thanks

EDIT: i now just use IntelliJ!

like image 946
Dori Avatar asked Dec 14 '11 12:12

Dori


People also ask

How do I enable an outline in eclipse?

To manually open the view, go to Window | Show View | Other | PHP Tools | Outline.


2 Answers

Apparently the reason for this problem is that the DLTK (Dynamic Languages ToolKit) index is borken.

Following Five tips for speeding up Eclipse PDT and nWire, I have closed Eclipse, and only deleted the h2 database (*.db) files in <workspace>/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2/.

When restarting Eclipse, the databases files are created again, and after that the Outline View is working again. IIRC, this is the second time that I had this problem (first with Eclipse 3.7.x and now 4.2) and that this solution worked for me.

like image 63
PointedEars Avatar answered Oct 04 '22 00:10

PointedEars


I solved this in the end by just deleting my Workspaces .metadata folder (rm -rf .metadata OSX). I lost any workspace settings but this for was a few formatting rules, refs to projects (just imported them again) and some custom key shortcuts.

My outline works again!

like image 37
Dori Avatar answered Oct 03 '22 22:10

Dori