-
Notifications
You must be signed in to change notification settings - Fork 7.6k
live development from user-specified base url does not work #3372
Comments
@jasonsanjose can you take a look? I'm sitting on a beach and don't have access to a computer this week. Thanks! |
Tagging Sprint 23 & assigning so it doesn't slip off the radar |
Also, we should figure out why there was no unit test failure for this. |
FBNC back to @joelrbrandt. |
@RaymondLim This is probably why you could not get server-side smokes working for PHP file. |
@jasonsanjose This doesn't seem to be fixed for me. I'm on mac using the shell from the Sprint 22 build, and I'm at 3551e40 in Brackets. Here's what I did to repro (and the results):
Let me know if you need any more info to repro. |
Also, I'm not sure how this bug got closed. I think maybe because the commit message said "Fix" and then the issue number? |
@joelrbrandt I think the bug got auto-closed. I just merged this fix an hour ago, so be sure to pull the latest from master. |
Was the URL "http://localhost:8080/" or "http://localhost:8080/index.html"? I don't know how that would happen, but I thought I would check. Also, what Chrome version are you on? I tried to reproduce using the built-in mac web server and creating a simple index.html at the root and couldn't reproduce.
|
@jasonsanjose "http://localhost:8080/" is the base URL I put in the dialog in Brackets. "http://localhost:8080/index.html" is the URL that showed up in the browser after clicking live development. I'm on Chrome 27.0.1453.15 beta Yes, I get lots of errors in the console! See the screen shot below: Also, I put the citrus cafe website on my machine's built-in Apache server to make sure the port number wasn't screwing up our logic. So, I specified a base URL of "http://localhost/citrus/" and got a URL in the browser of "http://localhost/citrus/index.html". I got exactly the same errors as above. |
@jasonsanjose Aha! I switched to the stable release of Chrome (26.0.1410.63) and I don't experience the problem anymore. So... looks like we've got trouble headed our way. What should we do with this bug? |
Let's close this bug assuming the fix looks good to you on Chrome 26 and re-open a new Chrome 27 bug. |
Filed #3402. Will try to reproduce on windows. |
Okay, this bug looks fixed to me. Thanks! Closing. I'll add repro steps to #3402 as well. |
Live development no longer works with a user-specified base url.
83190c9 brought code into LiveDevelopment.js that calls _serverProvider.setRequestFilterPaths on any server provider. However, when the user specifies a base url, a different server provider is used (UserServerProvider, defined in LiveDevelopment.js). This provider does not have the necessary interface.
Based on a really quick read of the code, it seems to me that setRequestFilterPaths code should be specific to the StaticServerProvider. So, I'm exactly sure why this code is in LiveDevelopment.js. But I could easily be misunderstanding something.
Even if I add a no-op setRequestFilterPaths function to UserServerProvider, live development still doesn't work correctly. It never fully connects, and every time I switch files, a new tab is opened in Chrome.
cc @gruehle since it looks like he added the setRequestFilterPaths call to LiveDevelopment.js
The text was updated successfully, but these errors were encountered: