Launching an Electron app blocks the devtool bar to open #8417

Open
opened 2026-01-31 01:29:01 +00:00 by claunia · 0 comments
Owner

Originally created by @jchomarat on GitHub (May 21, 2020).

Environment

Windows build number: windows 10.0.19041.0
Windows Terminal version (if applicable): 1.0.1401.0

Any other software?

Steps to reproduce

This is an extremely weird bug ...

Create an electron app using the package.json below

{
    "name": "app",
    "version": "0.0.1",
    "description": "",
    "main": "app.js",
    "scripts": {
      "start": "electron app.js"
    },
    "author": "xx",
    "license": "MIT",
    "private": true,
    "devDependencies": {
      "electron": "^8.3.0",
    }
}

then add app.js

import { app, BrowserWindow, ipcMain } from "electron";
app.allowRendererProcessReuse = true;

app.on('ready', async () => {
    const window = new BrowserWindow(
    { 
        width: 800, 
        height: 600, 
        frame: true,
        webPreferences: {
        nodeIntegration: true,
        devTools: true
        }
    }
    );
      window.webContents.openDevTools({
        mode: "right",
        activate: true
      });
});

Launching the app will never open the dev tools. I have tried with embed PowerShell Core 7.0.1 and CMD. And it was working with the latest preview version of the Window Terminal.

When I however launch the same app from the PowerShell Core 7.0.1 terminal, it works

Expected behavior

Dev tool bar must open

Actual behavior

It does not

Originally created by @jchomarat on GitHub (May 21, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: windows 10.0.19041.0 Windows Terminal version (if applicable): 1.0.1401.0 Any other software? ``` # Steps to reproduce This is an extremely weird bug ... Create an electron app using the package.json below ``` { "name": "app", "version": "0.0.1", "description": "", "main": "app.js", "scripts": { "start": "electron app.js" }, "author": "xx", "license": "MIT", "private": true, "devDependencies": { "electron": "^8.3.0", } } ``` then add app.js import { app, BrowserWindow, ipcMain } from "electron"; app.allowRendererProcessReuse = true; ``` app.on('ready', async () => { const window = new BrowserWindow( { width: 800, height: 600, frame: true, webPreferences: { nodeIntegration: true, devTools: true } } ); window.webContents.openDevTools({ mode: "right", activate: true }); }); ``` Launching the app will never open the dev tools. I have tried with embed PowerShell Core 7.0.1 and CMD. And it was working with the latest preview version of the Window Terminal. When I however launch the same app from the PowerShell Core 7.0.1 terminal, it works # Expected behavior Dev tool bar must open # Actual behavior It does not
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 01:29:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8417