Outline only contains 'foo' (1)
The in-place outline view (that is opened by Ctrl + O in an editor) only displays a tree of ‘foo’. The tree appears to have the correct structures but instead of for example rule names it just displays many ’foo’s. See attached screenshot.
Submitted by Vlad Vergu on 15 January 2013 at 13:09
- The outline view proper show the correct names
- This applies for all Spoofax languages, except for WebDSL maybe
- This does not seem to depend on Eclipse version
- This problem is old
- This problem did not always exist, i.e. things worked at a certain stage
- This is reproducible in current nightly
Attachments
Issue Log
The “foo” comes from
return "foo"
in https://svn.strategoxt.org/repos/StrategoXT/spoofax-imp/trunk/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/dynamicloading/DynamicLabelProvider.java
I think this is caused by two (i.e. one too many) instances of
DynamicLabelProvider
being created for a single editor. One is probably properly initialised, while another is not and the checklanguage !=null
fails in theisInitialized()
method. The question is why there are two of these being created.
I am pretty sure I broke this in rev24759. My goal was to prepare the code for getting labels by applying a strategy defined in an esv file.
Worked-around in r25894 by disabling the r24759 change set.
Log in to post comments