microsoft / vscode-edge-devtools

A VSCode extension that allows you to use browser devtools from within the editor. The devtools will connect to an instance of Microsoft Edge giving you the ability to alter CSS styling, perform diagnostics, and debugging. Get it now at http://aka.ms/devtools-for-code
https://docs.microsoft.com/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension
MIT License
757 stars 263 forks source link

Cannot read properties of undefined (reading 'fsPath') #2410

Open darknoon opened 2 months ago

darknoon commented 2 months ago

Environment (please complete the following information):

Describe the bug: I just installed this extension for the first time and tried to run it. This is the error I encountered.

Repro steps: Command Palette → "Microsoft Edge Tools: Open Browser"

Command 'Microsoft Edge Tools: Open Browser with DevTools' resulted in an error Cannot read properties of undefined (reading 'fsPath')

Screenshot 2024-09-09 at 12 36 18 PM

Expected behavior: Runs browser

Additional context:

AB#53838982

hannaofsweden commented 2 months ago

Getting this too.

captainbrosset commented 2 months ago

Thank you for filing. I will add this to our dev team's backlog.

mistcat commented 2 months ago

I too have this error

btippett commented 2 months ago

Same issue here. M1 Mac running Sequoia. All apps installed with Homebrew.

VS Code Version: 1.93.1 Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 24.0.0

Microsoft Edge Tools for VS Code v2.1.6

Microsoft Edge Version 129.0.2792.52 (Official build) (arm64)

Extension Settings "vscode-edge-devtools.browserArgs": [] "vscode-edge-devtools.browserFlavor": "Default", "vscode-edge-devtools.defaultEntrypoint": "index.html", "vscode-edge-devtools.defaultUrl": "about:blank" "vscode-edge-devtools.headless": true "vscode-edge-devtools.hostname": "localhost" "vscode-edge-devtools.pathMapping": { "/": "${workspaceFolder}" }, "vscode-edge-devtools.port": 9222, "vscode-edge-devtools.showWorkers": false, "vscode-edge-devtools.sourceMapPathOverrides": { "webpack:///./": "${webRoot}/", "webpack:///src/": "${webRoot}/", "webpack:///": "", "webpack:///./~/": "${webRoot}/node_modules/", "webpack://": "${webRoot}/", "meteor://💻app/": "${webRoot}/" }, "vscode-edge-devtools.sourceMaps": true, "vscode-edge-devtools.timeout": 10000, "vscode-edge-devtools.useHttps": false, "vscode-edge-devtools.userDataDir": true, "vscode-edge-devtools.webhint": true, "vscode-edge-devtools.webhintInstallNotification": true, "vscode-edge-devtools.webRoot": "${workspaceFolder}"

hannaofsweden commented 2 months ago

Here is the error output. I'm also on Mac M1 and Sequoia.

2024-09-29 21:22:48.183 [error] TypeError: Cannot read properties of undefined (reading 'fsPath') at Qh (/Users/johannajohansson/.vscode/extensions/ms-edgedevtools.vscode-edge-devtools-2.1.6/out/extension.js:2:1509346) at /Users/johannajohansson/.vscode/extensions/ms-edgedevtools.vscode-edge-devtools-2.1.6/out/extension.js:2:1507207 at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:161:210554) at h.$executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:161:211414) at y.S (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:5968) at y.Q (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:5734) at y.M (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:4767) at y.L (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:3602) at i.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:2297) at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:732) at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:949) at a.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:14463) at i.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:184:8635) at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:732) at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:949) at a.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:14463) at MessagePortMain. (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:184:6761) at MessagePortMain.emit (node:events:519:28) at MessagePortMain.emit (node:domain:488:12) at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2619) vscode-edge-devtools-view.launchHtml {"value":"ms-edgedevtools.vscode-edge-devtools","_lower":"ms-edgedevtools.vscode-edge-devtools"}

diasm3 commented 1 month ago

same here please

KevinRohn commented 1 month ago

same here

deanMike commented 2 weeks ago

Is there any news on this bug? I'm getting it with a fresh install on my Mac as well. I already had Edge installed before installing the extension if that matters