Visual Studio Workbench

On Workbench, now, when I select particle: “Compile application local” I receive a message to select the properties, then it says “could not find task…”

Yesterday I could do it, I could select the device from the bottom bar, I could flash from the top bar.
Today all is gone and I do not understand how to recover this.

Not only, my code when compiled yesterday is plenty of errors today.
I tried to reset the environment. No changes…

Hey @ParticleD or @m_m , any insight you could provide on this?

I pinged m_m about this internally a little while ago.

hey there @jmjobin :wave:

thanks for trying workbench :+1:

can you run the Particle: Audit Environment command and share the non-sensitive portions of the report it generates here?

sounds like things were working at one point - do you recall any changes you may have made to your local environment that could account for the change (ex: updated VSCode, updated Workbench extensions, other)?

can you also please provide the steps required to reproduce the issue as described over here: Information: How to report bugs and provide feedback

for future reference, we have a category dedicated to the Particle Workbench over here: https://community.particle.io/c/particle-workbench

@m_m.
Following the audit. Do not understand if you want all but here below.

Also Workbench ask me to download the toolchain and when I say yes it says it failed doing it.

Thanks you to help
Jean-Marc

{
   "username": "...@....ch",
   "workspace": {
       "name": "test_xenon",
       "isWorkspace": false,
       "folders": []
   },
   "cli": {
       "binpath": "C:\\Users\\..\\.vscode\\extensions\\particle.particle-vscode-core-1.2.2\\src\\cli\\bin\\windows\\amd64\\particle.exe",
       "ok": true,
       "version": "1.39.0",
       "installed": 1552583950080
   },
   "localCompiler": {
       "dependencies": [
           "deviceOS@1.0.1",
           "gcc-arm@5.3.1",
           "buildtools@1.0.1",
           "buildscripts@1.2.0",
           "openocd@0.10.0-particle.1"
       ]
   },
   "platform": {
       "os": "windows",
       "type": "Windows_NT",
       "release": "10.0.16299",
       "arch": "x64",
       "path": {
           "key": "Path",
           "value": "C:\\Perl64\\site\\bin;C:\\Perl64\\bin;C:\\Program Files (x86)\\ELO Java Client\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Bluetooth Command Line Tools\\bin;C:\\MinGW\\bin;D:\\Go\\bin;D:\\Program Files\\Microsoft VS Code\\bin;d:\\Program Files\\Git\\cmd;D:\\Program Files\\Git\\bin;D:\\Program Files\\nodejs\\;C:\\Users\\...\\.windows-build-tools\\python27\\Scripts;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf5x\\bin\\;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\dfu-util;C:\\Users\\...\\.windows-build-tools\\python27\\;D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;C:\\Users\\....\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules\\.bin;C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\.bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\\\Users\\\\....\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python37;D:\\Python\\Python37\\Scripts\\;D:\\Python\\Python37\\;C:\\Users\\....\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\....\\go\\bin;C:\\Users\\....\\AppData\\Roaming\\npm;D:\\Program Files\\Fiddler;C:\\OpenSSL-Win32\\bin"
       },
       "homeDir": "C:\\Users\\...",
       "particleDir": "C:\\Users\\....\\.particle",
       "localCompilerToolchainDir": "C:\\Users\\...\\.particle\\toolchains"
   },
   "env": {
       "ALLUSERSPROFILE": "C:\\ProgramData",
       "AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
       "APPDATA": "C:\\Users\\....\\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": ".....",
       "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
       "ELECTRON_RUN_AS_NODE": "1",
       "GOPATH": "D:\\Go\\GoWorkspace",
       "GOROOT": "D:\\Go\\",
       "GYP_MSVS_VERSION": "2015",
       "HOMEDRIVE": "U:",
       "HOMEPATH": "\\",
       "HOMESHARE": "\\\\........ch\\user\\....",
       "LANG": "German",
       "LOCALAPPDATA": "C:\\Users\\....\\AppData\\Local",
       "LOGONSERVER": "\\\\......",
       "NRFGOSTUDIOPATH": "C:\\Program Files (x86)\\Nordic Semiconductor\\nRFgo Studio",
       "NUMBER_OF_PROCESSORS": "8",
       "OneDrive": "C:\\Users\\....\\OneDrive",
       "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
       "OS": "Windows_NT",
       "Path": "C:\\Perl64\\site\\bin;C:\\Perl64\\bin;C:\\Program Files (x86)\\ELO Java Client\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Bluetooth Command Line Tools\\bin;C:\\MinGW\\bin;D:\\Go\\bin;D:\\Program Files\\Microsoft VS Code\\bin;d:\\Program Files\\Git\\cmd;D:\\Program Files\\Git\\bin;D:\\Program Files\\nodejs\\;C:\\Users\\...\\.windows-build-tools\\python27\\Scripts;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf5x\\bin\\;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\dfu-util;C:\\Users\\....\\.windows-build-tools\\python27\\;D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules\\.bin;C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\.bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\\\Users\\\\....\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python37;D:\\Python\\Python37\\Scripts\\;D:\\Python\\Python37\\;C:\\Users\\...\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\...\\go\\bin;C:\\Users\\...\\AppData\\Roaming\\npm;D:\\Program Files\\Fiddler;C:\\OpenSSL-Win32\\bin",
       "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
       "PIPE_LOGGING": "true",
       "PROCESSOR_ARCHITECTURE": "AMD64",
       "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 94 Stepping 3, GenuineIntel",
       "PROCESSOR_LEVEL": "6",
       "PROCESSOR_REVISION": "5e03",
       "ProgramData": "C:\\ProgramData",
       "ProgramFiles": "C:\\Program Files",
       "ProgramFiles(x86)": "C:\\Program Files (x86)",
       "ProgramW6432": "C:\\Program Files",
       "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
       "PUBLIC": "C:\\Users\\Public",
       "set": "PYTHON=D:\\Python\\Python37\\python.exe",
       "SMARTRFSTUDIO7PATH": "C:\\Program Files (x86)\\Texas Instruments\\SmartRF Tools\\SmartRF Studio 7",
       "SRFPROG": "C:\\Program Files (x86)\\Texas Instruments\\SmartRF Tools\\Flash Programmer\\bin",
       "SRFPROG2": "C:\\Program Files (x86)\\Texas Instruments\\SmartRF Tools\\Flash Programmer 2\\bin",
       "SystemDrive": "C:",
       "SystemRoot": "C:\\WINDOWS",
       "TEMP": "C:\\Temp",
       "TMP": "C:\\Temp",
       "UATDATA": "C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",
       "USERDNSDOMAIN": ".....CH",
       "USERDOMAIN": "....",
       "USERDOMAIN_ROAMINGPROFILE": "....",
       "USERNAME": "...",
       "USERPROFILE": "C:\\Users\\....",
       "VERBOSE_LOGGING": "true",
       "VS140COMNTOOLS": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\",
       "VSCODE_CWD": "D:\\Program Files\\Microsoft VS Code",
       "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
       "VSCODE_IPC_HOOK": "\\\\.\\pipe\\642bd1ed5b727b50abadc1d68cb58103-1.32.3-main-sock",
       "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-dbb00496-955d-48e1-8ab0-27321548f697-sock",
       "VSCODE_LOGS": "C:\\Users\\...\\AppData\\Roaming\\Code\\logs\\20190318T115511",
       "VSCODE_LOG_STACK": "false",
       "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
       "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\...\\AppData\\Roaming\\Code\\CachedData\\a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4",
       "VSCODE_PID": "5840",
       "VSCODE_PREVENT_FOREIGN_INSPECT": "true",
       "windir": "C:\\WINDOWS",
       "__COMPAT_LAYER": "Installer"
   },
   "versions": {
       "http_parser": "2.8.0",
       "node": "10.2.0",
       "v8": "6.6.346.32",
       "uv": "1.20.3",
       "zlib": "1.2.11",
       "ares": "1.14.0",
       "modules": "64",
       "nghttp2": "1.29.0",
       "napi": "3",
       "openssl": "1.1.0h"
   },
   "vscode": {
       "appName": "Visual Studio Code",
       "appRoot": "d:\\Program Files\\Microsoft VS Code\\resources\\app",
       "machineId": "dbe5e95b9762a47c5f1c0fa850b253af775d0563909c278e836b78c719e3e42f",
       "sessionId": "c9a37bce-1e1b-4616-ac6e-45ce06072f401552906539046",
       "version": "1.32.3"
   },
   "extensions": [
       {
           "id": "ms-vscode.node-debug",
           "version": "1.32.4"
       },
       {
           "id": "ms-vscode.node-debug2",
           "version": "1.32.0"
       },
       {
           "id": "ms-vscode.references-view",
           "version": "0.0.26"
       },
       {
           "id": "eamodio.gitlens",
           "version": "9.5.1"
       },
       {
           "id": "marus25.cortex-debug",
           "version": "0.2.3"
       },
       {
           "id": "ms-python.python",
           "version": "2019.2.5558"
       },
       {
           "id": "ms-vscode.cpptools",
           "version": "0.21.0"
       },
       {
           "id": "ms-vscode.Go",
           "version": "0.9.2"
       },
       {
           "id": "particle.particle-vscode-core",
           "version": "1.2.2"
       },
       {
           "id": "particle.particle-vscode-theme",
           "version": "1.2.2"
       },
       {
           "id": "peakchen90.open-html-in-browser",
           "version": "1.0.4"
       },
       {
           "id": "peterj.proto",
           "version": "0.0.2"
       },
       {
           "id": "vsciot-vscode.vscode-arduino",
           "version": "0.2.25"
       }
   ]
}

