Git Product home page Git Product logo

Comments (9)

mpeterson2 avatar mpeterson2 commented on July 25, 2024

I'm not getting this error on version 0.157.0. Do you mind updating and trying again? I don't believe anything has changed in their API for this since I wrote that part, so it shouldn't make a difference, but it's worth a try.

  1. If that doesn't work, what are the nondefault settings you have for save session?
  2. Is it happening every time you close a file (that can be saved) or just sometimes?
  3. Does it throw any errors when you click cancel or Don't Save?

from save-session.

jparkerweb avatar jparkerweb commented on July 25, 2024

Happening to me as well
Atom version 0.161.0
Save Session version 0.11.0

from save-session.

chetmurphy avatar chetmurphy commented on July 25, 2024

+1. Also happening to me.
Atom version 0.161.0
Save Session disabled [Update: but Atom not restarted - see next comment]

from save-session.

chetmurphy avatar chetmurphy commented on July 25, 2024

More info:

Steps: 1) Open a file and edit with Saved Session enabled. 2) Close file and choose Save.

File is not closed and Uncaught TypeError is thrown after a delay ~ 5 seconds. File is also not saved and attempting to close it again results in the same exception.

Restarting Atom with Saved Session disabled appears to fix the problem. Just disabling Saved Session does not fix the issue. Atom needs to be restarted with Saved Session disabled.

Atom version 0.162.0

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

Hmm. I still can't get this error to happen. Is there any chance one of you could debug this and find what the issue is?

from save-session.

chetmurphy avatar chetmurphy commented on July 25, 2024

On 12/19/2014 11:47 AM, Michael Peterson wrote:

Hmm. I still can't get this to work. Is there any chance you could
debug this?


Reply to this email directly or view it on GitHub
#34 (comment).

Hmm... It appears that the hack in save-prompt.coffee:21 to call
Pane.prototype.promptToSaveItem is not fully working. It does call
Pane.prototype.promptToSaveItem but the value of 'this' in
promptToSaveItem does not look like a panel object and this.saveItem is
undefined.

  1. this: Object
    1. activate: function () {
    2. addListeners: function () {
    3. defaultSavePrompt: function (item) {
    4. disable: function () {
    5. enable: function () {
    6. enableTemp: function () {
    7. proto: Object
      1. defineGetter: function defineGetter() { [native code] }
      2. defineSetter: function defineSetter() { [native code] }
      3. lookupGetter: function lookupGetter() { [native code] }
      4. lookupSetter: function lookupSetter() { [native code] }
      5. constructor: function Object() { [native code] }
      6. hasOwnProperty: function hasOwnProperty() { [native code] }
      7. isPrototypeOf: function isPrototypeOf() { [native code] }
      8. propertyIsEnumerable: function propertyIsEnumerable() {
        [native code] }
      9. toLocaleString: function toLocaleString() { [native code] }
        1. toString: function toString() { [native code] }
        2. valueOf: function valueOf() { [native code] }
        3. get proto: function proto() { [native code] }
        4. set proto: function proto() { [native code] }

--Chet

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

Is this still an issue?

from save-session.

chetmurphy avatar chetmurphy commented on July 25, 2024

No.

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

Okay cool. Going to close this than.

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.