Git Product home page Git Product logo

Comments (10)

mpeterson2 avatar mpeterson2 commented on July 25, 2024

I've been trying to get this to happen, but I'm not seeing this issue. Can you list the settings you have unchecked?

from save-session.

jptannus avatar jptannus commented on July 25, 2024

Everything is checked and all values are set to default. I can reproduce this on my notebook and on my office computer. As far as changes on Atom settings I just changed tab related ones.

What else can I do to help?

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

Do you have a project open? Are there any errors in the console?

from save-session.

jptannus avatar jptannus commented on July 25, 2024

I could reproduce it with a project open and without. I don't have it here right now. Getting home I'll check the console, forgot about it

from save-session.

jptannus avatar jptannus commented on July 25, 2024

Nothing in the console =\

from save-session.

jptannus avatar jptannus commented on July 25, 2024

I tried to debug here in files.coffee:

     buffer.text = editor.buffer.cachedText

The editor.buffer.cachedText is null. I added some logs and could see that the editor.buffer.cachedText value was correct. Files.coffee code appears to be running before the editor actually caches the text.

from save-session.

jptannus avatar jptannus commented on July 25, 2024

I added at files.coffee at line 74 a timeout to wait a little before calling the "save" method. And it worked. The 300ms delay they say here https://atom.io/docs/api/v0.141.0/TextEditor#instance-onDidStopChanging are not enough I think.

Well I'm new to Atom, so I don't know the best way to deal with this, but at least I could find the problem :D

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

Weird. I can't get this to work, but at least you found it. I could probably add an option for additional delay time. I'm not sure how else to solve this since it seems to work for other people.

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

Fixed in a4546a8.

Let me know if that doesn't work out for you.

from save-session.

jptannus avatar jptannus commented on July 25, 2024

It worked. 300ms were good enough. Maybe my computer is slower or maybe that is a bug in Atom. But anyway thanks!

from save-session.

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.