microsoft / microsoft/vscode-edge-devtools

Error while opening file in editor: No workspace mapping was found

Open
#748 5 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug tracked
Dominant language
TypeScript
Stars
828
Forks
359
Avg merge
20h 32m
Merged PRs (30d)
10

Description

Version:
1.4.2

OS:
MacOS Monterey Version 12.0.1

Stack :
Could not open document. No workspace mapping was found for 'http://localhost:3030/styles/index.css'.

Additional context:
I have two servers that running at the same time:

  • localhost:3030 which is for static files
  • localhost:3000 which is the main server that serves site

When i launching edge on localhost:3000 and after editing css ( with CSS Mirroring On ) these errors pop up:

An error occurred: Error while opening file in editor. Could not open document. No workspace mapping was found for 'http://localhost:3030/styles/index.css'.
Unable to open file in editor. http://localhost:3030/styles/index.css does not map to a local file.

I trying to serve static files on the same server localhost:3000 but that didn't work again.

I googled and i didn't found anything :(

This is my launch.json file:

{
  "configurations": [
    {
      "name": "Launch Edge",
      "request": "launch",
      "type": "vscode-edge-devtools.debug",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceFolder}/public/"
    }
  ]
}

Thanks for helping 🙏

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the launch.json configuration, especially url and webRoot, and reproduce the CSS Mirroring error with the localhost:3000 and localhost:3030 servers described. Trace how the extension handles the reported URL and workspace mapping; done means the stylesheet opens in the editor without either mapping error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.