Syntax, Analysis, Generation buttons in Eclipse don't appear in new project
When creating a new Spoofax project in a new workspace, the Syntax, Analysis and Generation buttons in the Eclipse toolbar don’t appear for any file until Eclipse is restarted.
- Start Eclipse, load a brand new workspace
- Create a new Spoofax project.
- Build it.
The Syntax, Analysis and Generation buttons are not shown for any file. Not for files of the target language, nor for SDF, NaBL or TS files. Restarting Eclipse solves this. I’m using: Spoofax 18.104.22.168-s41731.Submitted by D. Pelsmaeker on 27 June 2014 at 11:10
I encountered this as well in the Spoofax hands-on tutorial we gave at CodeGeneration 2014. Attendees had to restart their Eclipse again after installing Spoofax.
In my case Spoofax is already installed. Every time I have to restart Eclipse again after creating a new Spoofax project in a new workspace.
It is probably related to the empty workspace.
This will position the menus somewhat more to the left in the toolbar. The menus are based on Eclipse’ commands framework, but this new framework doesn’t seem to support custom positioning as well yet as the deprecated actions framework. I’ve tried different things, but they all give problems. Menus are now at the ‘default’ position such that they should always show up.
They even show up now when working with multiple Eclipse windows, but there are still some other problems there (menus don’t always refresh properly when switching between two editors that reside in different windows).
Log in to post comments