From a8634006702e5f53f2c199370b6ebb460a25a45e Mon Sep 17 00:00:00 2001 From: Almenon Date: Mon, 22 Jan 2018 23:24:03 -0800 Subject: [PATCH] print is not real-time #2 --- package-lock.json | 40 ++++++++++++++++++++-------------------- package.json | 26 +++++++++++++++----------- src/PreviewManager.ts | 1 + 3 files changed, 36 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index e221d0c..9bb3fd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { - "name": "real-time-eval", + "name": "arepl-vscode", "version": "0.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { "@types/mocha": { - "version": "2.2.41", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.41.tgz", - "integrity": "sha1-4nzwgXFT658nE7LT9saPHhw8pgg=", + "version": "2.2.46", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.46.tgz", + "integrity": "sha512-fwTTP5QLf4xHMkv7ovcKvmlLWX3GrxCa5DRQDOilVyYGCp+arZTAQJCy7/4GKezzYJjfWMpB/Cy4e8nrc9XioA==", "dev": true }, "@types/node": { - "version": "6.0.87", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.87.tgz", - "integrity": "sha512-Xo0pYENOBaGtJUhi50KH6gdBNQmZQQxAwBArsJpBd15ncoz+LZD5Ev14vuezcw62CsQ1q6bM++7jA6jfwaAbfQ==", + "version": "6.0.96", + "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.96.tgz", + "integrity": "sha512-fsOOY6tMQ3jCB2wD51XFDmmpgm4wVKkJECdcVRqapbJEa7awJDcr+SaH8toz+4r4KW8YQ3M7ybXMoSDo1QGewA==", "dev": true }, "ajv": { @@ -39,9 +39,9 @@ "dev": true }, "arepl-backend": { - "version": "1.0.0-alpha.4", - "resolved": "https://registry.npmjs.org/arepl-backend/-/arepl-backend-1.0.0-alpha.4.tgz", - "integrity": "sha512-/IE7tHnTA9o6JMFbgtQ6FD7NSGvcYzmNxLwmWoolBwpIDPJNH0MuW4R5UYG9VAu9DhR2wwt7HQLL2t/3+ruhkQ==", + "version": "1.0.0-alpha.5", + "resolved": "https://registry.npmjs.org/arepl-backend/-/arepl-backend-1.0.0-alpha.5.tgz", + "integrity": "sha512-ESBXb7PANRkmEKrmXytvWG4LZ14ZMMnmfx/vUwLbg+Fe1/xNUT9XsGHOEcDLW1zobB6Ja/ym9II1XpMsEQk8uQ==", "requires": { "python-shell": "0.4.0" } @@ -58,7 +58,7 @@ "arr-flatten": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "integrity": "sha1-NgSLv/TntH4TZkQxbJlmnqWukfE=", "dev": true }, "array-differ": { @@ -398,7 +398,7 @@ "duplexify": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.1.tgz", - "integrity": "sha512-j5goxHTwVED1Fpe5hh3q9R93Kip0Bg2KVAt4f8CEYM3UEwYcPSvWbXaUQOzdX/HtiNomipv+gU7ASQPDbV7pGQ==", + "integrity": "sha1-ThUWvmiDi8kKSZlPCzmm5ZYL780=", "dev": true, "requires": { "end-of-stream": "1.4.0", @@ -729,7 +729,7 @@ "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "dev": true, "requires": { "brace-expansion": "1.1.8" @@ -1743,7 +1743,7 @@ "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "dev": true, "requires": { "brace-expansion": "1.1.8" @@ -1963,7 +1963,7 @@ "randomatic": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", - "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", + "integrity": "sha1-x6vpzIuHwLqodrGf3oP9RkeX44w=", "dev": true, "requires": { "is-number": "3.0.0", @@ -2004,7 +2004,7 @@ "readable-stream": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", "dev": true, "requires": { "core-util-is": "1.0.2", @@ -2164,13 +2164,13 @@ "safe-buffer": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", + "integrity": "sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=", "dev": true }, "semver": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "integrity": "sha1-4FnAnYVx8FQII3M0M1BdOi8AsY4=", "dev": true }, "sigmund": { @@ -2281,7 +2281,7 @@ "string_decoder": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", "dev": true, "requires": { "safe-buffer": "5.1.1" @@ -2450,7 +2450,7 @@ "uuid": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", - "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", + "integrity": "sha1-PdPT55Crwk17DToDT/q6vijrvAQ=", "dev": true }, "vali-date": { diff --git a/package.json b/package.json index 9cb3619..bd19982 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "vscode": "^1.14.0" }, "categories": [ - "Other","Debuggers" + "Other", + "Debuggers" ], "activationEvents": [ "onCommand:extension.evalPythonInRealTime" @@ -37,26 +38,29 @@ "test": "node ./node_modules/vscode/bin/test" }, "devDependencies": { - "typescript": "^2.0.3", - "vscode": "^1.0.0", + "@types/mocha": "^2.2.46", + "@types/node": "^6.0.96", "mocha": "^2.3.3", - "@types/node": "^6.0.40", - "@types/mocha": "^2.2.32" + "typescript": "^2.0.3", + "vscode": "^1.0.0" }, "dependencies": { - "arepl-backend": "^1.0.0-alpha.4", + "arepl-backend": "^1.0.0-alpha.5", "opn": "^4.0.2", "path": "^0.12.7", "python-shell": "^0.4.0" }, "bugs": { - "url": "https://github.com/almenon/arepl-vscode-wordcount/issues", - "email": "almenon214@gmail.com" + "url": "https://github.com/almenon/arepl-vscode-wordcount/issues", + "email": "almenon214@gmail.com" }, "repository": { - "type": "git", - "url": "https://github.com/almenon/arepl-vscode.git" + "type": "git", + "url": "https://github.com/almenon/arepl-vscode.git" }, "license": "SEE LICENSE IN ", - "keywords":["python", "real-time"] + "keywords": [ + "python", + "real-time" + ] } diff --git a/src/PreviewManager.ts b/src/PreviewManager.ts index 45a09f8..f18498c 100644 --- a/src/PreviewManager.ts +++ b/src/PreviewManager.ts @@ -28,6 +28,7 @@ export default class PreviewManager { ///////////////////////////////////////////////////////// let self:PreviewManager = this; + this.pythonEvaluator.startPython() this.pythonEvaluator.pyshell.childProcess.on('error', err => { this.pythonPreviewContentProvider.handleSpawnError(err.path, err.spawnargs[0], err.stack); })