-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Spurious Inspector styleSheetAdded/styleSheetRemoved events causes live preview to stop working #6912
Comments
Looks similar to #6906. |
no before S-36, the same problem was there, |
I have seen this problem, but have never been able to reproduce it reliably. It would be awesome if you could provide a (simple as possible) set of files with a set of steps that causes problem every time. |
images ? |
which files should I provide you ? |
Need the actual html file and all related files. Then a step-by-step recipe of each action to take, and which file to edit, which rule, etc. |
Sir can I upload it here ? |
I'd prefer that link(s) was provided to file(s) or to a github gist(s) in case someone other than me wants to look at this, otherwise you can send them to me in a zip file at redmunds at adobe dot com. |
Sir, I have sent you the link at ur email address. |
I haven't received it. If it's a link then post it here. |
@MuhammadAliRashid OK, I downloaded your files, opened index.html, started Live Preview, edited the Please provide the steps that I need to take to cause CSS updating to stop working. Thanks. |
When I edit any property of CSS the the Live Preview stops ... |
If you've got Brackets still installed: |
What may seem like "any css property" may actually be a distinct pattern. Please give us a step by step list of changes that you are making. Which file? Which rule? What are the before and after values? Are you editing css style sheet directly or using inline editor? |
https://onedrive.live.com/redir?resid=77DA9C647A8DB1A3%212996 plz watch this video |
What app should I use for .ogv files? Can you post a video on youtube or vimeo? |
@redmunds I can watch it on Win using VLC Media Player. In the console I'm getting |
The I've been working on some Live Preview fixes in pull request #6889 - anyone who's having problems and can try out that branch please let me know your results (good, bad, or indifferent). |
It has something to do with the many images used in that project - as soon as I rename the folder into Unfortunately I can't try the PR branch until I'm home again, which will take a few hours from now. |
Ah, finally found the reason: |
My Linux crashed yesterday night :/ @SAplayer if I remove this import, everything will work fine ? |
It should, yes. But that's no solution. I meant this as a hint to the team what's going wrong/causing the issue. |
these imports are google fonts used in my project |
Is there an actual problem, or just a nasty sounding message in the console log (which is what I meant by "red herring") ? |
The problem is, it's no |
I would love to be able to reproduce this problem. Please provide a recipe that I can use with the provided files. I really don't want to install an app just to watch 1 video. |
I'll try.
Result: We were able to repro this on both Linux and Windows. |
Interesting. @MuhammadAliRashid @SAplayer what versions of chrome are you using? |
I'm using Chrome Stable 33.0.1750.117 m |
FYI based on what I saw in the video, the only relevant change I made for this bug (assuming they're not using Chrome 34) was this line https://github.com/adobe/brackets/pull/7008/files#diff-02116cf32f6e9db7008084a51a35dea8L477. This is pretty old code, but basically we always show the disconnected icon whenever we get ANY error message from the Inspector protocol. To be clear, it's just a visual status, nothing around live preview state actually changes and it's still effectively The existing behavior is way too aggressive. Also, since our callbacks should be handling errors directly (via I haven't been able to reproduce the reported behavior in master yet given the "Final year project" that was linked above. So at this point it's my best guess. |
Nevermind. Just got it to reproduce on master. When typing in a live CSS file, each time edits are sent over the Inspector protocol, the |
@jasonsanjose I can repro the issue again when adding this line back in your fix, but it does more than just changing a visual status. The changes aren't pushed any more. |
@SAplayer yep, you're right. My mistake. |
Updated the description of this issue to indicate the root cause of the "No style sheet with given id found, code: -32000" error message. |
I have downloaded new brackets but the problem remains same. |
The fix is not yet in the build available for download. |
Its really disturbing while working. |
when it will be available ? |
@MuhammadAliRashid You can try the proposed fix in the branch in pull request #7008. |
ok, since 3 hours I am working on my final year project and the brackets seems to work fine. I deleted all .js files and restarted the brackets, after 1 hour I noticed it was working fine. |
@MuhammadAliRashid if you're comfortable hacking your Brackets install, you can test this fix using the instructions here https://github.com/adobe/brackets/wiki/How-to-Hack-on-Brackets. @SAplayer would you like to verify and close this issue as well? |
Closing. Let us know if anyone is still seeing htis. |
UPDATE: @jasonsanjose
At some point, maybe due to the addition of
styleSheetAdded
andstyleSheetRemoved
http://src.chromium.org/viewvc/blink/trunk/Source/devtools/protocol.json?r1=148993&r2=148994&, the inspector protocol began to report a stylesheet as removed after we push our incremental changes from Brackets. The removal means thatCSSDocument
andCSSAgent
holds on to invalidstyleSheetId
values. Once thestyleSheetId
is out of sync, updates fail with the following error:Original:
Hi, I am using Linux Ubuntu 13.10 with Bracket sprint 36
this problem has occurred just recently,I dont know why ...
but I when edit my CSS the live preview stops.
is there any solution for this ??
a week ago it was working perfectly.
I have also disabled my all extension, but still the problem is not solved.
The text was updated successfully, but these errors were encountered: