-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Live Preview Error - Chrome 34 removes CSS.getAllStylesheets() command #6830
Comments
I encountered the same problem Using: |
I have the same problem as you guys. Using: |
Does anyone have a (hopefully simple) set of files that reproduces this problem? @Den-dp Try stable Chrome if Canary isn't working |
No specific set of files, but on a group of turn-on/turn-off it happens to drop sporadically. It's sporadic. Happens without extensions too. |
I played around with Live Preview today, and I found a way to reproduce this problem. The general recip is to create a page with 1 or more stylesheets, but do not
Does this sound like it fits the description of what anyone was doing? Note: I also hit the exception described in pull request #6433 several times, so I'll continue with that one. |
I think I've gotten this even on the Getting Started project, but I'll pay attention next time to make sure. (Your case sounds a lot like what's in citrus completed - if you can reliably reproduce your case, it seems like it should be reliable on citrus completed as well?) |
I can attest to getting that error in some circumstances, though not with @imported styles. |
Yes, I can also reproduce same recipe in citrus completed site. I make no claim that this is the only way to reproduce problem. But, it's a simple & reproducible case that may help discover & solve the more general problem. Another case I discovered that generates a lot of nasty looking messages in console is when typing file names in |
@redmunds Any suggestions how can I tell the Bower to launch Google Chrome instead of Canary? Notice that Google Chrome is default browser in my OS. |
Brackets looks for stable Chrome -- I'm not sure how it's using Canary for you. If you're on Windows, then read this section of the Troubleshooting Guide which has the Registry key. Otherwise, which OS are you on? |
Yes I'm using Windows. The problem is that Chrome Canary overwrites this variable whenever the update begins. I found an unresolved bug so it looks like a dead end… https://code.google.com/p/chromium/issues/detail?id=312092 UPDATE: this is being tracked by #7062 |
@Den-dp This sound like a separate issue. Please open a new issue to track this. |
Oh boy. I updated the description at the top of this issue. Chrome removed the
See correction #6830 (comment) |
@redmunds in case this wasn't on your radar yet. See my updated desc. |
Yikes! Not sure if this needs to be done for Release 37, but setting to High Priority to get this on team's radar. |
Yikes indeed. We should jump on this ASAP. @jasonsanjose - do those events exist in pre-34 Chrome? Also, could there be a race condition where we might miss one of those events while we're connecting? (I don't remember the live dev code well enough to know.) Nominating - tagging @jadbox but I'll send email as well. |
Also...do we have any confidence that these other CSS-domain events/methods will remain? |
The 2 events were introduced here in April 2013 http://src.chromium.org/viewvc/blink/trunk/Source/devtools/protocol.json?r1=148993&r2=148994&. Haven't figured out how to map that to a Chrome release number. They reference bug https://code.google.com/p/chromium/issues/detail?id=233588. |
BTW...34 is probably beta now (Canary looks like it's at 35, and I think there was just an update - my stable Chrome is at 33). So this is pretty urgent. |
@njx For this particular case, there should be no race condition. We setup our agents ( |
@fagnercarvalho @Den-dp @thany @hyingreborn If any of you who commented on this bug is comfortable hacking their brackets setup, you can now try the bug fix from master. Instructions are here https://github.com/adobe/brackets/wiki/How-to-Hack-on-Brackets. @SAplayer since you did some testing on #6912, would you like to verify and close this issue too? |
I still see the issue with Chrome 34, even with #7008 applied to master. |
@oslego Currently, you will see that message once and then it's suppressed, but everything should work correctly. We're trying to figure out how to determine the version of Chrome being used and suppress it for version >= 34. Otherwise, I think we should just always suppress it. |
Tested and working fine in Chrome 35.0.1870.2! |
@redmunds how do you feel about closing this bug and opening a new one to detect the protocol version so that we can avoid attempting to call deleted APIs? Like I said before, the protocol itself doesn't provide a method to get the version. We would have to start mapping the Chrome userAgent somehow. Or just move to the client side live preview implementation already... |
@jasonsanjose I agree this issue should be closed and a new one created for other issue. |
Closing. Created new issue #7127. |
Actually closing :) |
Sorry for this disconcerting message. Starting with Brackets Sprint 37 and Chrome 34, it indicates that API was not found, but Brackets switches to a different API. So, you can ignore this message. Are you having any other problems than the message itself? |
I am not seeing any CSS changes happen. HTML change and even the HMTL/CSS highlights are working, but the CSS changes are not pushing over. Maybe this is a separate issue? |
Make sure that you use File > Open Folder... to select a folder that contains both your HTML and CSS file. Does that fix it? |
Unfortunately it does not fix it. :( |
Please open a new issue and provide a (simple as possible) example of an HTML page with CSS that illustrates the problem. Thanks. |
I tried setting up a super simple test with a .html/.css relationship and it worked perfectly. I went back to my project with the issue and tried (again) reloading without extensions, restarting my machine, etc....no joy. FINALLY, I decided to try retyping the Just wanted to have a solution here in case others run across a similar issue. Thanks for your hard work on the project! This is a fantastic tool. :) |
Thanks @jonsuther I was having the same problem. Retyping the style sheet location fixed it! |
I've encountered some problems with Edit: I've forgotten to metion: |
@Skysplit This issue has been closed, and there doesn't seem to be an issue open on the broken link problem. Can you open a new issue with steps on how to reproduce the problem you are seeing? |
Thank you for response. #7895 |
Update from @jasonsanjose
@thany reported in the comments below the behavior with Chrome 34. On further review, Chrome has removed
getAllStylesheets()
from the API, see rev http://src.chromium.org/viewvc/blink/trunk/Source/devtools/protocol.json?revision=166228.Original Report
Using base URL with httpster and github pages or using the default.
Developer console:
Using:
Windows 8 Pro
Brackets Sprint 36
The text was updated successfully, but these errors were encountered: