Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmaCC: Grammar view missing productions #4105

Open
joelreymont opened this issue Oct 18, 2024 · 10 comments
Open

SmaCC: Grammar view missing productions #4105

joelreymont opened this issue Oct 18, 2024 · 10 comments

Comments

@joelreymont
Copy link

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
Copy link
Member

j-brant commented Oct 18, 2024

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
Copy link
Author

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

@joelreymont
Copy link
Author

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
Copy link
Member

j-brant commented Oct 18, 2024

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

@joelreymont
Copy link
Author

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
Copy link
Member

j-brant commented Oct 18, 2024

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

@joelreymont
Copy link
Author

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

@joelreymont
Copy link
Author

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
Copy link
Member

j-brant commented Oct 18, 2024

They should show if they are filtering:
image

@joelreymont
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants