microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.31k stars 1.18k forks source link

Open a new terminal when extension gets activated #5330

Closed dataders closed 4 years ago

dataders commented 5 years ago

Environment data

Expected behavior

  1. open vscode (and wait reasonable amount of time for python extension to load)
  2. terminal runs C:/Users/anders.swanson/AppData/Local/Continuum/miniconda3/Scripts/activate which should run activate azure_automl
  3. terminal is ready for more commands

Actual behaviour

terminal stalls likes this for minutes and never changes. image

my workaround is to trash the terminal window and open a new one. expected behavior and terminal is ready for prompts within 2 seconds. image

Steps to reproduce:

  1. open vscode

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
Downloading https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-win-x64.0.2.56.nupkg... ##########Linting Output - pylint##########
complete
Unpacking archive... done
[Info  - 10:50:14 AM] GetCurrentSearchPaths C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\python.exe 
[Info  - 10:50:14 AM] Python search paths:
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\local\continuum\miniconda3\envs\azure_automl\dlls
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\local\continuum\miniconda3\envs\azure_automl\lib
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\local\continuum\miniconda3\envs\azure_automl
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\roaming\python\python36\site-packages
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\local\continuum\miniconda3\envs\azure_automl\lib\site-packages
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\local\continuum\miniconda3\envs\azure_automl\lib\site-packages\win32
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\local\continuum\miniconda3\envs\azure_automl\lib\site-packages\win32\lib
[Info  - 10:50:14 AM]     c:\users\anders.swanson\appdata\local\continuum\miniconda3\envs\azure_automl\lib\site-packages\pythonwin
[Info  - 10:50:14 AM] Configuration search paths:
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\python36.zip
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\DLLs
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\lib
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Roaming\Python\Python36\site-packages
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\lib\site-packages
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\lib\site-packages\win32
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\lib\site-packages\win32\lib
[Info  - 10:50:14 AM]     C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\lib\site-packages\Pythonwin
[Info  - 10:50:25 AM] Microsoft Python Language Server version 0.2.56.0
[Info  - 10:50:25 AM] Initializing for C:\Users\anders.swanson\AppData\Local\Continuum\miniconda3\envs\azure_automl\python.exe

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 24948
extensionService.ts:804 [ms-toolsai.vscode-ai]: Command `vscodeai.azureml.submitLastJob` appears multiple times in the `commands` section.
textMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///c%3A/Users/anders.swanson/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///c%3A/Users/anders.swanson/.vscode/extensions/magicstack.magicpython-1.1.0/grammars/MagicPython.tmLanguage
register @ textMateService.ts:52
_handleGrammarExtensionPointUser @ textMateService.ts:357
S.grammarsExtPoint.setHandler.e @ textMateService.ts:196
_handle @ extensionsRegistry.ts:144
acceptUsers @ extensionsRegistry.ts:135
_handleExtensionPoint @ extensionService.ts:787
_handleExtensionPoints @ extensionService.ts:637
(anonymous) @ extensionService.ts:620
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
(anonymous) @ errors.ts:184
n @ errors.ts:184
_scanAndHandleExtensions @ extensionService.ts:613
c.runWhenIdle @ extensionService.ts:384
requestIdleCallback (async)
t.runWhenIdle @ async.ts:710
e.when.then @ extensionService.ts:381
Promise.then (async)
_startDelayed @ extensionService.ts:379
e @ extensionService.ts:129
t.create @ types.ts:168
_createInstance @ instantiationService.ts:111
_createServiceInstance @ instantiationService.ts:218
_createServiceInstanceWithOwner @ instantiationService.ts:207
_createAndCacheServiceInstance @ instantiationService.ts:196
_getOrCreateServiceInstance @ instantiationService.ts:136
get @ instantiationService.ts:54
i.invokeFunction.e @ workbench.ts:196
invokeFunction @ instantiationService.ts:61
initServices @ workbench.ts:190
startup @ workbench.ts:131
c.domContentLoaded.then @ main.ts:124
Promise.then (async)
initServices.then.e @ main.ts:110
Promise.then (async)
open @ main.ts:108
t.main @ main.ts:328
(anonymous) @ workbench.js:30
Promise.then (async)
bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:26
e @ bootstrap-window.js:122
t._invokeFactory @ loader.js:993
t.complete @ loader.js:1003
s._onModuleComplete @ loader.js:1603
s._onModuleComplete @ loader.js:1615
s._resolve @ loader.js:1565
s.defineModule @ loader.js:1229
r @ loader.js:1653
f @ loader.js:807
(anonymous) @ gettingStarted.contribution.ts:18
(anonymous) @ fake:1
t._loadAndEvalScript @ loader.js:810
(anonymous) @ loader.js:791
readFileAfterClose @ fs.js:440
textMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.sql.
Old grammar file: file:///c%3A/Users/anders.swanson/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/sql/syntaxes/sql.tmLanguage.json.
New grammar file: file:///c%3A/Users/anders.swanson/.vscode/extensions/ms-mssql.mssql-1.5.0/syntaxes/SQL.plist
register @ textMateService.ts:52
_handleGrammarExtensionPointUser @ textMateService.ts:357
S.grammarsExtPoint.setHandler.e @ textMateService.ts:196
_handle @ extensionsRegistry.ts:144
acceptUsers @ extensionsRegistry.ts:135
_handleExtensionPoint @ extensionService.ts:787
_handleExtensionPoints @ extensionService.ts:637
(anonymous) @ extensionService.ts:620
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
(anonymous) @ errors.ts:184
n @ errors.ts:184
_scanAndHandleExtensions @ extensionService.ts:613
c.runWhenIdle @ extensionService.ts:384
requestIdleCallback (async)
t.runWhenIdle @ async.ts:710
e.when.then @ extensionService.ts:381
Promise.then (async)
_startDelayed @ extensionService.ts:379
e @ extensionService.ts:129
t.create @ types.ts:168
_createInstance @ instantiationService.ts:111
_createServiceInstance @ instantiationService.ts:218
_createServiceInstanceWithOwner @ instantiationService.ts:207
_createAndCacheServiceInstance @ instantiationService.ts:196
_getOrCreateServiceInstance @ instantiationService.ts:136
get @ instantiationService.ts:54
i.invokeFunction.e @ workbench.ts:196
invokeFunction @ instantiationService.ts:61
initServices @ workbench.ts:190
startup @ workbench.ts:131
c.domContentLoaded.then @ main.ts:124
Promise.then (async)
initServices.then.e @ main.ts:110
Promise.then (async)
open @ main.ts:108
t.main @ main.ts:328
(anonymous) @ workbench.js:30
Promise.then (async)
bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:26
e @ bootstrap-window.js:122
t._invokeFactory @ loader.js:993
t.complete @ loader.js:1003
s._onModuleComplete @ loader.js:1603
s._onModuleComplete @ loader.js:1615
s._resolve @ loader.js:1565
s.defineModule @ loader.js:1229
r @ loader.js:1653
f @ loader.js:807
(anonymous) @ gettingStarted.contribution.ts:18
(anonymous) @ fake:1
t._loadAndEvalScript @ loader.js:810
(anonymous) @ loader.js:791
readFileAfterClose @ fs.js:440
textMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///c%3A/Users/anders.swanson/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///c%3A/Users/anders.swanson/.vscode/extensions/redhat.vscode-yaml-0.4.0/syntaxes/yaml.tmLanguage.json
register @ textMateService.ts:52
_handleGrammarExtensionPointUser @ textMateService.ts:357
S.grammarsExtPoint.setHandler.e @ textMateService.ts:196
_handle @ extensionsRegistry.ts:144
acceptUsers @ extensionsRegistry.ts:135
_handleExtensionPoint @ extensionService.ts:787
_handleExtensionPoints @ extensionService.ts:637
(anonymous) @ extensionService.ts:620
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
(anonymous) @ errors.ts:184
n @ errors.ts:184
_scanAndHandleExtensions @ extensionService.ts:613
c.runWhenIdle @ extensionService.ts:384
requestIdleCallback (async)
t.runWhenIdle @ async.ts:710
e.when.then @ extensionService.ts:381
Promise.then (async)
_startDelayed @ extensionService.ts:379
e @ extensionService.ts:129
t.create @ types.ts:168
_createInstance @ instantiationService.ts:111
_createServiceInstance @ instantiationService.ts:218
_createServiceInstanceWithOwner @ instantiationService.ts:207
_createAndCacheServiceInstance @ instantiationService.ts:196
_getOrCreateServiceInstance @ instantiationService.ts:136
get @ instantiationService.ts:54
i.invokeFunction.e @ workbench.ts:196
invokeFunction @ instantiationService.ts:61
initServices @ workbench.ts:190
startup @ workbench.ts:131
c.domContentLoaded.then @ main.ts:124
Promise.then (async)
initServices.then.e @ main.ts:110
Promise.then (async)
open @ main.ts:108
t.main @ main.ts:328
(anonymous) @ workbench.js:30
Promise.then (async)
bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:26
e @ bootstrap-window.js:122
t._invokeFactory @ loader.js:993
t.complete @ loader.js:1003
s._onModuleComplete @ loader.js:1603
s._onModuleComplete @ loader.js:1615
s._resolve @ loader.js:1565
s.defineModule @ loader.js:1229
r @ loader.js:1653
f @ loader.js:807
(anonymous) @ gettingStarted.contribution.ts:18
(anonymous) @ fake:1
t._loadAndEvalScript @ loader.js:810
(anonymous) @ loader.js:791
readFileAfterClose @ fs.js:440
console.ts:134 [Extension Host] [vscode-icons] v8.5.0 activated!
console.ts:134 [Extension Host] (node:12864) [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
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:399
_invokeHandler @ rpcProtocol.ts:384
_receiveRequest @ rpcProtocol.ts:304
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:584
a @ ipc.net.ts:392
e @ ipc.net.ts:399
fire @ event.ts:584
_receiveMessage @ ipc.net.ts:678
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:549
fire @ event.ts:584
acceptChunk @ ipc.net.ts:212
_register._socket.onData.e @ ipc.net.ts:173
t @ ipc.net.ts:24
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
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: 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.exe
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe
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:c:\Users\anders.swanson\Documents\attrition\compute\get_data.py>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:c:\Users\anders.swanson\Documents\attrition\compute\get_data.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = exit
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:c:\Users\anders.swanson\Documents\attrition>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = exit
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:c:\Users\anders.swanson\Documents\attrition>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:c:\Users\anders.swanson\Documents\attrition>, Return Value: undefined
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: Detection of Python Interpreter for Command python3.6 and args  failed
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3 and args  failed
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python2 and args  failed
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command py and args -3.7 failed
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command py and args -3.6 failed
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command py and args -3 failed
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command py and args -2 failed
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Conda","cachedEntry":true,"envName":"base","envPath":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","displayName":"Python 3.7.0 64-bit ('base': conda)"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.56"
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.56"
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\anders.swanson\Documents\attrition\compute\get_data.py
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 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: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
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 = 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:c:\Users\anders.swanson\Documents\attrition>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:c:\Users\anders.swanson\Documents\attrition>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:c:\Users\anders.swanson\Documents\attrition>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Conda","cachedEntry":true,"envName":"base","envPath":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","displayName":"Python 3.7.0 64-bit ('base': conda)"}
console.ts:134 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 1
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Conda","cachedEntry":true,"envName":"base","envPath":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","displayName":"Python 3.7.0 64-bit ('base': conda)"}, 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:c:\Users\anders.swanson\Documents\attrition>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 2
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\anders.swanson\Documents\attrition\compute\get_data.py
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: 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.56"
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WindowsRegistryService are of count 1
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: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 8
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 9
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: Cached data exists getEnvironmentVariables, c:\Users\anders.swanson\Documents\attrition
console.ts:134 [Extension Host] Python Extension: Starting Language Server, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\anders.swanson\Documents\attrition\compute\get_data.py
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: Rule = settings, 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: Rule = settings, result = exit
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: undefined, Return Value: undefined
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: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","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.exe
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe
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: Current value for rule system is {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Conda","cachedEntry":true,"envName":"base","envPath":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","displayName":"Python 3.7.0 64-bit ('base': conda)"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Conda","envName":"base","envPath":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","displayName":"Python 3.7.0 64-bit ('base': conda)"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}, Arg 2: undefined, Return Value: false
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 = 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: 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: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","fileHash":"2f82c2f8d825b93e05291b18f604c40ba1e3db1f7ef6850f9eae3b19af0cef2f64903c55417667a970df7e0fd600588f047f0cb6b1e01d46e8b7caa242519b4f","companyDisplayName":"Anaconda, Inc.","type":"Conda","envName":"base","envPath":"C:\\Users\\anders.swanson\\AppData\\Local\\Continuum\\miniconda3","displayName":"Python 3.7.0 64-bit ('base': conda)"}, 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: 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: undefined, Return Value: undefined
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
console.ts:134 [Extension Host] Python Extension: Current value for rule workspaceEnvs is nothing
console.ts:134 [Extension Host] Python Extension: Activation Commands received C:/Users/anders.swanson/AppData/Local/Continuum/miniconda3/Scripts/activate,conda activate azure_automl
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\anders.swanson\Documents\attrition
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\anders.swanson\Documents\attrition
console.ts:134 [Extension Host] Python Extension: Has Custom Env Vars
console.ts:134 [Extension Host] Python Extension: Activating Environment to capture Environment variables, C:/Users/anders.swanson/AppData/Local/Continuum/miniconda3/Scripts/activate && conda activate azure_automl && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python C:/Users/anders.swanson/.vscode/extensions/ms-python.python-2019.3.6558/pythonFiles/printEnvVariables.py
console.ts:134 [Extension Host] Python Extension: parseEnvironmentOutput, Class name = b
console.ts:134 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = b, Arg 1: <Uri:c:\Users\anders.swanson\Documents\attrition>, Arg 2: undefined, Arg 3: undefined
notificationsAlerts.ts:40 There were some errors in discovering unit tests
onDidNotificationChange @ notificationsAlerts.ts:40
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:584
notify @ notifications.ts:113
notify @ notificationService.ts:53
r @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:399
_invokeHandler @ rpcProtocol.ts:384
_receiveRequest @ rpcProtocol.ts:304
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:584
a @ ipc.net.ts:392
e @ ipc.net.ts:399
fire @ event.ts:584
_receiveMessage @ ipc.net.ts:678
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:549
fire @ event.ts:584
acceptChunk @ ipc.net.ts:212
_register._socket.onData.e @ ipc.net.ts:173
t @ ipc.net.ts:24
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
DonJayamanne commented 5 years ago

