Skip to content

Commit

Permalink
Merge branch 'release/v1.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Oct 26, 2018
2 parents 4e99990 + d0b2b2d commit 596123a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "platformio-ide",
"version": "1.4.1",
"version": "1.4.2",
"publisher": "platformio",
"engines": {
"vscode": "^1.24.0"
Expand Down Expand Up @@ -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"
Expand Down
15 changes: 15 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
* the root directory of this source tree.
*/

import * as Sentry from '@sentry/node';
import * as pioNodeHelpers from 'platformio-node-helpers';

import os from 'os';
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);
Expand All @@ -39,6 +41,19 @@ ${description}
console.error(err);
}

export function notifySentry(err) {
Sentry.init({
dsn: 'https://[email protected]/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;
}
Expand Down

0 comments on commit 596123a

Please sign in to comment.