Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Error when attempting live preview with CSS file using a base URL #3197

Open
core-ai-bot opened this issue Aug 29, 2021 · 5 comments

Comments

@core-ai-bot
Copy link
Member

Issue by jasonsanjose
Wednesday Apr 10, 2013 at 17:48 GMT
Originally opened as adobe/brackets#3403


  1. Create a project, host it on a server, and specify a base url
  2. Open a CSS file in the project and open Live Preview
  3. See console output
Uncaught TypeError: Cannot read property 'file:///Users/jasonsj/Github/brackets/samples/root/Getting%20Started/main.css' of undefined LiveDevelopment/Agents/CSSAgent.js:70
styleForURL LiveDevelopment/Agents/CSSAgent.js:70
CSSDocument LiveDevelopment/Documents/CSSDocument.js:76
_createDocument LiveDevelopment/LiveDevelopment.js:318
_openDocument LiveDevelopment/LiveDevelopment.js:331
doLaunchAfterServerReady LiveDevelopment/LiveDevelopment.js:607
f.Callbacks.n jquery-1.7.min.js:2
f.Callbacks.o.add jquery-1.7.min.js:2
f.extend.Deferred.h.then jquery-1.7.min.js:2
open LiveDevelopment/LiveDevelopment.js:704
_handleGoLiveCommand LiveDevelopment/main.js:129
onGoLive LiveDevelopment/main.js:138
@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Wednesday Apr 10, 2013 at 18:16 GMT


Sprint 22 behavior is to look for an index.html in the same directory and open that URL in the browser. This change appears to come from 0ad0aa9 in pull #3218.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Wednesday Apr 10, 2013 at 18:28 GMT


@jasonsanjose Should I back out that change? It's only affects the extension written by@jrowny but this seems worse.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Wednesday Apr 10, 2013 at 18:35 GMT


It's part@jrowny and part me from my fixes last night. We create the CSSDocument before the agents have loaded now. I'll have a fix soon.

@core-ai-bot
Copy link
Member Author

Comment by pthiess
Wednesday Apr 10, 2013 at 18:56 GMT


Added Sprint 23 label.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Wednesday Apr 10, 2013 at 21:34 GMT


Since Jason fixed the bug, I'm closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant