Eclipse Outline View is empty

前端 未结 16 984
轮回少年
轮回少年 2021-02-04 08:15

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 vie

16条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 09:00

    I had the problem with my Eclipse PDT 3.2.0 and I fixed it by correcting something that apparently threw off the content parser. How I found it:

    1. Only one file was affected, so the outline was not in itself broken.
    2. When I deleted the whole content of the class and just left the bones of it, the outline started showing things (well an empty class), so it was something with the content.
    3. Then I went through the functions of the class and deleted one function after another until it started working which gave me the function that broke it.
    4. I ended up basically deleting line after line until I ended up looking at something funny:

      throw(new Something_Exception($msg));

    When I deleted the outer parens (on all three occurrences of this), the outline came back to life.

提交回复
热议问题