Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open a new terminal when extension gets activated #5330

Closed
dataders opened this issue Apr 17, 2019 · 12 comments
Closed

Open a new terminal when extension gets activated #5330

dataders opened this issue Apr 17, 2019 · 12 comments
Assignees
Labels
area-terminal feature-request Request for new features or functionality

Comments

@dataders
Copy link

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: Microsoft Windows Enterprise 10 10.0.17763 Build 17763
  • Python version (& distribution if applicable, e.g. Anaconda): miniconda3 Python 3.6.7 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: all

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
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Apr 17, 2019
@DonJayamanne DonJayamanne changed the title terminal Environment not activated in terminal (opened before extension gets activated) Apr 18, 2019
@DonJayamanne DonJayamanne added area-terminal feature-request Request for new features or functionality labels Apr 18, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Apr 18, 2019
@DonJayamanne DonJayamanne self-assigned this Apr 18, 2019
@DonJayamanne DonJayamanne removed their assignment May 30, 2019
@DonJayamanne
Copy link

DonJayamanne commented May 30, 2019

Suggestion

@DonJayamanne DonJayamanne changed the title Environment not activated in terminal (opened before extension gets activated) Open a new terminal when extension gets activated May 30, 2019
@dataders
Copy link
Author

@DonJayamanne just to be clear this is my experience:

  • open VSCode which starts with a terminal open
  • terminal looks like the screenshot above and never changes even after Python extension loads.

My workaround is to:

  • close the stalled initial terminal and load a new one.

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

@DonJayamanne
Copy link

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
Copy link

popzxc commented Sep 23, 2019

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

@luabud
Copy link
Member

luabud commented Sep 23, 2019

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
Copy link

popzxc commented Sep 24, 2019

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
Copy link

qubitron commented Oct 1, 2019

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
Copy link

qubitron commented Oct 1, 2019

@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
Copy link

popzxc commented Oct 2, 2019

@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
Copy link
Member

luabud commented Nov 18, 2019

Validated 👍

@luabud luabud closed this as completed Nov 18, 2019
@ghost ghost removed the needs proposal Need to make some design decisions label Nov 18, 2019
@ericsnowcurrently
Copy link
Member

@luabud

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

  • terminal is not ready or at a new prompt when the extension "types" the activation command (e.g. user is typing in the terminal or the terminal is running a command)
  • switch the activated Python env in the current [Python?] terminal when the user selects a different interpreter
  • ...

[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?

@lock lock bot locked as resolved and limited conversation to collaborators Nov 26, 2019
@luabud
Copy link
Member

luabud commented Dec 4, 2019

Thanks @ericsnowcurrently, that's a very good point. I created #8907 to track the spec for the remaining cases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

10 participants