Comments (17)
Don't look into size. Right click and open the file in notepad. It should be saved. If not then tell me is it the save that is triggered after compilation or normal save.
from cpeditor.
Hi ouuan
Thanks for Opening a new Issue here. I will also thank you for strictly following the Issue Templates.
I will add an appropriate tag to your Issue.
Have Patience, One of our Cool Contributors will help you soon.
from cpeditor.
Also, the file is not saved when compiling.
from cpeditor.
Fixed in 2.0.2
from cpeditor.
This happens again in 2.0.3
(I don't know why, but I can't find the "Reopen" button.)
from cpeditor.
Don't look into size. Right click and open the file in notepad. It should be saved. If not then tell me is it the save that is triggered after compilation or normal save.
Both compilation and normal save work well, but autosave doesn't.
from cpeditor.
Point noted. I might have missed it while fixing other. A patch release today shall fix it.
from cpeditor.
Hey @ouuan ,
Do you mind fixing this issue yourself and become a contributor. Here is what to do to fix the issue.
In the file named mainwindow.cpp, there will be a function named onSaveTimerTriggered
(or something similar). Inside will be a line
openFile->write(...);
add a new line after this :
openFile->flush();
It will fix the issue, and send a PR with commit message "fixes #14".
from cpeditor.
Hey @ouuan ,
Do you mind fixing this issue yourself and become a contributor. Here is what to do to fix the issue.
In the file named mainwindow.cpp, there will be a function named
onSaveTimerTriggered
(or something similar). Inside will be a line
openFile->write(...);
add a new line after this :
openFile->flush();
It will fix the issue, and send a PR with commit message "fixes #14".
I'm not familiar with C++ projects with GUI, and I think I would make mistakes when trying to contribute. I'm not going to learn about this in the near future, so perhaps I can't be a contributor.
However, since you have told me how to fix this issue, I can open a PR to fix it.
from cpeditor.
If your PR is merged you will become contributor.
from cpeditor.
After Line 866, in file : src/mainwindow.cc add openFile->flush();
from cpeditor.
If your PR is merged you will become contributor.
Maybe I meant I couldn't be a collaborator.
from cpeditor.
I'm installing Qt now for testing.
from cpeditor.
There is no need to download and test it yourself unless if you have good Internet speed. But if you want to be very sure about it then as you wish.
from cpeditor.
I just found that saving when opening a new session also has a bug. So I want to test it.
from cpeditor.
Adding that line should fix the issue, the changes to file are buffered and not committed unless flushed. Like interactive problem in CF, flushing makes sure that changes have been written back to file.
from cpeditor.
OK, I will open a PR then.
from cpeditor.
Related Issues (20)
- 代码移动 HOT 1
- Additional Themes HOT 1
- Enhancing IDE Editor: Autocomplete Code and Suggestions Functionality HOT 1
- 支持文件输入输出
- Failed to start running. Please compile first HOT 2
- Keybinding HOT 3
- Commented curly braces will be matched. HOT 1
- Take Input from file HOT 3
- 关于CP Editor内置特殊评测器的 bug HOT 1
- Filename when saving needs to match the full problem name HOT 1
- Add a default snippet HOT 4
- Add the option whether enable ctrl+roller to change editor font size HOT 4
- Please improve the appearance. It looks a little bit old. HOT 5
- Failed to start compilation:
- Kotlin HOT 1
- Add word count in find
- Python Auto Identation HOT 1
- bug HOT 1
- bracket auto completion doesn't work
- [Request] Support for VIM key bindings and for use of ALT to move line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpeditor.