microsoft / vscode-python

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

Repeatedly prompts: Test framework pytest is not installed. Install? #6513

Closed AnneTheAgile closed 5 years ago

AnneTheAgile commented 5 years ago

This ticket is to reopen the issue seen in prior but closed for lack of fb.

The helper pointed to more than the one I saw; Repeatedly prompts "Test framework pytest is not installed. Install?"

2511 opened on Sep 6, 2018 by dazzag24 • updated on Oct 4, 2018

Repeatedly prompts: Test framework pytest is not installed. Install?

2512 opened on Sep 6, 2018 by dazzag24 • updated on Dec 27, 2018

"Test framework pytest is not installed. Install?" even though it is installed.

5919 opened on Jun 5 by ericsnowcurrently • updated on Jun 5

Test framework undefined is not installed. Install?

5220 opened on Apr 11 by david-waterworth • updated on May 16

Environment data

Expected behaviour

open up vscode to project where test explorer worked and you see test explorer

Actual behaviour

prompt for installing again, after I have done repeatedly

Steps to reproduce:

not sure yet

Logs

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


Traceback (most recent call last):
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/run_adapter.py", line 16, in <module>
    main(tool, cmd, subargs, toolargs)
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/__main__.py", line 90, in main
    parents, result = run(toolargs, **subargs)
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 34, in discover
    raise Exception('pytest discovery failed (exit code {})'.format(ec))
Exception: pytest discovery failed (exit code 2)

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:293 [Extension Host] debugger listening on port 7430
abstractExtensionService.ts:392 Couldn't find message for key AI_KEY.
_logMessageInConsole @ abstractExtensionService.ts:392
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///Applications/_apps/edit-code/vscode-ms-python/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///Users/me/.vscode/extensions/magicstack.magicpython-1.1.0/grammars/MagicPython.tmLanguage
register @ abstractTextMateService.ts:52
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.ruby.
Old grammar file: file:///Applications/_apps/edit-code/vscode-ms-python/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/ruby/syntaxes/ruby.tmLanguage.json.
New grammar file: file:///Users/me/.vscode/extensions/rebornix.ruby-0.24.0/syntaxes/ruby.cson.json
register @ abstractTextMateService.ts:52
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///Applications/_apps/edit-code/vscode-ms-python/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///Users/me/.vscode/extensions/redhat.vscode-yaml-0.4.1/syntaxes/yaml.tmLanguage.json
register @ abstractTextMateService.ts:52
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope text.yaml.jinja.
Old grammar file: file:///Users/me/.vscode/extensions/korekontrol.saltstack-0.0.5/syntaxes/sls.json.
New grammar file: file:///Users/me/.vscode/extensions/samuelcolvin.jinjahtml-0.10.5/syntaxes/jinja-yaml.tmLanguage.json
register @ abstractTextMateService.ts:52
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.jinja.
Old grammar file: file:///Users/me/.vscode/extensions/korekontrol.saltstack-0.0.5/syntaxes/jinja.json.
New grammar file: file:///Users/me/.vscode/extensions/samuelcolvin.jinjahtml-0.10.5/syntaxes/jinja.tmLanguage.json
register @ abstractTextMateService.ts:52
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.jinja.
Old grammar file: file:///Users/me/.vscode/extensions/samuelcolvin.jinjahtml-0.10.5/syntaxes/jinja.tmLanguage.json.
New grammar file: file:///Users/me/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja.json
register @ abstractTextMateService.ts:52
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope text.html.jinja.
Old grammar file: file:///Users/me/.vscode/extensions/samuelcolvin.jinjahtml-0.10.5/syntaxes/jinja-html.tmLanguage.json.
New grammar file: file:///Users/me/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-html.json
register @ abstractTextMateService.ts:52
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope text.yaml.jinja.
Old grammar file: file:///Users/me/.vscode/extensions/samuelcolvin.jinjahtml-0.10.5/syntaxes/jinja-yaml.tmLanguage.json.
New grammar file: file:///Users/me/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-yaml.json
register @ abstractTextMateService.ts:52
console.ts:134 [Extension Host] (node:3702) [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
mainThreadExtensionService.ts:60 [[object Object]]Cannot read property 'document' of undefined
$onExtensionRuntimeError @ mainThreadExtensionService.ts:60
mainThreadExtensionService.ts:61 TypeError: Cannot read property 'document' of undefined
    at context.subscriptions.push.vscode.window.onDidChangeActiveTextEditor.editor (/Users/me/.vscode/extensions/cameron.vscode-pytest-0.1.1/out/extension.js:97)
    at u.fire (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:48)
    at define.constructor._extHostDocumentsAndEditors.onDidChangeActiveTextEditor.e (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:599)
    at u.fire (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:48)
    at u.$acceptDocumentsAndEditorsDelta (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:535)
    at d._doInvokeHandler (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:653)
    at d._invokeHandler (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:653)
    at d._receiveRequest (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:652)
    at d._receiveOneMessage (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:651)
    at define.constructor._protocol.onMessage.e (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:649)
    at u.fire (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:48)
    at a (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:177)
    at e (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:177)
    at u.fire (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:48)
    at n.constructor.e.onMessage.e (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:758)
    at u.fire (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:48)
    at a (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:177)
    at e (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:177)
    at u.fire (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:48)
    at y._receiveMessage (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:186)
    at define.constructor._socketDisposables.push._socketReader.onMessage.e (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:183)
    at u.fire (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:48)
    at f.acceptChunk (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:180)
    at define.constructor._register._socket.onData.e (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:179)
    at Socket.t (/Applications/_apps/edit-code/vscode-ms-python/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:188)
    at Socket.emit (events.js:182)
    at addChunk (_stream_readable.js:283)
    at readableAddChunk (_stream_readable.js:264)
    at Socket.Readable.push (_stream_readable.js:219)
    at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:61
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Notify locators are locating, Class name = p, completed in 2ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Register Intepreter Watcher, Class name = p, completed in 5ms, Arg 1: <Uri:extension-output-#4>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Build the workspace interpreter watcher, Class name = h, completed in 6ms, Arg 1: <Uri:extension-output-#4>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: autoSelectInterpreter, Class name = f, completed in 495ms, Arg 1: <Uri:extension-output-#4>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: autoSelectInterpreter, Class name = f, completed in 3ms, Arg 1: <Uri:extension-output-#4>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Build the workspace interpreter watcher, Class name = h, completed in 2ms, Arg 1: <Uri:extension-output-#4>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: autoSelectInterpreter, Class name = f, completed in 5ms, Arg 1: <Uri:extension-output-#4>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: autoSelectInterpreter, Class name = f, completed in 4ms, Arg 1: <Uri:extension-output-#4>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: autoSelectInterpreter, Class name = f, completed in 0ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Executing next rule from workspaceEnvs
3console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: autoSelectInterpreter, Class name = f, completed in 3ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Detection of Python Interpreter for Command python3.6 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Current value for rule system is {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Current value for rule currentPath is {"architecture":3,"path":"/usr/local/opt/python/bin/python3.7","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7","fileHash":"b86eae99c36bab049862db5f16b37814ff4022ae1ea8dec2453d1b674a40ac9c20178aea1559b6c37639d9d5b4205d24b161ebd7eb21ab9e4fe4810d0cfc18dc","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:28: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/local/opt/python/bin/python3.7","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7","fileHash":"b86eae99c36bab049862db5f16b37814ff4022ae1ea8dec2453d1b674a40ac9c20178aea1559b6c37639d9d5b4205d24b161ebd7eb21ab9e4fe4810d0cfc18dc","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/local/opt/python/bin/python3.7","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7","fileHash":"b86eae99c36bab049862db5f16b37814ff4022ae1ea8dec2453d1b674a40ac9c20178aea1559b6c37639d9d5b4205d24b161ebd7eb21ab9e4fe4810d0cfc18dc","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Register Intepreter Watcher, Class name = p, completed in 1ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Build the workspace interpreter watcher, Class name = h, completed in 2ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Current value for rule system is {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Current value for rule currentPath is {"architecture":3,"path":"/usr/local/opt/python/bin/python3.7","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7","fileHash":"b86eae99c36bab049862db5f16b37814ff4022ae1ea8dec2453d1b674a40ac9c20178aea1559b6c37639d9d5b4205d24b161ebd7eb21ab9e4fe4810d0cfc18dc","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Get language server folder name, Class name = f, completed in 292ms, Arg 1: <Uri:extension-output-#4>, Return Value: "languageServer.0.3.20"
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Get language server folder name, Class name = f, completed in 22ms, Arg 1: <Uri:extension-output-#4>, Return Value: "languageServer.0.3.20"
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Cached data exists getEnvironmentVariables, extension-output-#4
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Cached data exists getEnvironmentVariables, extension-output-#4
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Activation Commands received undefined for shell bash
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: getActivatedEnvironmentVariables, Class name = b, completed in 0ms, Arg 1: <Uri:extension-output-#4>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Cached data exists getEnvironmentVariables, extension-output-#4
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Get language server folder name, Class name = f, completed in 7ms, Arg 1: <Uri:extension-output-#4>, Return Value: "languageServer.0.3.20"
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Selected Interpreter from system, {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: setGlobalInterpreter, Class name = f, completed in 496ms, Arg 1: {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: autoSelectInterpreter, Class name = f, completed in 746ms, Arg 1: <Uri:extension-output-#4>, Return Value: undefined
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: setGlobalInterpreter, Class name = f, completed in 656ms, Arg 1: {"architecture":3,"path":"/usr/local/opt/python/bin/python3.7","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7","fileHash":"b86eae99c36bab049862db5f16b37814ff4022ae1ea8dec2453d1b674a40ac9c20178aea1559b6c37639d9d5b4205d24b161ebd7eb21ab9e4fe4810d0cfc18dc","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Executing next rule from currentPath
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: autoSelectInterpreter, Class name = f, completed in 908ms, Arg 1: <Uri:extension-output-#4>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: setGlobalInterpreter, Class name = f, completed in 643ms, Arg 1: {"architecture":3,"path":"/usr/local/opt/python/bin/python3.7","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7","fileHash":"b86eae99c36bab049862db5f16b37814ff4022ae1ea8dec2453d1b674a40ac9c20178aea1559b6c37639d9d5b4205d24b161ebd7eb21ab9e4fe4810d0cfc18dc","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Executing next rule from currentPath
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: autoSelectInterpreter, Class name = f, completed in 866ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Selected Interpreter from system, {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: setGlobalInterpreter, Class name = f, completed in 682ms, Arg 1: {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: autoSelectInterpreter, Class name = f, completed in 920ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Interpreters returned by VirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Interpreters returned by KnownPathsService are of count 17
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Interpreters returned by CurrentPathService are of count 5
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: setGlobalInterpreter, Class name = f, completed in 260ms, Arg 1: {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Executing next rule from system
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: autoSelectInterpreter, Class name = f, completed in 994ms, Arg 1: <Uri:extension-output-#4>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: setGlobalInterpreter, Class name = f, completed in 42ms, Arg 1: {"architecture":3,"path":"/Users/me/miniconda2/envs/py37on2/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/Users/me/miniconda2/envs/py37on2","fileHash":"15f0eb411c8377726241870fa8b8219a63053bbb8033e10ecab120ac26d082d94e1c9797b2bf73c9bc158115b4a5d440ac50c38ded76bd747d152bda8a230220","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/me/miniconda2/envs/py37on2","envName":"py37on2","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('py37on2': conda)"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: Executing next rule from system
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:29: autoSelectInterpreter, Class name = f, completed in 955ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:34: Cached data exists getEnvironmentVariables, <No Resource>
2console.ts:134 [Extension Host] Warn Python Extension: 2019-07-09 15:14:38: Unknown command line option passed into args parser for tests '--spec'. Please report on https://github.com/Microsoft/vscode-python/issues/new
t.log @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Cached data exists getEnvironmentVariables, /Users/me/developer/src/cicdtools
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Activation Commands received undefined for shell bash
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: getActivatedEnvironmentVariables, Class name = b, completed in 2ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Arg 2: undefined, Arg 3: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Cached data exists getEnvironmentVariables, /Users/me/developer/src/cicdtools
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Starting Language Server, Class name = d, completed in 8966ms, , Return Value: undefined
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Cached data exists getEnvironmentVariables, extension-output-#4
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Shell path from user settings 'null'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Shell path '/bin/bash'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Shell path identified as shell 'bash'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Shell path from user env '/bin/bash'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Shell identified as 'bash'
3console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:38: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:40: Interpreters returned by CondaEnvFileService are of count 10
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:40: Interpreters returned by CondaEnvService are of count 12
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:40: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:40: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:40: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:14:41: Current value for rule workspaceEnvs is nothing
console.ts:134 [Extension Host] Error Python Extension: 2019-07-09 15:14:42: Failed to parse discovered Test [Error: ============================= test session starts ==============================platform darwin -- Python 2.7.15, pytest-4.6.3, py-1.5.3, pluggy-0.12.0rootdir: /Users/me/developer/src/cicdtoolsplugins: xdist-1.29.0, forked-1.0.2, spec-1.1.0collected 24 items / 1 errors / 23 selected<Package /Users/me/developer/src/cicdtools/machines/gather>  <Module test_pipapp_1.py>    <UnitTestCase PipAppConstructorsTestCase>      <TestCaseFunction test__construct_by_file_gives_content>      <TestCaseFunction test__construct_by_string_gives_appname>  <Module test_pipapp_2.py>    <UnitTestCase PipAppTestCase>      <TestCaseFunction test_installed_version_of_pytest_exists>      <TestCaseFunction test_main_call_exists>      <TestCaseFunction test_main_with_wrong_args_raises>      <TestCaseFunction test_pipapp_callable_within_unittest>      <TestCaseFunction test_pipapp_config_cannot_be_null>      <TestCaseFunction test_pipapp_has_pkg_version>      <TestCaseFunction test_setUp1>  <Module test_pipapp_3.py>    <UnitTestCase UtilsTestCase>      <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>      <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>      <TestCaseFunction test_setUp1><Module machines/gather.190708m_am/test_pipapp_1.py>  <UnitTestCase PipAppConstructorsTestCase>    <TestCaseFunction test__construct_by_file_gives_content>    <TestCaseFunction test__construct_by_string_gives_appname><Module machines/gather.190708m_am/test_pipapp_2.py>  <UnitTestCase PipAppTestCase>    <TestCaseFunction test_installed_version_of_pytest_exists>    <TestCaseFunction test_main_call_exists>    <TestCaseFunction test_main_with_wrong_args_raises>    <TestCaseFunction test_pipapp_callable_within_unittest>    <TestCaseFunction test_pipapp_config_cannot_be_null>    <TestCaseFunction test_pipapp_has_pkg_version>    <TestCaseFunction test_setUp1><Module machines/gather.190708m_am/test_pipapp_3.py>  <UnitTestCase UtilsTestCase>    <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>    <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>    <TestCaseFunction test_setUp1>==================================== ERRORS ====================================___ ERROR collecting machines/gather.190708m_am/test_pipapp_0_-only-am.am.py ___ImportError while importing test module '/Users/me/developer/src/cicdtools/machines/gather.190708m_am/test_pipapp_0_-only-am.am.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:ImportError: No module named test_pipapp_0_-only-am.am!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!=========================== 1 error in 1.84 seconds ============================Traceback (most recent call last):  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/run_adapter.py", line 16, in <module>    main(tool, cmd, subargs, toolargs)  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/__main__.py", line 90, in main    parents, result = run(toolargs, **subargs)  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 34, in discover    raise Exception('pytest discovery failed (exit code {})'.format(ec))Exception: pytest discovery failed (exit code 2)    at ChildProcess.module.exports.exec.c.once (/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/out/client/extension.js:9:37440) at Object.onceWrapper (events.js:273:13)    at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16)    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)]
t.log @ console.ts:134
notificationsAlerts.ts:40 Test framework pytest is not installed. Install?
onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] Python Extension: displayDiscoverStatus Error: ============================= test session starts ==============================
platform darwin -- Python 2.7.15, pytest-4.6.3, py-1.5.3, pluggy-0.12.0
rootdir: /Users/me/developer/src/cicdtools
plugins: xdist-1.29.0, forked-1.0.2, spec-1.1.0
collected 24 items / 1 errors / 23 selected
<Package /Users/me/developer/src/cicdtools/machines/gather>
  <Module test_pipapp_1.py>
    <UnitTestCase PipAppConstructorsTestCase>
      <TestCaseFunction test__construct_by_file_gives_content>
      <TestCaseFunction test__construct_by_string_gives_appname>
  <Module test_pipapp_2.py>
    <UnitTestCase PipAppTestCase>
      <TestCaseFunction test_installed_version_of_pytest_exists>
      <TestCaseFunction test_main_call_exists>
      <TestCaseFunction test_main_with_wrong_args_raises>
      <TestCaseFunction test_pipapp_callable_within_unittest>
      <TestCaseFunction test_pipapp_config_cannot_be_null>
      <TestCaseFunction test_pipapp_has_pkg_version>
      <TestCaseFunction test_setUp1>
  <Module test_pipapp_3.py>
    <UnitTestCase UtilsTestCase>
      <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>
      <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>
      <TestCaseFunction test_setUp1>
<Module machines/gather.190708m_am/test_pipapp_1.py>
  <UnitTestCase PipAppConstructorsTestCase>
    <TestCaseFunction test__construct_by_file_gives_content>
    <TestCaseFunction test__construct_by_string_gives_appname>
<Module machines/gather.190708m_am/test_pipapp_2.py>
  <UnitTestCase PipAppTestCase>
    <TestCaseFunction test_installed_version_of_pytest_exists>
    <TestCaseFunction test_main_call_exists>
    <TestCaseFunction test_main_with_wrong_args_raises>
    <TestCaseFunction test_pipapp_callable_within_unittest>
    <TestCaseFunction test_pipapp_config_cannot_be_null>
    <TestCaseFunction test_pipapp_has_pkg_version>
    <TestCaseFunction test_setUp1>
<Module machines/gather.190708m_am/test_pipapp_3.py>
  <UnitTestCase UtilsTestCase>
    <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>
    <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>
    <TestCaseFunction test_setUp1>

==================================== ERRORS ====================================
___ ERROR collecting machines/gather.190708m_am/test_pipapp_0_-only-am.am.py ___
ImportError while importing test module '/Users/me/developer/src/cicdtools/machines/gather.190708m_am/test_pipapp_0_-only-am.am.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
ImportError: No module named test_pipapp_0_-only-am.am
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 1.84 seconds ============================

Traceback (most recent call last):
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/run_adapter.py", line 16, in <module>
    main(tool, cmd, subargs, toolargs)
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/__main__.py", line 90, in main
    parents, result = run(toolargs, **subargs)
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 34, in discover
    raise Exception('pytest discovery failed (exit code {})'.format(ec))
Exception: pytest discovery failed (exit code 2)

    at ChildProcess.module.exports.exec.c.once (/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/out/client/extension.js:9:37440)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
t.log @ console.ts:134
2console.ts:134 [Extension Host] Warn Python Extension: 2019-07-09 15:15:13: Unknown command line option passed into args parser for tests '--spec'. Please report on https://github.com/Microsoft/vscode-python/issues/new
t.log @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:15:13: Cached data exists ActivatedEnvironmentVariables, /Users/me/developer/src/cicdtools
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:15:13: getActivatedEnvironmentVariables, Class name = b, completed in 1ms, Arg 1: <Uri:/Users/me/developer/src/cicdtools>, Arg 2: undefined, Arg 3: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-09 15:15:13: Cached data exists getEnvironmentVariables, /Users/me/developer/src/cicdtools
console.ts:134 [Extension Host] Error Python Extension: 2019-07-09 15:15:15: Failed to parse discovered Test [Error: ============================= test session starts ==============================platform darwin -- Python 2.7.15, pytest-4.6.3, py-1.5.3, pluggy-0.12.0rootdir: /Users/me/developer/src/cicdtoolsplugins: xdist-1.29.0, forked-1.0.2, spec-1.1.0collected 24 items / 1 errors / 23 selected<Package /Users/me/developer/src/cicdtools/machines/gather>  <Module test_pipapp_1.py>    <UnitTestCase PipAppConstructorsTestCase>      <TestCaseFunction test__construct_by_file_gives_content>      <TestCaseFunction test__construct_by_string_gives_appname>  <Module test_pipapp_2.py>    <UnitTestCase PipAppTestCase>      <TestCaseFunction test_installed_version_of_pytest_exists>      <TestCaseFunction test_main_call_exists>      <TestCaseFunction test_main_with_wrong_args_raises>      <TestCaseFunction test_pipapp_callable_within_unittest>      <TestCaseFunction test_pipapp_config_cannot_be_null>      <TestCaseFunction test_pipapp_has_pkg_version>      <TestCaseFunction test_setUp1>  <Module test_pipapp_3.py>    <UnitTestCase UtilsTestCase>      <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>      <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>      <TestCaseFunction test_setUp1><Module machines/gather.190708m_am/test_pipapp_1.py>  <UnitTestCase PipAppConstructorsTestCase>    <TestCaseFunction test__construct_by_file_gives_content>    <TestCaseFunction test__construct_by_string_gives_appname><Module machines/gather.190708m_am/test_pipapp_2.py>  <UnitTestCase PipAppTestCase>    <TestCaseFunction test_installed_version_of_pytest_exists>    <TestCaseFunction test_main_call_exists>    <TestCaseFunction test_main_with_wrong_args_raises>    <TestCaseFunction test_pipapp_callable_within_unittest>    <TestCaseFunction test_pipapp_config_cannot_be_null>    <TestCaseFunction test_pipapp_has_pkg_version>    <TestCaseFunction test_setUp1><Module machines/gather.190708m_am/test_pipapp_3.py>  <UnitTestCase UtilsTestCase>    <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>    <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>    <TestCaseFunction test_setUp1>==================================== ERRORS ====================================___ ERROR collecting machines/gather.190708m_am/test_pipapp_0_-only-am.am.py ___ImportError while importing test module '/Users/me/developer/src/cicdtools/machines/gather.190708m_am/test_pipapp_0_-only-am.am.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:ImportError: No module named test_pipapp_0_-only-am.am!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!=========================== 1 error in 0.70 seconds ============================Traceback (most recent call last):  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/run_adapter.py", line 16, in <module>    main(tool, cmd, subargs, toolargs)  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/__main__.py", line 90, in main    parents, result = run(toolargs, **subargs)  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 34, in discover    raise Exception('pytest discovery failed (exit code {})'.format(ec))Exception: pytest discovery failed (exit code 2)    at ChildProcess.module.exports.exec.c.once (/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/out/client/extension.js:9:37440) at Object.onceWrapper (events.js:273:13)    at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16)    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)]
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: displayDiscoverStatus Error: ============================= test session starts ==============================
platform darwin -- Python 2.7.15, pytest-4.6.3, py-1.5.3, pluggy-0.12.0
rootdir: /Users/me/developer/src/cicdtools
plugins: xdist-1.29.0, forked-1.0.2, spec-1.1.0
collected 24 items / 1 errors / 23 selected
<Package /Users/me/developer/src/cicdtools/machines/gather>
  <Module test_pipapp_1.py>
    <UnitTestCase PipAppConstructorsTestCase>
      <TestCaseFunction test__construct_by_file_gives_content>
      <TestCaseFunction test__construct_by_string_gives_appname>
  <Module test_pipapp_2.py>
    <UnitTestCase PipAppTestCase>
      <TestCaseFunction test_installed_version_of_pytest_exists>
      <TestCaseFunction test_main_call_exists>
      <TestCaseFunction test_main_with_wrong_args_raises>
      <TestCaseFunction test_pipapp_callable_within_unittest>
      <TestCaseFunction test_pipapp_config_cannot_be_null>
      <TestCaseFunction test_pipapp_has_pkg_version>
      <TestCaseFunction test_setUp1>
  <Module test_pipapp_3.py>
    <UnitTestCase UtilsTestCase>
      <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>
      <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>
      <TestCaseFunction test_setUp1>
<Module machines/gather.190708m_am/test_pipapp_1.py>
  <UnitTestCase PipAppConstructorsTestCase>
    <TestCaseFunction test__construct_by_file_gives_content>
    <TestCaseFunction test__construct_by_string_gives_appname>
<Module machines/gather.190708m_am/test_pipapp_2.py>
  <UnitTestCase PipAppTestCase>
    <TestCaseFunction test_installed_version_of_pytest_exists>
    <TestCaseFunction test_main_call_exists>
    <TestCaseFunction test_main_with_wrong_args_raises>
    <TestCaseFunction test_pipapp_callable_within_unittest>
    <TestCaseFunction test_pipapp_config_cannot_be_null>
    <TestCaseFunction test_pipapp_has_pkg_version>
    <TestCaseFunction test_setUp1>
<Module machines/gather.190708m_am/test_pipapp_3.py>
  <UnitTestCase UtilsTestCase>
    <TestCaseFunction test__valid_json_str__emptyMap_throws_valueError>
    <TestCaseFunction test__write_json_file__pipapp_pytest_outputs>
    <TestCaseFunction test_setUp1>

==================================== ERRORS ====================================
___ ERROR collecting machines/gather.190708m_am/test_pipapp_0_-only-am.am.py ___
ImportError while importing test module '/Users/me/developer/src/cicdtools/machines/gather.190708m_am/test_pipapp_0_-only-am.am.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
ImportError: No module named test_pipapp_0_-only-am.am
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.70 seconds ============================

Traceback (most recent call last):
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/run_adapter.py", line 16, in <module>
    main(tool, cmd, subargs, toolargs)
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/__main__.py", line 90, in main
    parents, result = run(toolargs, **subargs)
  File "/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 34, in discover
    raise Exception('pytest discovery failed (exit code {})'.format(ec))
Exception: pytest discovery failed (exit code 2)

    at ChildProcess.module.exports.exec.c.once (/Users/me/.vscode/extensions/ms-python.python-2019.6.22090/out/client/extension.js:9:37440)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
AnneTheAgile commented 5 years ago

Now I am going to try a few things and will update, eg answer this question that I saw;

Reference; https://github.com/Microsoft/vscode-python/issues/2512 @owencjonesCan you try running the same script using  -m pytest (using the fully qualified path to your python environment)Next, can you try adding the following setting in your workspace .vscode/settings.json file:"python.unitTest.pyTestPath": "/Users/owen/.local/share/virtualenvs/response-operations-ui-UKi5yJkT/bin/pytest"Please let us know how both work out.

AnneTheAgile commented 5 years ago

Interesting. OK in this case I had a misnamed file . The significant error from above was clearer in commandline;

$ pytest --spec
=============================== test session starts ================================
platform darwin -- Python 2.7.15, pytest-4.6.3, py-1.5.3, pluggy-0.12.0
rootdir: /Users/me/developer/src/cicdtools
plugins: xdist-1.29.0, forked-1.0.2, spec-1.1.0
collected 24 items / 1 errors / 23 selected                                        

====================================== ERRORS ======================================
_____ ERROR collecting machines/gather.190708m_am/test_pipapp_0_-only-am.am.py _____
ImportError while importing test module '/Users/me/developer/src/cicdtools/machines/gather.190708m_am/test_pipapp_0_-only-am.am.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
ImportError: No module named test_pipapp_0_-only-am.am
!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!
============================= 1 error in 0.65 seconds ==============================

Once I renamed test_pipapp0-only-am.am.py to remove dashes, all was well .

AnneTheAgile commented 5 years ago

closing ok for me and hopefully help future me and/or someone else!