[ISSUE] Terminal fails to launch, prevents local compile

I’ve been struggling all day to find an answer to this.
This is a new install of Particle Workbench and vscode on a windows 8.1, 64 bit system.
If I try to compile locally is get the following:

Executing task: make -f ‘C:\Users\paul.particle\toolchains\buildscripts\1.9.2\Makefile’ compile-user -s <

The terminal process command ‘C:\Users\paul.particle\toolchains\buildtools\1.1.1\bin\bash.exe -c ‘make -f ‘C:\Users\paul.particle\toolchains\buildscripts\1.9.2\Makefile’ compile-user -s’’ failed to launch (exit code: {2})

Attempting to just open a terminal window I get the same issue:

‘C:\WINDOWS\system32\cmd.exe’ failed to launch (exit code: {2})

so I’m guessing the latter is causing the former.
This is probably a vscode issue rather than something specific to workbench, but does anyone have any clues as to whats going wrong? I’m unfamiliar with VScode.

Frankly I’d rather use the web IDE, but the inability to alter the color scheme is a problem.

we’ll need the following info to help troubleshoot:

beyond that, a quick google search yielded:

…but i can’t vouch for any of the suggested work-arounds.

Unfortunately neither of your links yielded anything useful. Same as with all the references to this issue I found yesterday. I’ve spent half a day already searching the net for answers before posting here. If theres anything else I can do to facilitate finding a fix, please let me know.

Particle:Audit result below, deleted info marked [DELETED]




{
    "username": "[DELETED]",
    "workspace": {
        "name": "test",
        "isWorkspace": false,
        "folders": [
            {
                "location": "c:\\Users\\paul\\Desktop\\vstest\\test\\test",
                "hasValidPath": true,
                "settings": {
                    "firmwareName": "deviceOS",
                    "firmwareVersion": "1.4.4",
                    "targetDevice": "",
                    "targetPlatform": "photon",
                    "compileButtonAction": "localAppDeviceOS",
                    "flashButtonAction": "localAppDeviceOS",
                    "disableWelcomeScreen": false,
                    "disableLocalCompilerDirtyCheck": false,
                    "enableVerboseLocalCompilerLogging": false,
                    "compileDefines": [],
                    "customDeviceOSLocation": ""
                },
                "files": [
                    ".vscode",
                    ".vscode\\launch.json",
                    ".vscode\\settings.json",
                    "project.properties",
                    "README.md",
                    "src",
                    "src\\test.ino"
                ]
            }
        ]
    },
    "cli": {
        "binpath": "c:\\Users\\paul\\.vscode\\extensions\\particle.particle-vscode-core-1.9.0\\src\\cli\\bin\\windows\\amd64\\particle.exe",
        "ok": true,
        "version": "2.1.1",
        "installed": 1581290216778
    },
    "localCompiler": {
        "ok": true,
        "dependencies": [
            {
                "id": "deviceOS@1.5.0-rc.1",
                "ok": true
            },
            {
                "id": "gcc-arm@5.3.1",
                "ok": true
            },
            {
                "id": "buildtools@1.1.1",
                "ok": true
            },
            {
                "id": "buildscripts@1.9.2",
                "ok": true
            },
            {
                "id": "openocd@0.11.2-adhoc6ea4372.0",
                "ok": true
            },
            {
                "id": "deviceOS@1.4.4",
                "ok": true
            }
        ]
    },
    "platform": {
        "os": "windows",
        "type": "Windows_NT",
        "release": "6.3.9600",
        "arch": "x64",
        "path": {
            "key": "Path",
            "value": "C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\Python27\\Lib\\site-packages\\PyQt4;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files 

(x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) 

Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) 

Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\3.0\\bin\\x86;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\3.0\\bin\\x64;C:\\Program Files (x86)\\AMD\\ATI.ACE\\Core-Static;C:\\Program Files\

\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\

\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\

\130\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;C:\\Python27;C:\\Python27\\DLLs;C:\\Python27\\Scripts;C:\\Python27\\Lib\\site-packages\\vtk;C:\\Python27\\gnuplot\\binary;C:\\Program Files (x86)\\pythonxy\\SciTE-3.5.1-

4;C:\\Program Files (x86)\\pythonxy\\console;C:\\Program Files\\Git\\cmd;C:\\Users\\paul\\.dotnet\\tools;C:\\Users\\paul\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\;C:\\Users\\paul\\AppData\\Local\\Programs\

\Python\\Python36\\;C:\\Program Files\\ngsolve-v6.2.1712-1-g2ec071dc\\bin;C:\\Users\\paul\\AppData\\Roaming\\npm;C:\\Users\\paul\\AppData\\Local\\particledev\\bin;{\"properties\":{\"Status\":\"Success\"},\"event\":

\"Install Done\",\"context\":{\"os\":{\"name\":\"Windows\",\"version\":\". (64 bit)\"}},\"anonymousId\":\"bottlefrog\\\\paul S-1-5-21-74015700-1885335621-3437020396-1001\\r\\n\"};C:\\Users\\paul\\AppData\\Local\

\Programs\\Microsoft VS Code\\bin"
        },
        "homeDir": "C:\\Users\\paul",
        "particleDir": "C:\\Users\\paul\\.particle",
        "localCompilerToolchainDir": "C:\\Users\\paul\\.particle\\toolchains"
    },
    "env": {
        "ALLUSERSPROFILE": "C:\\ProgramData",
        "AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
        "APPDATA": "C:\\Users\\paul\\AppData\\Roaming",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "CommonProgramFiles": "C:\\Program Files\\Common Files",
        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
        "CommonProgramW6432": "C:\\Program Files\\Common Files",
        "COMPUTERNAME": "[DELETED]",
        "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
        "ELECTRON_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_6716_SUFYDSPZTNLPLHPV",
        "ELECTRON_RUN_AS_NODE": "1",
        "FP_NO_HOST_CHECK": "NO",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\paul",
        "KICAD_PTEMPLATES": "C:\\Program Files\\KiCad\\share\\kicad\\template",
        "KICAD_SYMBOL_DIR": "F:\\kicad\\share\\kicad\\library",
        "KICAD_TEMPLATE_DIR": "F:\\kicad\\share\\kicad\\template",
        "KISYS3DMOD": "F:\\kicad\\share\\kicad\\modules\\packages3d",
        "KISYSMOD": "F:\\kicad\\share\\kicad\\modules",
        "LOCALAPPDATA": "C:\\Users\\paul\\AppData\\Local",
        "LOGONSERVER": "\\\\MicrosoftAccount",
        "MGLS_LICENSE_FILE": "c:\\mentorgraphics\\license_files\\license.txt",
        "NETGENDIR": "C:\\Program Files\\ngsolve-v6.2.1712-1-g2ec071dc\\bin",
        "NUMBER_OF_PROCESSORS": "4",
        "OS": "Windows_NT",
        "Path": "C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\Python27\\Lib\\site-packages\\PyQt4;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files 

(x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) 

Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) 

Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\3.0\\bin\\x86;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\3.0\\bin\\x64;C:\\Program Files (x86)\\AMD\\ATI.ACE\\Core-Static;C:\\Program Files\

\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\

\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\

\130\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;C:\\Python27;C:\\Python27\\DLLs;C:\\Python27\\Scripts;C:\\Python27\\Lib\\site-packages\\vtk;C:\\Python27\\gnuplot\\binary;C:\\Program Files (x86)\\pythonxy\\SciTE-3.5.1-

4;C:\\Program Files (x86)\\pythonxy\\console;C:\\Program Files\\Git\\cmd;C:\\Users\\paul\\.dotnet\\tools;C:\\Users\\paul\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\;C:\\Users\\paul\\AppData\\Local\\Programs\

\Python\\Python36\\;C:\\Program Files\\ngsolve-v6.2.1712-1-g2ec071dc\\bin;C:\\Users\\paul\\AppData\\Roaming\\npm;C:\\Users\\paul\\AppData\\Local\\particledev\\bin;{\"properties\":{\"Status\":\"Success\"},\"event\":

\"Install Done\",\"context\":{\"os\":{\"name\":\"Windows\",\"version\":\". (64 bit)\"}},\"anonymousId\":\"bottlefrog\\\\paul S-1-5-21-74015700-1885335621-3437020396-1001\\r\\n\"};C:\\Users\\paul\\AppData\\Local\

\Programs\\Microsoft VS Code\\bin",
        "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW",
        "PIPE_LOGGING": "true",
        "PROCESSOR_ARCHITECTURE": "AMD64",
        "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 60 Stepping 3, GenuineIntel",
        "PROCESSOR_LEVEL": "6",
        "PROCESSOR_REVISION": "3c03",
        "ProgramData": "C:\\ProgramData",
        "ProgramFiles": "C:\\Program Files",
        "ProgramFiles(x86)": "C:\\Program Files (x86)",
        "ProgramW6432": "C:\\Program Files",
        "PSModulePath": "C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\PowerShell\\Modules\\;C:\\Program Files\\WindowsPowerShell\\Modules\\;C:\

\Program Files (x86)\\Microsoft SDKs\\Azure\\PowerShell\\ResourceManager\\AzureResourceManager\\;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\PowerShell\\ServiceManagement\\;C:\\Program Files (x86)\\Microsoft SDKs\

\Azure\\PowerShell\\Storage\\",
        "PUBLIC": "C:\\Users\\Public",
        "PYTHONPATH": "C:\\Program Files\\ngsolve-v6.2.1712-1-g2ec071dc\\lib\\site-packages;.",
        "SESSIONNAME": "Console",
        "SystemDrive": "C:",
        "SystemRoot": "C:\\WINDOWS",
        "TEMP": "C:\\Users\\paul\\AppData\\Local\\Temp",
        "TMP": "C:\\Users\\paul\\AppData\\Local\\Temp",
        "USERDOMAIN": "BOTTLEFROG",
        "USERDOMAIN_ROAMINGPROFILE": "BOTTLEFROG",
        "USERNAME": "paul",
        "USERPROFILE": "C:\\Users\\paul",
        "VBOX_MSI_INSTALL_PATH": "C:\\Program Files\\Oracle\\VirtualBox\\",
        "VERBOSE_LOGGING": "true",
        "VS140COMNTOOLS": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\",
        "VSCODE_CWD": "C:\\Users\\paul\\AppData\\Local\\Programs\\Microsoft VS Code",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\f4c74f624cd294edee0ab9076d8324e9-1.42.0-main-sock",
        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-c4d41cc5-3146-470e-8622-82e1248fef71-sock",
        "VSCODE_LOGS": "C:\\Users\\paul\\AppData\\Roaming\\Code\\logs\\20200211T082954",
        "VSCODE_LOG_STACK": "false",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\paul\\AppData\\Roaming\\Code\\CachedData\\ae08d5460b5a45169385ff3fd44208f431992451",
        "VSCODE_PID": "6716",
        "WDIR_PADSVX_0": "C:\\PADS Projects",
        "windir": "C:\\WINDOWS"
    },
    "versions": {
        "node": "12.4.0",
        "v8": "7.6.303.31-electron.0",
        "uv": "1.29.1",
        "zlib": "1.2.11",
        "brotli": "1.0.7",
        "ares": "1.15.0",
        "modules": "73",
        "nghttp2": "1.38.0",
        "napi": "4",
        "llhttp": "1.1.3",
        "http_parser": "2.8.0",
        "openssl": "1.1.0",
        "cldr": "35.1",
        "icu": "64.2",
        "tz": "2019a",
        "unicode": "12.1",
        "electron": "6.1.6"
    },
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "c:\\Users\\paul\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "machineId": "872e790c4699edb3c2a64366c7db1cd12eb54022ec9ad278eb3097857b660e7d",
        "sessionId": "a90c7c33-1bb9-40e4-ae79-a8b29e4998651581363358153",
        "version": "1.42.0"
    },
    "extensions": [
        {
            "id": "ms-vscode.node-debug",
            "version": "1.42.0"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.42.1"
        },
        {
            "id": "ms-vscode.references-view",
            "version": "0.0.47"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.3.4"
        },
        {
            "id": "moozzyk.Arduino",
            "version": "0.0.4"
        },
        {
            "id": "ms-vscode.azure-account",
            "version": "0.8.8"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "0.26.3"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.9.0"
        },
        {
            "id": "particle.particle-vscode-pack",
            "version": "1.9.0"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.9.0"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.9.0"
        },
        {
            "id": "steveyin.arduino-vscode",
            "version": "0.2.2"
        },
        {
            "id": "vsciot-vscode.azure-iot-edge",
            "version": "1.20.0"
        },
        {
            "id": "vsciot-vscode.azure-iot-toolkit",
            "version": "2.15.0"
        },
        {
            "id": "vsciot-vscode.azure-iot-tools",
            "version": "0.3.0"
        },
        {
            "id": "vsciot-vscode.vscode-iot-device-cube",
            "version": "0.1.4"
        },
        {
            "id": "vsciot-vscode.vscode-iot-workbench",
            "version": "0.11.0"
        }
    ]
}



This path looks odd. there is a backslash missing between paul and .particle

Which line? I can’t seem to find it …

Oh FFS! Its Malwarebytes blocking the cmd window.
Now I have to find a way to let the two co-exist. Turning off AV is not an option.

Update: For anyone else encountering this issue, open
Malwarebytes| Settings | Allow list
and add the VS code folder, which for me was in
C:\Users…\AppData\Local\Programs\Microsoft VS Code

2 Likes

ah, freakin’ antivirus :man_facepalming: i should have guessed. i’ll add it to the issue report post here:

glad you got things sorted out - apologies for the bumps :pray: