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

[Feature Request] Duplicated name and illegal characters check #762

Open
ONLYA opened this issue Sep 17, 2022 · 1 comment
Open

[Feature Request] Duplicated name and illegal characters check #762

ONLYA opened this issue Sep 17, 2022 · 1 comment

Comments

@ONLYA
Copy link
Contributor

ONLYA commented Sep 17, 2022

Sometimes when I copy and paste the widget's name, I easily forget to add more letters to make it different, which causes the silent crash without any warnings when running. It took me about 30 minutes to find out the issue.

Illegal characters like () can cause problems when running.

I hope the duplicate name and illegal character checks can be added to the tool. Those will be quite useful for people to get away from some strange errors.

@sodevel
Copy link
Member

sodevel commented Sep 26, 2022

I'm afraid this is not easy to do.

wxFB can generate output for different languages and apparently these have different rules about identifiers. I remember someone was using chinese characters for generating Python output which was apparently legit but definately is not possible for C++.

Duplicate names are also difficult, depending on scope identical names might be allowed. Also, some components define a name attribute but don't use it in the generated code.

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