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

electron-forge-start --vscode #1484

Closed
elmcrest opened this issue Feb 9, 2020 · 1 comment
Closed

electron-forge-start --vscode #1484

elmcrest opened this issue Feb 9, 2020 · 1 comment

Comments

@elmcrest
Copy link

elmcrest commented Feb 9, 2020

example launch.json did work for me on Windows 10 but didn't work on Catalina.

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Electron Main",
            "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-nix",
            "windows": {
              "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-win.cmd"
            },
            "runtimeArgs": [
              "foo",
              "bar"
            ],
            "cwd": "${workspaceFolder}"
          }
    ]
}

editing electron-forge-vscode-nix seems to solve the issue:
from:

7: node $DIR/../../../@electron-forge/cli/dist/electron-forge-start --vscode -- \~$ARGS\~

to:

7: node $DIR/../@electron-forge/cli/dist/electron-forge-start --vscode -- \~$ARGS\~

so the full file which works for me is:

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

ARGS=$@
ARGS=${ARGS// /\~ \~}

node $DIR/../@electron-forge/cli/dist/electron-forge-start --vscode -- \~$ARGS\~
@elmcrest elmcrest added the bug label Feb 9, 2020
@malept
Copy link
Member

malept commented Feb 10, 2020

Duplicate of #1369.

@malept malept closed this as completed Feb 10, 2020
@malept malept added duplicate and removed bug labels Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants