emmetio / livestyle-sublime-old

Live bi-directional CSS edit of new generation
http://livestyle.emmet.io
260 stars 23 forks source link

2-way communication occasionally screws the CSS file... #112

Open MattHill72 opened 10 years ago

MattHill72 commented 10 years ago

Having another issue and actually, it may be 2 issues that are related...

Today I was editing the CSS file and watching my Live changes working - all was working well. Let's call that Amend 1.

I then quickly went to another rule to change the padding, (let's call that Amend 2) saved the CSS file and uploaded it. Suddenly my previous changes (Amend 1) had reverted back to how they were before I did anything. Sure enough I checked my CSS file and the changes I had spent half an hour doing had vanished. A few Undo's and they reappeared.

This has actually happened a few times. I'm not sure the exact way to repeat the issue but I'm fairly sure it has something to do with the 2-way communication between Chrome > Sublime LiveStyle.

Is there a way to switch OFF the Chrome > LiveStyle direction?

Secondly, I have noticed that sometimes when I am halfway through adding a new rule, the cursor will jump to the bottom of the CSS file and add the new rule in there. I think that this may also be to do with the Chrome > LiveStyle communication.

Does this make sense? Anyone else seeing this?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

devonmather commented 10 years ago

Just came here to post a similar issue. Often when working (especially on slow connections) this proves to be an ongoing problem. When I type something it will seem to not sync Chrome and Sublime Text correctly and this failure to sync causes Sublime Text to start removing and adding bits of css that I'm trying presently trying to write.

I generally have never found the two way communication useful (personally), it would be awesome if there was a checkbox in the Chrome LiveStyle settings to select if you want Chrome to write to the local stylesheet or not.

socialblogsite commented 10 years ago

I was using "Save CSS" and i had the same issues, so I bet it's this app's fault.

Sometimes I lost even hours, because the page didn't only get reverted to the last saved, but to the one in the remote server. I guess that won't happen here, because this extension also reloads the local copy, but I can tell you I found it out happening around commented code.

One way to know if it will happen is double click any line. If the the file scrolls a little, it already lost the changes, and it's populating the lines again, or it's slow or something. Anyway, any sign of the text being slow at filling the editor, populating or stuttering, I just keep clicking until the text doesn't move anymore and then copy everything, reload the page, and paste it back in if something seemed outdated. Even better, sometimes I even freaked out and compared the copied and local files in FileMerge.

I hope it gets fixed soon.

marsspider commented 9 years ago

Same issues... i noticed livestyle is linking my style.css 2 times in file mapping.. as if there are 2 separate css files (but there is only one.. ) Maybe this is the problem schermata 2014-10-15 alle 12 50 52