text:
Add Makefile rule to build rootfs.vhd

This rule requires root or something like a privileged Docker container in order to run.
We can update build.ps1 to use this once Docker LCOW supports configuring capabilities and the device cgroup rules.

LGTM

repo: Microsoft/opengcs


text:
Add siren sound to the list of build in sounds.

Middle A, High D.

@microsoftsam,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

source: gharchive/pull-request

authors: microsoftsam msftclas

repo: Microsoft/pxt-common-packages

license: MIT

license_type: permissive

license_source: github-api


text:
tutorial issues

[ ] when the markdown fails to load, the UI is stuck on loading screen.

To repro, simply run the tutorial using http://localhost:3232/index.html?nolocalhost=1

[x] blocks macro should not be rendered with buttons
[x] tutorial projects should be temporary and destroyed as needed
[x] on start overlays with toolbox
[x] step numbering list are too large and won't scale for longer tutorials. Use dots + tooltip and expand number on selected step only.
[x] move tutorial to its own module.

Transferring markdown issue to its own bug: #1169

source: gharchive/issue

authors: microsoftsam pelikhan

repo: Microsoft/pxt

license: mit

license_source: bigquery


text:
Select first block when hit "enter" in gridpicker search bar

Demo: no mouse involved!

@caitlin-hennessy,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

nice!

Awesome!

Select first item when hit 'enter' in search bar
Don't select item when scrolling on touch screen

@caitlin-hennessy,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

authors: caitlin-hennessy guillaumejenkins microsoftsam msftclas


text:
The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted.

@chrisgix commented on Fri Apr 05 2019

VS Code version: 1.33.0
Extension version: 2019.3.6352
OS and version: Ubuntu 18.10, Kernel: 4.18.0-17-generic
Python version: 3.6.7

Expected behaviour
Python file opened, server starts with no crashes. Intellisense works properly
Actual behaviour
Python file opened. Python tools server crashes 5 times within 3 minutes and is not restarted anymore. Intellisense does not work
Steps to reproduce:

Open python file with python extension installed

