Skip to content

Commit eceea77

Browse files
committed
Merge branch 'master' into ds/custom_editor
* master: Move redux logging to a different file (#10605) Ensure local host only if connection not available (#10600) Fix a bunch of debugger issues (#10572) Bump acorn from 6.0.0 to 6.4.1 (#10570) Resize plot to fit within pdf page (#10547) Update dev build instructions to mention "python.insidersChannel" Install the ZMQ prebuilt binaries and verify ZMQ works on startup (#10551)
2 parents 81a8d7d + c3e6ef7 commit eceea77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+923
-352
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
"--ui=tdd",
235235
"--recursive",
236236
"--colors",
237-
//"--grep", "<suite name>",
237+
//"--grep", "<suite>",
238238
"--timeout=300000"
239239
],
240240
"env": {
@@ -243,7 +243,7 @@
243243
// Remove 'X' to turn on all logging in the debug output
244244
"XVSC_PYTHON_FORCE_LOGGING": "1",
245245
// Remove `X` prefix and update path to test with real python interpreter (for DS functional tests).
246-
"XCI_PYTHON_PATH": "<Python Path>"
246+
"XCI_PYTHON_PATH": "<Python Path>",
247247
},
248248
"outFiles": [
249249
"${workspaceFolder}/out/**/*.js"

CONTRIBUTING.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -290,24 +290,12 @@ Overall steps for releasing are covered in the
290290
To create a release _build_, follow the steps outlined in the [release plan](https://github.com/Microsoft/vscode-python/labels/release%20plan) (which has a [template](https://github.com/Microsoft/vscode-python/blob/master/.github/release_plan.md)).
291291

292292
## Development Build
293+
If you would like to use the latest version of the extension as committed to `master` that has passed our test suite, then you may set the `"python.insidersChannel"` setting to `"daily"` or `"weekly"` based on how often you would like the extension to check for updates.
293294

294-
We publish the latest development
295-
build of the extension onto a cloud storage provider.
296-
If you are interested in helping us test our development builds or would like
297-
to stay ahead of the curve, then please feel free to download and install the
298-
extension from the following
295+
You may also download and install the extension manually from the following
299296
[location](https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix).
300297
Once you have downloaded the
301298
[ms-python-insiders.vsix](https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix)
302299
file, please follow the instructions on
303300
[this page](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix)
304-
to install the extension.
305-
306-
The development build of the extension:
307-
308-
* Will be replaced with new releases published onto the
309-
[VS Code Marketplace](https://marketplace.visualstudio.com/VSCode).
310-
* Does not get updated with new development builds of the extension (if you want to
311-
test a newer development build, uninstall the old version of the
312-
extension and then install the new version)
313-
* Is built every time a PR is committed into the [`master` branch](https://github.com/Microsoft/vscode-python).
301+
to install the extension. Do note that the manual install will not automatically update to newer builds unless you set the `"python.insidersChannel"` setting (it will get replaced with released versions from the Marketplace once they are newer than the version install manually).

build/ci/templates/globals.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ variables:
66
MOCHA_REPORTER_JUNIT: true # Use the mocha-multi-reporters and send output to both console (spec) and JUnit (mocha-junit-reporter).
77
VSC_PYTHON_FORCE_LOGGING: true # Enable this to turn on console output for the logger
88
VSC_PYTHON_LOG_FILE: '$(Build.ArtifactStagingDirectory)/pvsc.log'
9+
VSC_PYTHON_WEBVIEW_LOG_FILE: '$(Build.ArtifactStagingDirectory)/pvsc_webview.log'
910
CI_BRANCH_NAME: ${Build.SourceBranchName}
1011
npm_config_cache: $(Pipeline.Workspace)/.npm
1112
vmImageMacOS: 'macOS-10.15'

build/webpack/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ exports.nodeModulesToExternalize = [
3535
'@koa/cors',
3636
'koa',
3737
'koa-compress',
38-
'koa-logger'
38+
'koa-logger',
39+
'zeromq'
3940
];
4041
exports.nodeModulesToReplacePaths = [...exports.nodeModulesToExternalize];
4142
function getDefaultPlugins(name) {

build/webpack/webpack.datascience-ui.config.builder.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ function buildConfiguration(isNotebook) {
190190
}),
191191
...getPlugins(isNotebook)
192192
],
193+
externals: ['log4js'],
193194
resolve: {
194195
// Add '.ts' and '.tsx' as resolvable extensions.
195196
extensions: ['.ts', '.tsx', '.js', '.json', '.svg']

build/webpack/webpack.extension.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Licensed under the MIT License.
33
'use strict';
44

5+
const copyWebpackPlugin = require('copy-webpack-plugin');
6+
const removeFilesWebpackPlugin = require('remove-files-webpack-plugin');
57
const path = require('path');
68
const tsconfig_paths_webpack_plugin = require('tsconfig-paths-webpack-plugin');
79
const constants = require('../constants');
@@ -76,7 +78,15 @@ const config = {
7678
]
7779
}
7880
]
79-
})
81+
}),
82+
// ZMQ requires prebuilds to be in our node_modules directory. So recreate the ZMQ structure.
83+
// However we don't webpack to manage this, so it was part of the excluded modules. Delete it from there
84+
// so at runtime we pick up the original structure.
85+
new removeFilesWebpackPlugin({ after: { include: ['./out/client/node_modules/zeromq.js'] } }),
86+
new copyWebpackPlugin([{ from: './node_modules/zeromq/**/*.js' }]),
87+
new copyWebpackPlugin([{ from: './node_modules/zeromq/**/*.node' }]),
88+
new copyWebpackPlugin([{ from: './node_modules/zeromq/**/*.json' }]),
89+
new copyWebpackPlugin([{ from: './node_modules/node-gyp-build/**/*' }])
8090
],
8191
resolve: {
8292
alias: {

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ function getAllowedWarningsForWebPack(buildConfig) {
274274
'WARNING in ./node_modules/ws/lib/validation.js',
275275
'WARNING in ./node_modules/@jupyterlab/services/node_modules/ws/lib/buffer-util.js',
276276
'WARNING in ./node_modules/@jupyterlab/services/node_modules/ws/lib/validation.js',
277-
'WARNING in ./node_modules/any-promise/register.js'
277+
'WARNING in ./node_modules/any-promise/register.js',
278+
'WARNING in ./node_modules/log4js/lib/appenders/index.js',
279+
'WARNING in ./node_modules/log4js/lib/clustering.js'
278280
];
279281
case 'extension':
280282
return [
@@ -709,6 +711,7 @@ function hasNativeDependencies() {
709711
path.dirname(item.substring(item.indexOf('node_modules') + 'node_modules'.length)).split(path.sep)
710712
)
711713
.filter(item => item.length > 0)
714+
.filter(item => !item.includes('zeromq')) // This is a known native. Allow this one for now
712715
.filter(
713716
item =>
714717
jsonProperties.findIndex(flattenedDependency =>

news/2 Fixes/10206.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix interactive window debugging after running cells in a notebook.

news/2 Fixes/10395.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix interactive window debugging when debugging the first cell to be run.

news/2 Fixes/10396.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix interactive window debugging for extra lines in a function.

news/2 Fixes/10597.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure default `host` is not set, if `connect` or `listen` settings are available.

news/2 Fixes/9403.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure plot fits within the page of the `PDF`.

news/3 Code Health/10483.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add ZMQ library to extension

0 commit comments

Comments
 (0)