Comments (10)
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.
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.
Do you have a project open? Are there any errors in the console?
from save-session.
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.
Nothing in the console =\
from save-session.
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.
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.
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.
Fixed in a4546a8.
Let me know if that doesn't work out for you.
from save-session.
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)
- content-to-restore isn't erased when an unsaved window is closed
- Is this still working with atom v1.2.1 ? HOT 11
- Uncaught SyntaxError: Unexpected token b
- do not work on os x HOT 1
- Re-deprecate save-session HOT 2
- can not save session HOT 3
- Can this saves file when I stops typing?
- Is there anything in Atom that makes this package possible now? HOT 1
- does not work osx
- Doesnt work on win10
- Uncaught SyntaxError: Unexpected end of JSON input HOT 1
- Uncaught SyntaxError: Unexpected token u in JSON at position 0 HOT 1
- Should not be depricated HOT 3
- Uncaught TypeError: this.promptToSaveItem(...).then is not a function HOT 10
- Multiple tabs Session save
- MAC OS X: Unable to close temp tab
- Uncaught SyntaxError: Unexpected token r in JSON at position 56
- Uncaught Callback must be a function HOT 7
- Uncaught TypeError: invalid options argument HOT 10
- Uncaught TypeError: Callback must be a function. Received undefined
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 save-session.