Logs
Starting Microsoft Python language server.
[Info  - 1:42:18 PM] GetCurrentSearchPaths /usr/bin/python3
[Info  - 1:42:18 PM] Python search paths:
[Info  - 1:42:18 PM]     /usr/lib/python3.6
[Info  - 1:42:18 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:18 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:18 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:18 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:18 PM] Configuration search paths:
[Info  - 1:42:18 PM]     /usr/lib/python36.zip
[Info  - 1:42:18 PM]     /usr/lib/python3.6
[Info  - 1:42:18 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:18 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:18 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:18 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:18 PM]     /usr/bin
[Info  - 1:42:19 PM] Microsoft Python Language Server version 0.2.43.0
[Info  - 1:42:19 PM] Initializing for /usr/bin/python3
Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 1:42:20 PM] Connection to server got closed. Server will restart.
##########Linting Output - pylint##########

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
[Info  - 1:42:21 PM] GetCurrentSearchPaths /usr/bin/python3
[Info  - 1:42:21 PM] Python search paths:
[Info  - 1:42:21 PM]     /usr/lib/python3.6
[Info  - 1:42:21 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:21 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:21 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:21 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:21 PM] Configuration search paths:
[Info  - 1:42:21 PM]     /usr/lib/python36.zip
[Info  - 1:42:21 PM]     /usr/lib/python3.6
[Info  - 1:42:21 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:21 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:21 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:21 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:21 PM]     /usr/bin
[Info  - 1:42:22 PM] Microsoft Python Language Server version 0.2.43.0
[Info  - 1:42:22 PM] Initializing for /usr/bin/python3
Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 1:42:22 PM] Connection to server got closed. Server will restart.
[Info  - 1:42:23 PM] GetCurrentSearchPaths /usr/bin/python3
[Info  - 1:42:23 PM] Python search paths:
[Info  - 1:42:23 PM]     /usr/lib/python3.6
[Info  - 1:42:23 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:23 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:23 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:23 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:23 PM] Configuration search paths:
[Info  - 1:42:23 PM]     /usr/lib/python36.zip
[Info  - 1:42:23 PM]     /usr/lib/python3.6
[Info  - 1:42:23 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:23 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:23 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:23 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:23 PM]     /usr/bin
[Info  - 1:42:24 PM] Microsoft Python Language Server version 0.2.43.0
[Info  - 1:42:24 PM] Initializing for /usr/bin/python3
Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 1:42:25 PM] Connection to server got closed. Server will restart.
[Info  - 1:42:26 PM] GetCurrentSearchPaths /usr/bin/python3
[Info  - 1:42:26 PM] Python search paths:
[Info  - 1:42:26 PM]     /usr/lib/python3.6
[Info  - 1:42:26 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:26 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:26 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:26 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:26 PM] Configuration search paths:
[Info  - 1:42:26 PM]     /usr/lib/python36.zip
[Info  - 1:42:26 PM]     /usr/lib/python3.6
[Info  - 1:42:26 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:26 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:26 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:26 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:26 PM]     /usr/bin
[Info  - 1:42:26 PM] Microsoft Python Language Server version 0.2.43.0
[Info  - 1:42:26 PM] Initializing for /usr/bin/python3
Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 1:42:27 PM] Connection to server got closed. Server will restart.
[Info  - 1:42:28 PM] GetCurrentSearchPaths /usr/bin/python3
[Info  - 1:42:28 PM] Python search paths:
[Info  - 1:42:28 PM]     /usr/lib/python3.6
[Info  - 1:42:28 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:28 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:28 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:28 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:28 PM] Configuration search paths:
[Info  - 1:42:28 PM]     /usr/lib/python36.zip
[Info  - 1:42:28 PM]     /usr/lib/python3.6
[Info  - 1:42:28 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 1:42:28 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 1:42:28 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 1:42:28 PM]     /usr/lib/python3/dist-packages
[Info  - 1:42:28 PM]     /usr/bin
[Info  - 1:42:29 PM] Microsoft Python Language Server version 0.2.43.0
[Info  - 1:42:29 PM] Initializing for /usr/bin/python3
Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Error - 1:42:29 PM] Connection to server got closed. Server will not be restarted.
##########Linting Output - pylint##########

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
extensionHost.ts:311 [Extension Host] debugger listening on port 51568
extensionService.ts:802 Couldn't find message for key python.snippet.launch.unitTests.description.
_logMessageInConsole @ extensionService.ts:802
console.ts:134 [Extension Host] (node:7205) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.7 and args  failed
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 10
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking support of .NET, Class name = u, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 5
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.43"
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.43"
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from system
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.43"
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: Starting Language Server, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking support of .NET, Class name = u, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath
console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from system
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Current value for rule workspaceEnvs is nothing
console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
notificationsAlerts.ts:40 The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted.
onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, extension-output-#3
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix

@chrisgix commented on Sun Apr 07 2019
I was able to find the cause of the error. I discovered that it only happened in a certain project I had, so I went through and tried deleting files to see if they were the cause. And I ended up deleting the content of my python file, and then the server would start. This is the entirety of the file.
`print("section .text")
print("global our_code_starts_here")
print("our_code_starts_here:")
myFile = open('input.txt', 'r')
line = myFile.readline()
myList = line.split(" ")
num1 = myList[0]
if (len(myList) == 1):
print("  mov eax, " + num1)
print ("  ret")
else:
num2 = myList[2]
print("  mov eax, " + num1)
print("  mov ebx, " + num2)
print("  add eax, ebx")
print("  ret")`
This somehow causes the server to crash
Edit: It is this line in particular that is causing it. (I went through one by one uncommenting to find the bad line)
myFile = open('input.txt', 'r')

@chrisgix Can you update to the latest build, currently 0.2.47? Microsoft/vscode-python#3977

I'm also getting this, and I'm on 0.2.47, using Python 3.6.8 on MacOS.

