gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

SmaCC: Grammar view missing productions

Open joelreymont opened this issue 1 year ago • 11 comments

Note OtherDef in the Source view.

Screenshot 2024-10-18 at 11 02 51 AM

Note the absence of OtherDef in the list of productions of the Grammar view, even though I can drill down into it.

Screenshot 2024-10-18 at 11 03 18 AM

joelreymont avatar Oct 18 '24 08:10 joelreymont

Can you post the screenshot of the whole view? I can't see if you have a filter that is hiding some of the items.

j-brant avatar Oct 18 '24 10:10 j-brant

I have gotten out of this state and did not have filters enabled.

joelreymont avatar Oct 18 '24 10:10 joelreymont

It happened again and I got proper screenshots this time around.

My PatternExpr has gone missing.

Screenshot 2024-10-18 at 4 13 17 PM

It's not an issue of filtering being enabled, though.

Screenshot 2024-10-18 at 4 13 46 PM

And it resets back to the way it should be

Screenshot 2024-10-18 at 4 15 27 PM

once I kill the SmaCC Coder and re-open it

Screenshot 2024-10-18 at 4 15 44 PM

joelreymont avatar Oct 18 '24 13:10 joelreymont

Did you make some changes in the source view and then switch to the grammar view?

j-brant avatar Oct 18 '24 14:10 j-brant

No, I didn't. I very rarely use the Source view now.

Apart from these, I now see my tokens disappear periodically with just the productions left.

I haven't had time to troubleshoot this but do let me know if you have any suggestions.

joelreymont avatar Oct 18 '24 14:10 joelreymont

The Production, Token & Directive buttons under the search input filter show only those items.

j-brant avatar Oct 18 '24 14:10 j-brant

I don't use these buttons and only stay in productions.

joelreymont avatar Oct 18 '24 14:10 joelreymont

The SmaCC Coder starts in a mode where all 3 buttons are disabled, i.e. there's no filtering.

I think it may be getting into a Production filter mode, somehow.

joelreymont avatar Oct 18 '24 14:10 joelreymont

They should show if they are filtering: image

j-brant avatar Oct 18 '24 15:10 j-brant

Just discovered that

  1. All 3 buttons are not active by default, and
  2. The effect of this is the same as when all 3 are active.

Is this the way it's meant to be?

joelreymont avatar Oct 18 '24 15:10 joelreymont

Is there anything to do about this issue @j-brant ?

girba avatar Apr 03 '25 19:04 girba

I was never able to reproduce this, but the filtering of the rules was changed to use the coder filters so hopefully you don't have the problem any more.

j-brant avatar Aug 25 '25 14:08 j-brant