feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.12k stars 49 forks source link

SmaCC: Grammar view missing productions #4105

Open joelreymont opened 1 month ago

joelreymont commented 1 month ago

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

j-brant commented 1 month ago

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.

joelreymont commented 1 month ago

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

joelreymont commented 1 month ago

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

j-brant commented 1 month ago

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

joelreymont commented 1 month ago

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.

j-brant commented 1 month ago

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

joelreymont commented 1 month ago

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

joelreymont commented 1 month ago

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.

j-brant commented 1 month ago

They should show if they are filtering: image

joelreymont commented 1 month ago

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?