-
Notifications
You must be signed in to change notification settings - Fork 5
Crash on Saving Malformed YAML Syntax Config #28
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
Comments
One way to fix the "if u forget to add the required keyword " is to try and catch exception and continue working on the next rules for eg take a look at this video . 2025-04-07.23-29-46.mp4 |
I love it. I think this is a good way to solve this problem, yes. |
Added the fix for #28 and also added a if condition to check validity of the color
Describe the bug
When editing a YAML syntax config file, the application crashes if the formatting isn't right and you save the file. It could be if you forget to add an escape character, forget to add a required keyword in the YAML file, or forget to close your ending quotation mark.
To Reproduce
Steps to reproduce the behavior:
config/cpp.syntax.yaml
Expected behavior
To prevent the app from crashing, we should have a mechanism that catches the error and displays an error message instead. Maybe even point out where the problem may be coming from.
Desktop:
hint: The catching mechanism should be implemented probably here:
CodeAstra/src/Syntax.cpp
Line 31 in 29e0742
The text was updated successfully, but these errors were encountered: