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

IDE treats {} brackets as code when they're inside a String, char or comment. #444

Closed
velaachlorine opened this issue Mar 10, 2022 · 3 comments

Comments

@velaachlorine
Copy link

When putting a { or a } on a comment, String, or char, the IDE complains of a missing bracket.
The program compiles fine when this happens, but it prevents most other errors from showing up, making it annoying to debug other code, and it's very hard to spot when the project is large.

image
image
If it helps, this is Processing 4.0b6 and I'm on Windows 10.

@sampottinger
Copy link
Collaborator

Will take a look thanks @velaachlorine!

sampottinger added a commit that referenced this issue Jun 21, 2022
Remove old code from before the new preproc which tries to check for curly braces which may have some issues.
sampottinger added a commit that referenced this issue Jun 21, 2022
It looks like there's still some left over regex parsing to check for missing braces from before the new preproc. The new preproc will catch the error and testing makes it look like this old regex check is not triggering anyway outside of comments (which is an issue reported in #444).
@benfry
Copy link
Owner

benfry commented Jul 25, 2022

Should be resolved in beta 9 which will have the fix from Sam.

@benfry benfry closed this as completed Jul 25, 2022
@github-actions
Copy link

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants