Eclipse Outline View is empty

前端 未结 16 1010
轮回少年
轮回少年 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 08:57

    I had the same issue with eclipse oxygen today and the reason was the missing scala library in the scala project. the problem is reported in the eclipse problems tab: "Unable to find a scala library. Please add the scala container or a scala library jar to the build path."

    The solution for me, that let the outline to be filled as well, has been:

    • on the eclipse Project menu, select Properties
    • select the Java Build Path item and then the Libraries path
    • press the Add Library button, then select Scala Library
    0 讨论(0)
  • 2021-02-04 08:59

    If you don't want to delete all your perfs, here's my solution:

    • close eclipse

    • open the file at path:

    workspace\.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jst.jsp.ui.prefs

    • search the keyword:"outline and delete those lines.
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-04 09:01

    The same problem, Kepler Service Release 1, PDT 3.2.0.

    Solution: I deleted the whole content of the class and saved file. Outline started. I restored content of the class and outline is OK.

    0 讨论(0)
提交回复
热议问题