-
Notifications
You must be signed in to change notification settings - Fork 6
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- Go to
config/cpp.syntax.yaml - Update one of the regex by removing the ending quotation mark, for example.
- Save the file, then open a C++ file
- The app should crash
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:
- OS: MacOS, Linux
hint: The catching mechanism should be implemented probably here:
Line 31 in 29e0742
| void Syntax::loadSyntaxRules(const YAML::Node &config) |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done