@jakebailey I am still getting the error. Also in addition to @yozlet getting the bug on Mac, I was able to reproduce it on a friend's mac as well. They have MacOS High Sierra 10.13.6 with Python 3.7.3, Extension version 2019.3.6352 and server updated to 0.2.47. However on theirs it gave the error a couple times and eventually worked before giving up. Here is the output from my most recent attempt on Ubuntu. It looks the same as before.
Starting Microsoft Python language server.
[Info  - 9:37:58 PM] GetCurrentSearchPaths /usr/bin/python3
[Info  - 9:37:58 PM] Python search paths:
[Info  - 9:37:58 PM]     /usr/lib/python3.6
[Info  - 9:37:58 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 9:37:58 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 9:37:58 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 9:37:58 PM]     /usr/lib/python3/dist-packages
[Info  - 9:37:58 PM] Configuration search paths:
[Info  - 9:37:58 PM]     /usr/lib/python36.zip
[Info  - 9:37:58 PM]     /usr/lib/python3.6
[Info  - 9:37:58 PM]     /usr/lib/python3.6/lib-dynload
[Info  - 9:37:58 PM]     /home/chris/.local/lib/python3.6/site-packages
[Info  - 9:37:58 PM]     /usr/local/lib/python3.6/dist-packages
[Info  - 9:37:58 PM]     /usr/lib/python3/dist-packages
[Info  - 9:37:58 PM]     /usr/bin
[Info  - 9:37:59 PM] Microsoft Python Language Server version 0.2.47.0
[Info  - 9:37:59 PM] Initializing for /usr/bin/python3
Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()

@jakebailey I too just experienced this, unfortunately I didn't think twice about it and just reloaded VSC.
FYI - working on a a small workspace with one new python package - behave (tiny package)

I haven't been able to reproduce this yet, but I'm still trying.

