-
Notifications
You must be signed in to change notification settings - Fork 267
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
Error while opening CSS file in editor #787
Error while opening CSS file in editor #787
Comments
Forgot to mention (if that matters), that I use Wampserver (64-bit) to run the project locally. |
I'm having a simliar issue on my Mac, though I'm using
Here's my
OS: VS Code info:
Local Extensions: Edge is
|
Thank you! |
I am still having this exact same issue. I cannot tell if this is user-error, since the issue looks like it should be resolved. Or if it is regression. |
Problem description
I have a project
ecalendar-admin-panel
running onhttp://ecalendar-admin-panel:80
. The web root (or "docroot" or whatever) is pointing toecalendar-admin-panel/public
folder. Just for clarity, when I go tohttp://ecalendar-admin-panel:80
in my browser, I actually request files fromecalendar-admin-panel/public
folder.I use "Launch Edge" configuration to use Edge DevTools. My
launch.json
looks like this:I start a debugging session by pressing this button:
And when clicking on
styles.css
in "Edge DevTools" panel I get two errors:An error occurred: Error while opening file in editor. Could not open document. No workspace mapping was found for 'http://ecalendar-admin-panel/css/styles.css'..
Unable to open file in editor. http://localhost/css/styles.css does not map to a local file.
Additional info
I've also tried some other
launch.js
configurations, none of which worked, like:"webRoot": "C:/<fullpath>/ecalendar-admin-panel/public/"
"webRoot": "${workspaceFolder}/public"
- No forward slash at the end."pathMapping": { "/": "${workspaceFolder}/public/", "http://ecalendar-admin-panel/": "${workspaceFolder}/public/", }
I've also created a folder and a file
css/styles.css
in project root folder (ecalendar-admin-panel/css/styles.css
) just to test that and then Edge DevTools forwarded me to that file, when I clicked styles.css (i.e. it did work!). But I need Edge DevTools to open the actualecalendar-admin-panel/public/css/styles.css
file.Suggestion
If I configured everything properly, then "webRoot" and "pathMapping" parameters are ignored by the extension.
The text was updated successfully, but these errors were encountered: