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.

To reproduce

  1. Start Eclipse, load a brand new workspace
  2. Create a new Spoofax project.
  3. 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 1.2.0.0-s41731.

Submitted by D. Pelsmaeker on 27 June 2014 at 11:10

On 27 June 2014 at 13:41 Gabriël Konat commented:

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.


On 27 June 2014 at 13:45 D. Pelsmaeker commented:

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.


On 27 June 2014 at 14:13 Gabriël Konat commented:

It is probably related to the empty workspace.


On 27 June 2014 at 18:01 Oskar van Rest commented:

Fixed with https://github.com/metaborg/spoofax/commit/0609c8a23826b8e156dc2126c5b96be91d4c8871

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).


On 27 June 2014 at 18:01 Oskar van Rest closed this issue.

On 4 November 2014 at 15:15 Gabriël Konat tagged 1.3

On 4 November 2014 at 15:15 Gabriël Konat tagged error

Log in to post comments