hi @jmjobin

originally you said:

Yesterday I could do it, I could select the device from the bottom bar, I could flash from the top bar.

do you recall making any changes to your local environment that could account for this?

my code when compiled yesterday is plenty of errors today

can you share the exact errors you are seeing?

Workbench ask me to download the toolchain and when I say yes it says it failed doing it

the audit report you shared includes:

   "localCompiler": {
       "dependencies": [
           "deviceOS@1.0.1",
           "gcc-arm@5.3.1",
           "buildtools@1.0.1",
           "buildscripts@1.2.0",
           "openocd@0.10.0-particle.1"
       ]
   },

which implies the default toolchain was successfully downloaded at some point. try opening powershell and running the following:

C:\Users\<your username here>\.particle\toolchains\gcc-arm\5.3.1\bin\arm-none-eabi-gcc.exe --help

then

C:\Users\<your username here>\.particle\toolchains\openocd\0.10.0-particle.1\bin\openocd.exe --help

then

C:\Users\<your username here>\.particle\toolchains\buildtools\1.0.1\bin\dfu-util.exe --help

all of the commands above should run successfully and produce appropriate output. if they do not, verify you have a good and reliable internet connection and try running Particle: Reset Environment.

lastly just to confirm, did you censor (hide) your username? i ask b/c your paths look odd:

       "particleDir": "C:\\Users\\....\\.particle",
       "localCompilerToolchainDir": "C:\\Users\\...\\.particle\\toolchains"