Suggestion

dataders commented 5 years ago

@DonJayamanne just to be clear this is my experience:

My workaround is to:

My understanding is that if the suggestion would also require that the initial terminal be closed?

DonJayamanne commented 5 years ago

My understanding is that if the suggestion would also require that the initial terminal be closed?

Don't know yet. There are other scenarios we'll need to consider. Simple one, assume user is typing in the terminal, surely we cannot close it just to open another one. Also the label needs decision is used to discuss this issue and then decide on whether we proceed with this or not.

But for now, I do agree with the problem and we have a similar if not related issue #4581

popzxc commented 5 years ago

Is this bug is going to be fixed soon, or should I consider creating a pull request myself?

luabud commented 5 years ago

Hi @popzxc, happy to hear you're considering to create a PR :) this issue is tagged with "needs spec" because we first need to design the solutions for this, since we need to consider multiple scenarios (for example, like Don said, we can't just close the first terminal and open a new one because the first terminal may be being used)

popzxc commented 5 years ago

Well, it's indeed quite difficult to find a generic solution that will suit everyone's needs. However, my proposal is very simple: allow to get that behavior for those who explicitly wants it.

E.g., add a boolean value activateCurrentTerminal in extension settings, and in code write something like (pseudocode):

if (pythonSettings.activateCurrentTerminal && vscode.window.activeTerminal) {
    terminalActivator.activateEnvironmentInTerminal(vscode.window.activeTerminal, undefined, true);
}

