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
If you don't install the clang-format,the code will be cleared when you use the code format. #195
Comments
Please follow the template. |
I can't reproduce it on my machine, so your steps to reproduce and your environment are important. |
The template: **Describe the bug**
<!-- A clear and concise description of what the bug is. -->
**To Reproduce**
<!-- Steps to reproduce the behavior. -->
**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->
**Environment**
<!-- Your environment is usually important for finding the cause of the bug. -->
<!-- You can get the CP Editor version by clicking `Help`->`Build Info` in the GUI. -->
- OS: [e.g. Windows 10 / Ubuntu 18.04]
- CP Editor Version: [e.g. 6.0.2]
**Additional context**
<!-- Add any other context about the problem here. -->
|
@WYWFlash Yes this does happen. On windows, try removing the clang-format from path and you can see that it deletes the code, you can however undo it. |
I've found the reason, |
This fixes #195. `QProcess::exitCode()` is invalid when the process is not finished, I checked only the `QProcess::exitCode()` but not whether it has finished, thus made an undefined behavior, and result in this bug.
@allcontributors add @WYWFlash as a contributor for bug report. |
I've put up a pull request to add @WYWFlash! 🎉 |
No description provided.
The text was updated successfully, but these errors were encountered: