adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.24k stars 7.63k forks source link

CSS updating not working #6363

Open hypertraxx opened 10 years ago

hypertraxx commented 10 years ago

Hee,

My HTML pages 'live' update as I hit save, however they do not update live as shown in the video. My css pages update only on manual refresh, sometimes they update 'live'.

Yes, I'm using a external style sheet.

Console CSS error: No style sheet with given id found Object {code: -32000, message: "No style sheet with given id found"} /LiveDevelopment/LiveDevelopment.js:480 Console HTML error: ConsoleAgent: Failed to load resource: the server responded with a status of 404 (Not Found) /LiveDevelopment/Agents/ConsoleAgent.js:52 ConsoleAgent: Uncaught SyntaxError: Unexpected token var

Project tree: Site folder > css > app.css Site folder > index.html

Site url: http://127.0.0.1:61225/site%20folder/index.html

Chrome: Latest Brackets: Sprint 35 Machine: Intel I7, 12GB Ram, Nvidia 560GTX 2x, Windows 8.0 64bit.

redmunds commented 10 years ago

@dangoor #5774 is a similar bug (code: -32000) assigned to me that I have not yet dug into. Any ideas on what that code means?

hypertraxx commented 10 years ago

I'm not quite sure what you mean mate.

redmunds commented 10 years ago

@hypertraxx It's a question for one of the other devs. No worries :)

dangoor commented 10 years ago

@redmunds Offhand, I don't know what that means. It sounds like something to do with the way stylesheets are tracked for replacement by the live preview code, but I'm not as familiar with that (I've done most of my live preview work on HTML and JS).

hypertraxx commented 10 years ago

@redmunds Oo, well if you're one of the developers, great job creating this tool. I really appreciate the concept and it's currently replacing my older web-dev tools.

redmunds commented 10 years ago

@hypertraxx Do you have a page that reproduces the problem? The files for the other bug I have is very complicated, so if you could post a link of something relatively simple I would greatly appreciate it.

hypertraxx commented 10 years ago

@redmunds Well it's an offline page and for security reasons it must stay offline--for now. However the live preview didn't work at all today, until I disabled the firewall. So the problem is in the app/firewalls/localserver? Heres a screenshot of the error log I get now with firewall disabled:

ss 2014-01-08 at 08 15 25

Every time I edit something on my html page and save it, it shows the last visible error (404?). I really don't understand what the problem is. Btw this happens with all my websites and even brand new websites. If you'd like, I can make a video about my issue and post it here.

redmunds commented 10 years ago

This is different from the other bug I referred to. Does your page have any references to external resources that are being blocked by the firewall?

peterflynn commented 10 years ago

The GET error at top looks like a firewall is Brackets process from connecting to the Chrome remote debugging URL. It's a somewhat similar issue to #6282 if that's the case.

njx commented 10 years ago

Marking medium priority. It does seem plausible that it's related to #5774, but we don't have enough info to really dupe it out, I think.