So, it will be fully backward-compatible, and those who will consider current approach not convenient, will be able to get what they want.

qubitron commented 5 years ago

This seems like a good middle ground approach, after some testing/feedback, we could consider in the future prompting users if they would like to automatically create a new terminal when the python interpreter changes.

qubitron commented 5 years ago

@popzxc can you clarify if your PR creates a new terminal as soon as the python interpreter changes? Or just on first launch?

I would avoid trashing the existing one, since users may have state in the existing one that they don't want to lose accidentally.

I think the setting name can be updated to better reflect what the feature does.

popzxc commented 5 years ago

@qubitron It doesn't open a new terminal actually, it's indeed activates the currently used terminal (and I think it's reflected in the setting name).

So, with this setting enabled, currently used terminal is not trashed, but just gets activated, so user can continue working in it with all the state saved.

luabud commented 4 years ago

Validated 👍

ericsnowcurrently commented 4 years ago

@luabud

As already acknowledged above, the implementation in #7665 doesn't cover all the cases:

[In the case of the first one, it is effectively a bug for which we have provided a workaround ("change the setting to false"), but it would be nice if we could find a way to make it work. I'm not sure the VS Code API gives us much opportunity though. We would need to know that the terminal is waiting at a new shell prompt. It would help if we had a shell-oriented API that let us introspect/inject on a per-prompt basis, but I'm not going to hold my breath. :) ]

Should we open new issues for the remaining cases?

luabud commented 4 years ago

Thanks @ericsnowcurrently, that's a very good point. I created https://github.com/microsoft/vscode-python/issues/8907 to track the spec for the remaining cases.