emmetio / livestyle-sublime-old

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

Error #136

Open rooc opened 9 years ago

rooc commented 9 years ago

Just tried to add stylesheet and got this

[15:30] Can’t diff: no previous state for

Ubuntu, sublime 3

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7026494-error?utm_campaign=plugin&utm_content=tracker%2F305388&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F305388&utm_medium=issues&utm_source=github).
sergeche commented 9 years ago

Please try new alpha: http://livestyle.emmet.io/alpha/

rooc commented 9 years ago

I know, this is the version I'm talking about

http://screencloud.net/v/ktAM

sergeche commented 9 years ago

Can you post a screenshot with error log and opened LiveStyle popup?

rooc commented 9 years ago

http://screencloud.net/v/lZaQ http://screencloud.net/v/a4dw

sergeche commented 9 years ago

Can you open background.html page as described here? http://livestyle.emmet.io/alpha/#error-reporting And screenshot of log from that page

rooc commented 9 years ago

http://screencloud.net/v/3262

rooc commented 9 years ago

Don't know if it relevant but I have stylebot extension which can override site styles and in this case there are styles for that particular site which I try to style with Livestyle

sergeche commented 9 years ago

From that screenshot I see it works fine for stylesheet from typekit. And it seems like it doesn’t work for user stylesheets? I’ll check this use case later

sergeche commented 9 years ago

Can you try to reload page and see if other updates are applied to your custom stylesheet?

rooc commented 9 years ago

nope, same here

sergeche commented 9 years ago

Can you post stylesheet file you’re working with in editor?

rooc commented 9 years ago

https://www.dropbox.com/s/bxrjt05uwzlan00/pocket.css?dl=0

sergeche commented 9 years ago

Hmm, doesn’t look like a complex CSS, might be an issue with user stylesheet

sergeche commented 9 years ago

Please update both Chrome and Sublime Text plugins, this issue should be fixed

rooc commented 9 years ago

pulled plugin from repo removed and installed again chrome extension from http://download.emmet.io/livestyle-alpha.crx

same story

sergeche commented 9 years ago

Can you post errors screenshots?

rooc commented 9 years ago

http://screencloud.net/v/xKm8 http://screencloud.net/v/124U http://screencloud.net/v/yGpj

sergeche commented 9 years ago

Can you describe, step-by-step, what you did in browser and editor?

rooc commented 9 years ago
sergeche commented 9 years ago

Just pushed update, do you still have this issue?

rooc commented 9 years ago

yep, the same

http://screencloud.net/v/iCuL http://screencloud.net/v/AZ5W

sergeche commented 9 years ago

Can youb open ST console and check if there are errors?

rooc commented 9 years ago

http://screencloud.net/v/haGU

sergeche commented 9 years ago

No, everything seems fine.

Here’s what this problem means. You have an untitled file in ST which is treated by LiveStyle as CSS/LESS/SCSS (wrong syntax?). LiveStyle tries to save initial state of this file but it can’t be parsed (so initial state is not saved). And when you edit this untitled file, LS tries to diff current state against initial one and you receive this error.

Does it makes sense with your editor setup?

rooc commented 9 years ago

Not sure that I understood what you're saying. My file is readability.css, (/mnt/Chest/Dropbox/Data/StyleBot/readability.css) you can see it in the screen, so it is not untitled, syntax is usual CSS. Can this problem be somehow related to write access? Maybe my folder should have rights to wrtie files to everyone?

sergeche commented 9 years ago

Can you post a screenshot of your ST? LiveStyle doesn’t use file system (it only reads preprocessor dependencies and never writes anything)

rooc commented 9 years ago

http://screencloud.net/v/uyYc

sergeche commented 9 years ago

Hmm, that’s very strange... I’ll check it on ST on Ubuntu

rooc commented 9 years ago

Yep, and when I worked with previous version of LiveStyle I did more or less the same procedure and it worked

rooc commented 9 years ago

I've tried it today at home and it works. There was the same error message but it started working