diff --git a/CHANGELOG.md b/CHANGELOG.md index dc6661e..1c3af2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Release Notes +## 1.4.2 (2018-10-26) + +* [PIO Unified Debugger](http://docs.platformio.org/page/plus/debugging.html): + * Shutdown gracefully debugging server on "Stop" command +* Fixed "ImportError: DLL load failed" + ## 1.4.1 (2018-10-19) * [PIO Unified Debugger](http://docs.platformio.org/page/plus/debugging.html): diff --git a/package.json b/package.json index 87736bf..dcb116d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "platformio-ide", - "version": "1.4.1", + "version": "1.4.2", "publisher": "platformio", "engines": { "vscode": "^1.24.0" @@ -588,9 +588,10 @@ "vscode": "^1.1.1" }, "dependencies": { + "@sentry/node": "^4.2.3", "fs-plus": "^3.0.0", "platformio-node-helpers": "^3.2.0", - "platformio-vscode-debug": "^1.2.4" + "platformio-vscode-debug": "^1.2.5" }, "extensionDependencies": [ "ms-vscode.cpptools" diff --git a/src/utils.js b/src/utils.js index d074653..9dd142a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -6,6 +6,7 @@ * the root directory of this source tree. */ +import * as Sentry from '@sentry/node'; import * as pioNodeHelpers from 'platformio-node-helpers'; import os from 'os'; @@ -13,6 +14,7 @@ import vscode from 'vscode'; export async function notifyError(title, err) { + this.notifySentry(err); const description = err.stack || err.toString(); const action = 'Report a problem'; const selected = await vscode.window.showErrorMessage(description, action); @@ -39,6 +41,19 @@ ${description} console.error(err); } +export function notifySentry(err) { + Sentry.init({ + dsn: 'https://a7427d8e4f2446ddac3a3faea476e6e8@sentry.io/1309812', + release: getIDEVersion(), + serverName: `${os.type()}, ${os.release()}, ${os.arch()}` + + }); + Sentry.configureScope((scope) => { + scope.setTag('vscode', vscode.version); + }); + Sentry.captureException(err); +} + export function getIDEManifest() { return vscode.extensions.getExtension('platformio.platformio-ide').packageJSON; }