@jakebailey I have been able to reproduce it by having a file with just the line
myFile = open("input.txt, "w")
One thing however is it doesn't crash if I open a file, let the server start, and then put that line in. There is no issue there. The problem arises when I have it in the file and then try and start the server. Hopefully that will help you replicate it.

That did it, I can reproduce this on my Linux machine, but not on Windows (which is unfortunate because that's where my debugger is...).
[Info  - 1:37:17 PM] GetCurrentSearchPaths /home/jake/wtfpy/venv/bin/python3.7
[Info  - 1:37:18 PM] Python search paths:
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/lib/python3.7
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/lib/python3.7/lib-dynload
[Info  - 1:37:18 PM]     /usr/lib64/python3.7
[Info  - 1:37:18 PM]     /usr/lib/python3.7
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/lib/python3.7/site-packages
[Info  - 1:37:18 PM] Configuration search paths:
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/lib/python37.zip
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/lib/python3.7
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/lib/python3.7/lib-dynload
[Info  - 1:37:18 PM]     /usr/lib64/python3.7
[Info  - 1:37:18 PM]     /usr/lib/python3.7
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/lib/python3.7/site-packages
[Info  - 1:37:18 PM]     /home/jake/wtfpy/venv/bin
[Info  - 1:37:18 PM] Microsoft Python Language Server version 1.0.0.0
[Info  - 1:37:18 PM] Initializing for /home/jake/wtfpy/venv/bin/python3.7
Opening document file:///home/jake/issue909/main.py
Analysis of main(User) queued
Analysis version 2 of 1 entries has started.
Import:  io /home/jake/wtfpy/venv/lib/python3.7/io.py

Unhandled Exception: Analysis of main(User) queued
Analysis of main(User) completed in 45.9239 ms.
Analysis version 2 of 1 entries has been completed in 46.2411 ms.
Analysis version 3 of 1 entries has started.
Analysis of main(User) completed in 1.5194 ms.
Analysis version 3 of 1 entries has been completed in 1.8687 ms.
Analysis of io(Library) queued
Analysis of io(Stub) queued
Import:  abc /home/jake/wtfpy/venv/lib/python3.7/abc.py
Create built-in compiled (scraped) module:  _io /home/jake/wtfpy/venv/bin/python3.7
Analysis version 5 of 3 entries has started.
Analysis of _io(CompiledBuiltin) queued
System.ObjectDisposedException: The CancellationTokenSource has been disposed.
   at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
   at System.Threading.CancellationTokenSource.get_Token()
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.<Start>b__22_0() in /home/jake/nobackup/python-language-server/src/Analysis/Ast/Impl/Analyzer/PythonAnalyzerSession.cs:line 100
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Python.Core.TaskExtensions.<>c.<DoNotWaitThreadContinuation>b__4_0(Object s) in /home/jake/nobackup/python-language-server/src/Core/Impl/Extensions/TaskExtensions.cs:line 79
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Error - 1:37:19 PM] Connection to server got closed. Server will not be restarted.

@AlexanderSher This seems to be getting thrown in Analyze; does that function need to catch disposed as well or is this a bug somewhere?

PR #919 seems to have fixed this for me; opening a file which just contains myFile = open("input.txt", "w") does not crash at startup and everything seems to be working.

@chrisgix @yozlet The build containing #919 is now in the daily channel as 0.2.49, if you'd like to try it out. You should be able to set the following in your settings.json and reload the editor to trigger an update:
"python.analysis.downloadChannel": "daily"

Afterwards, you can remove that line then perform the steps in Microsoft/vscode-python#3977 to go back to the stable build (as the daily build isn't guaranteed to be 100% stable), if you so choose.

Can you repro it on a current master?

@jakebailey I tried out 0.2.49 and it seems to have solved the issue. I restarted vscode multiple times with the line containing the open call and never got a crash.

That's good to hear. I tried the same and couldn't get it to crash either. I'm going to close this for now as fixed, and it should make it into a future stable release.

authors: AlexanderSher DonJayamanne chrisgix jakebailey yozlet

repo: Microsoft/python-language-server


text:
Dropdown for change database shows up in corner of window

SQL Operations Studio Version:
0bf642d release build

probably caused by the vscode merge
Steps to Reproduce:
The first time you use the dropdown when you open sqlops it shows up in the corner

@anthonydresser I wasn't able to repro on the latest builds in master.  Could you please confirm if this still repros for you?

authors: anthonydresser kburtram

repo: Microsoft/sqlopsstudio


text:
Come up with the pattern when there is an error in dashboard

Work with Smitha on the pattern when the extension cannot be loaded in dashboard

Most of these we should write validators for and catch these before we even register them. The only exception is where we try and get data from the extension at run time, but the only example of this is webviews.

@anthonydresser The only case when the unknown registered container is used

Well currently we are only supporting using a container you define yourself, so this should be verifiable.

authors: AbbiePetcht anthonydresser


text:
Adds "Get Connection String" command

This is to address this scenario https://github.com/Microsoft/sqlopsstudio/issues/1620.
To use the feature (1) open a query editor with an active connection (2) run the Get Current Connection String command from the command palette (3) copy connection string from notification pop-up.

Note that the password will be removed from the returned string.

Related PRs
https://github.com/Microsoft/sqltoolsservice/pull/670/
https://github.com/Microsoft/sqlops-dataprotocolclient/pull/17

There was no popup appear. Pls check it again. Tks

authors: kburtram mikenlinh


text:
Add Functionlike interface

Closes Microsoft/tolerant-php-parser#162
It feels strange to create a file with the namespace beginning with Microsoft...

@jens1o,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Thanks!

authors: jens1o msftclas roblourens

repo: Microsoft/tolerant-php-parser


text:
Deployments node should show deployments even if configured to "None"

None of these were done via Local Git, but they still show up after I switch to Local Git:

Which means we should be able to show deployments even if it's set to "None". "Redeploy" might not be super helpful since the message for each deployment is the same, but users can still at least view the logs

Actually redeploy doesn't even work for zip deploys according to @nturinski, but I still think the logs are helpful

You get an error that says Repository could not be found when you try to redeploy a zip deploy.  Is it worth changing that error message to something more descriptive? (It does make sense now that I know the context of it)

authors: EricJizbaMSFT nturinski

repo: Microsoft/vscode-azureappservice


text:
showQuickPick - enable multiselect (don't persist choices in this case)

Fixes #259

FYI I fixed the build breaks in my most recent PR, so they should pass once you merge with master. See this commit for more info: https://github.com/Microsoft/vscode-azuretools/commit/d1f26cdd85336730777d7253acb37b8293413a3d
I believe travis_terminate used to default to an exit code of "0", but seems like now we have to explicitly specify it

We'll need to discuss.

Ping. The change you request (not throwing UserCancelled unless user hits Escape) is the current state of the PR. Are there other requested changes I didn't pick up?

repo: Microsoft/vscode-azuretools


text:
Fail to delete document with error for SQL accounts

Repro steps:
Right click one document and select 'Delete Document', then check whether the document can be deleted or not.
Action: cosmosDB.deleteDocDBDocument
Error type: BadRequest
Error Message: The partition key supplied in x-ms-partitionkey header has fewer components than defined in the the collection.
More Info:
This issue doesn't reproduce in Storage Explorer. The same document can be deleted successfully in Storage Explorer.
Version: 0.6.1-alpha
OS: win32

@v-dantch What's the partition key for the database? And is there a shard key?

Pop up this error when typing a string 'name' as the partition key.

@PrashanthCorp Can you repro?

I can repro consistently. Happens whether you enter an ID or leave it blank.

Looks to be related to this issue

Thanks. Given that from our extension you can only create collections with partition keys, I think we should fix this for this release if possible.  The issue you pointed to gave a work-around.

It seems to stem as a regression bug from #302, which had that fix.
The solution that works for me was to revert that fix.
In light of that, I'm going to test this a bit more, to make sure it works in both fixed and unlimited storage, with or without partition keys.

repo: Microsoft/vscode-cosmosdb


text:
How to debug the webpacking part of the webpack sample?

I'm experimenting with the webpack sample because we want to update the C++ extension to use this, but I'm stuck after installing the vscode-cpptools node module.  webpack launches ts-loader (I think) to compile the sample, but I get a TS2307: Cannot find module 'vscode-cpptools'.  If I run tsc, it has no problem finding it.  I haven't found anything online that fixes my problem so I'd like to set breakpoints in ts-loader to see if I can figure out what is going wrong.  I created a node launch task that runs the webpack script, but none of my breakpoints hit.  Do you have any tips to help debug this?  I'm feeling stuck and have been unable to make progress on this for several hours.
Thanks!

Oh, I think I might have just solved it.  The sample has this section in the webpack config:
    module: {
        rules: [{
            test: /\.ts$/,
            exclude: /node_modules/,
            use: [{
                loader: 'ts-loader',
                options: {
                    compilerOptions: {
                        "module": "es6" // override `tsconfig.json` so that TypeScript emits native JavaScript modules.
                    }
                }
            }]
        }]
    },

It seems to be overriding the sample's tsconfig.json.  Removing options appears to fix the webpack compile.  Can you help me understand why the sample is overriding the tsconfig and whether my "fix" is correct?  It seems to run ok.

Can you help me understand why the sample is overriding the tsconfig and whether my "fix" is correct? It seems to run ok.

Webpack tree shaking only works when emitting native JS modules, that's why we have it in the sample.

Yeah, I ran into some problem while debugging it yesterday.  I still need to investigate more, but that was the only way I could get it to compile.  Perhaps it's because the vscode-cpptools module has a dependency on vscode.d.ts?  I don't know.  We don't have a lot of experience with this stuff.

Hm... the vscode dependency should be OK. did you tell web pack that you are targeting node? Like so https://github.com/Microsoft/vscode-extension-samples/blob/master/webpack-sample/webpack.config.js#L14

I started with the webpack sample and all I did was npm i vscode-cpptools and npm i vscode-jsonrpc, so yes, it should be targeting node.

I forked the repo and these are my commits:

npm i vscode-cpptools
npm i vscode-jsonrpc

if I run npm run webpack I get the TS2307.  tsc works.

Hm, not  sure what's going. I am also still learning webpack. The tsconfig-override might have some side effect that we don't yet understand

authors: bobbrow jrieken

repo: Microsoft/vscode-extension-samples


text:
Default path mappings does not work with remote debugging of Docker containers

Environment data

VS Code version: Insiders
Extension version (available under the Extensions sidebar): Dev
OS and version: Mac
Python version (& distribution if applicable, e.g. Anaconda): N/A
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: N/A

Actual behavior
Path mappings doesn't work in remote debugging with default value for localRoot in launch.json.
When hitting break points, we get an error message indicating the file doesn't exist.
The problem is the value "localRoot": "${workspaceFolder}" in launch.json needs to be "localRoot": "${workspaceFolder}/"
I.e. PTVSD takes localRoot and concatenates it with the file name as follows:
${workspaceFolder} + <File Name (without adding the file path separator).
Expected  behavior
Should work.
I.e. if / is missing, it should be added.
Steps to reproduce:
Here's the sample https://github.com/DonJayamanne/vscode-python-samples/blob/master/remote-debugging-docker/.vscode/launch.json

Need to confirm the problem is with PTVSD before creating an issue upstream.

@brettcannon please feel free to change the priority label.

This is another form of https://github.com/Microsoft/ptvsd/issues/790

confirmed fixed.

authors: DonJayamanne karthiknadig

repo: Microsoft/vscode-python


text:
Flaky Test: Jupyter notebook tests: Cancel execution.

On Azure DevOps under Linux and Python 3.6, 3.7, these tests are failing for the following reasons seen thus far:
'Cancel did not cancel getusable after 30ms'
'Cancel did not cancel isNotebook after 10ms'
Please investigate and correct.

Do you have an example build? I can't find one.