likewise:

"binpath": "C:\\Users\\..\\.vscode\\extensions\\

the first has four dots (....), the second has three (...), while the third has two (..).

Hello @m_m:
I am using Visual Code for some other project and programming but no change during this elapsed time.
I had anyway the same problem just after the Workbench installation. This went away after I made a new project.
Now I tried to open a new project again the problem persist.

Error probably from intellisense but when all was working I did not had these errors:

image

Asking to download toolchain but keep saying it cannot download it.
Here the error after a reset environment. Says the same if trying to load other version.
Yes it seems to have them loaded anyway.
Also the message Downloading toolchain stays there for ever.

image

Cannot run the command you asked me to run on terminal:

BTW working with Windows 10. :frowning:
the “.particle” is an empty directory in my pc disk C:
and have particle.config.json and profile.json on the disk D:

My internet connection is perfect, working the full day with it :slight_smile:

Yes I cancel my user name and sometimes place 3 dots and sometimes more I do not know. I do not thing this is important for the troubleshooting.

Thank you to help, because so far, beside the Argon which is by itself working perfectly well, the Xenon does not and the mesh is not, and I do not have an environment to work with.

jean-marc

Update:
I was able to particle: cloud compile wich generate the filename.bin
and then use the “particle flash --usb .\filename.bin” command from terminal to flash my Xenon.

Workbench still not OK. Cannot compile application local, cannot find and download gcc-arm v5.3.1.tar.gz compiler from binaries.particle.io, cannot Download toolchain, …

Workbench still not OK. Cannot compile application local, cannot find and download gcc-arm v5.3.1.tar.gz compiler from binaries.particle.io, cannot Download toolchain

ah, i see - you've never been able to download the required dependencies so the local compiler will not work. let's focus on fixing that first :grin:

i recently did some work to make the downloader more resilient to error, etc. would you be willing to try an ad-hoc build of the core extension to see if that helps?

in the meantime, is there anything special about your internet connection (are you behind a proxy? are you able to try a different network?)?

Hello, yes lets fix it I like to have it working to go further.
I am ready to try any suggestion you may have.
Not sure about the proxy. I am not the IT department.
But this had worked in the past, also if after the installation I had a similar problem.
Then opening a new project made it work, so I had the gcc installed once.
If I would be disturbed by the proxy this would never have worked.

1 Like

working with @jmjobin via DM, we've determined the issue is due to a bad network configuration (likely a proxy) as we're seeing the following error:

FetchError: request to https://binaries.particle.io/device-os/v0.9.0.tar.gz failed, reason: unable to get local issuer certificate

The error itself just means that a TLS certificate in the chain is not set properly or signed by an unknown certificate authority (perhaps the cert the proxy uses).

the only work-around options i see are to a) use a different network or b) try configuring proxy support within VSCode:

@jmjobin if you are able to resolve things, please share your solution :pray:

thanks for trying workbench :+1:

1 Like