mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.17k stars 106 forks source link

Budo won't GET my modified js files #145

Open kliang3 opened 8 years ago

kliang3 commented 8 years ago

when I run the following:

budo browser.js:bundle.js --dir examples --host $npm_package_config_demo_host -o --port $npm_package_config_demo_port --live -- -t envify

Budo, at times, does not GET 200 my modified JS files, as a result I cannot see the changes I have made. Is there someway to bypass this?

mattdesl commented 8 years ago

I'm not sure what you mean exactly. Can you put together a test case showing the problem?

mightyiam commented 7 years ago

I seem to have a test case here.

@yarom82, this seems to be what we have encountered with budo.

  1. Clone https://github.com/mightyiam/budo-serving-old .
  2. npm install
  3. budo index.js
  4. Open the link in Google Chrome.
  5. Open Chrome's DevTools and set the debugger to pause on exceptions.
  6. Refresh. The debugger should now be paused on this error. Don't resume execution.
  7. Fix the error by adding the missing g in dependency.js and save this file.
  8. While the debugger has execution paused, refresh the page. We get the same version of the file, with the error, and naturally, the execution is paused on it again.

Observation 1: this doesn't seem to occur when the error is in the entry file. But, please check for yourself. Observation 2: this doesn't seem to occur when the debugger is not breaking on the error (either because it isn't set to break on exceptions or because DevTools are not open).

Observation 3:

  1. The debugger did break on the error.
  2. You fixed the error while execution is paused.
  3. You did not refresh. You allowed execution to resume and finish.
  4. You ordered a refresh. Now it did get the fixed version.