Giter Club home page Giter Club logo

Comments (17)

coder3101 avatar coder3101 commented on May 10, 2024 1

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.

caretaker-claire avatar caretaker-claire commented on May 10, 2024

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.

ouuan avatar ouuan commented on May 10, 2024

Also, the file is not saved when compiling.

from cpeditor.

coder3101 avatar coder3101 commented on May 10, 2024

Fixed in 2.0.2

from cpeditor.

ouuan avatar ouuan commented on May 10, 2024

This happens again in 2.0.3

(I don't know why, but I can't find the "Reopen" button.)

from cpeditor.

ouuan avatar ouuan commented on May 10, 2024

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.

coder3101 avatar coder3101 commented on May 10, 2024

Point noted. I might have missed it while fixing other. A patch release today shall fix it.

from cpeditor.

coder3101 avatar coder3101 commented on May 10, 2024

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.

ouuan avatar ouuan commented on May 10, 2024

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.

coder3101 avatar coder3101 commented on May 10, 2024

If your PR is merged you will become contributor.

from cpeditor.

coder3101 avatar coder3101 commented on May 10, 2024

After Line 866, in file : src/mainwindow.cc add openFile->flush();

from cpeditor.

ouuan avatar ouuan commented on May 10, 2024

If your PR is merged you will become contributor.

Maybe I meant I couldn't be a collaborator.

from cpeditor.

ouuan avatar ouuan commented on May 10, 2024

I'm installing Qt now for testing.

from cpeditor.

coder3101 avatar coder3101 commented on May 10, 2024

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.

ouuan avatar ouuan commented on May 10, 2024

I just found that saving when opening a new session also has a bug. So I want to test it.

from cpeditor.

coder3101 avatar coder3101 commented on May 10, 2024

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.

ouuan avatar ouuan commented on May 10, 2024

OK, I will open a PR then.

from cpeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.