Giter Club home page Giter Club logo

Comments (8)

mdwhatcott avatar mdwhatcott commented on June 28, 2024

You're not crazy, I've seen this too @mholt. Either it's a server bug or sublime is touching the file multiple times per save...

from goconvey.

mdwhatcott avatar mdwhatcott commented on June 28, 2024

@mholt @joliver Ok, this may sound crazy but I think I've figured this out and it has nothing to do with the server code. Open the keyboard settings in "System Preferences" and move the "Key Repeat" slider to "Off". Then start up your server and save a watched file several times (using Command-S), leaving a break between saves long enough for the tests to complete. Then move the slider to "Fast" and go back to the terminal and save the watched file (again with the keyboard shortcut). I've noticed that if I linger on that command even for the slighted amount of time I get two file events and therefore two save operations which result in two separate test runs. But this only happens when I have Key Repeat enabled. I've also saved several times using the mouse to select "Save" from the menu and have never seen two saves in succession. I'd love to see if you get the same behavior with the settings I've described. If we can verify this then I probably need to add a delay in which events are just ignored (which is what I thought the code was doing) to get around this issue because I like my key repeat very fast...
screen shot 2013-10-22 at 9 35 57 pm

from goconvey.

joliver avatar joliver commented on June 28, 2024

Remember when I ran touch somefile?
On Oct 22, 2013 9:38 PM, "Michael Whatcott" [email protected]
wrote:

@mholt https://github.com/mholt @joliver https://github.com/joliverOk, this may sound crazy but I think I've figured this out and it has
nothing to do with the server code. Open the keyboard settings in "System
Preferences" and move the "Key Repeat" slider to "Off". Then start up your
server and save a watched file several times (using Command-S), leaving a
break between saves long enough for the tests to complete. Then move the
slider to "Fast" and go back to the terminal and save the watched file
(again with the keyboard shortcut). I've noticed that if I linger on that
command even for the slighted amount of time I get two file events and
therefore two save operations which result in two separate test runs. But
this only happens when I have Key Repeat enabled. I've also saved several
times using the mouse to select "Save" from the menu and have never seen
two saves in succession. I'd love to see if you g et the same behavior with
the settings I've described. If we can verify this then I probably need to
add a delay in which events are just ignored (which is what I thought the
code was doing) to get around this issue because I like my key repeat very
fast...
[image: screen shot 2013-10-22 at 9 35 57 pm]https://f.cloud.github.com/assets/202910/1387382/3edae006-3b94-11e3-9597-8661600028a8.png


Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-26878400
.

from goconvey.

mdwhatcott avatar mdwhatcott commented on June 28, 2024

@joliver oh yeah... hmmm...

from goconvey.

mdwhatcott avatar mdwhatcott commented on June 28, 2024

@joliver I'm not seeing that right now. touch results in one save only for me.

from goconvey.

mdwhatcott avatar mdwhatcott commented on June 28, 2024

@joliver Wait, I just realized that I had modified the code for my tests, I may have found the bug...

from goconvey.

mdwhatcott avatar mdwhatcott commented on June 28, 2024

Alas, I can't figure out why sometimes I get single saves and sometimes I get doubles. I'll have this solved in the rewrite of the server...

from goconvey.

mdwhatcott avatar mdwhatcott commented on June 28, 2024

@mholt @joliver Hooray! Fixed! 137ac0a

from goconvey.

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.