microsoft / vscode-python

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

Standard test discovery pattern "*test*.py" does not discover foo.test.py #5738

Closed chaselal closed 5 years ago

chaselal commented 5 years ago

Environment data

VS Code information:

Version: 1.34.0 (user setup)
Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758
Date: 2019-05-15T21:59:37.030Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17134

Extension information:

Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.
Version: 2019.4.12954
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

Expected behaviour

The extension discovers unittest tests named like foo.test.py.

Actual behaviour

The extension fails to discover the tests.

Steps to reproduce:

Repro project: vscode-python-bug.zip

  1. Make a file with unittest tests. Name the file foo.test.py.
  2. Run the command Python: Configure Tests
  3. Choose unittest
  4. Choose . (Root directory)
  5. Choose *test*.py
  6. Tests are not discovered
  7. Open the Test tab
  8. Click the Discover Tests button
  9. Tests are not discovered

Logs

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

Nothing for Python. For Python Test, I get logs like this when I try to run all tests or click the Discover Tests button repeatedly:

start
start
start
start

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
start

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)

workbench.main.js:3272 [Extension Host] debugger listening on port 18780
workbench.main.js:3270 Extension Host
workbench.main.js:3270 Debugger attached.

workbench.main.js:238 [Extension Host] (node:364) [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 @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe
workbench.main.js:238 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = p, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug\foo.test.py>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug\foo.test.py>, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:238 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.7 and args  failed
workbench.main.js:238 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.6 and args  failed
workbench.main.js:238 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3 and args  failed
workbench.main.js:238 [Extension Host] Python Extension: Detection of Python Interpreter for Command python2 and args  failed
workbench.main.js:238 [Extension Host] Python Extension: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from settings
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Detection of Python Interpreter for Command py and args -2 failed as file  does not exist
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Python Extension: Detection of Python Interpreter for Command py and args -3.6 failed as file  does not exist
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 2
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
workbench.main.js:238 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown"}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
workbench.main.js:238 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from settings
workbench.main.js:238 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug\foo.test.py>, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug\foo.test.py
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}
workbench.main.js:238 [Extension Host] Python Extension: Detection of Python Interpreter for Command py and args -3.7 failed as file  does not exist
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Python Extension: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from settings
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Activation Commands received undefined
workbench.main.js:238 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = S, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Arg 2: undefined, Arg 3: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from windowsRegistry
workbench.main.js:238 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from currentPath
workbench.main.js:238 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 3
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Rule = system, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from system
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
workbench.main.js:238 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
workbench.main.js:238 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from settings
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown"}
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe
workbench.main.js:238 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe
workbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = p, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown"}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}
workbench.main.js:238 [Extension Host] Python Extension: Current value for rule workspaceEnvs is nothing
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Python Extension: Failed to get interpreter information for 'C:\Users\Chase\Anaconda3\python.exe' Error: spawn C:\Users\Chase\Anaconda3\python.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Python Extension: Failed to get interpreter information for 'C:\Users\Chase\Anaconda3\python.exe' Error: spawn C:\Users\Chase\Anaconda3\python.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","type":"Unknown"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from windowsRegistry
workbench.main.js:238 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from currentPath
workbench.main.js:238 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"C:\\Python34\\python.exe","version":{"raw":"3.4.0-final","major":3,"minor":4,"patch":0,"prerelease":["final"],"build":[],"version":"3.4.0-final"},"sysPrefix":"C:\\Python34","fileHash":"66f3a71cf09286487c0f09719f0ea127c63f4a9a7508d99744d98c3e51088b805a7248d41e4bb4eef9367bff4b93a25c0f229751bdfde506f8b1e4d93b8b2ad3","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true,"displayName":"Python 3.4.0 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Python Extension: Rule = system, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from system
workbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WindowsRegistryService are of count 2
workbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
workbench.main.js:238 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug\foo.test.py
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists ActivatedEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = S, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Arg 2: undefined, Arg 3: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists ActivatedEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = S, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Arg 2: undefined, Arg 3: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
// I'm going to click the Discover Tests button
undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists ActivatedEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
workbench.main.js:238 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = S, Arg 1: <Uri:c:\Users\Chase\projects\vscode-python-bug>, Arg 2: undefined, Arg 3: undefined
workbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\Chase\projects\vscode-python-bug
// I clicked it
undefined
brettcannon commented 5 years ago

Can you provide the command-line that you use which does discover and run the tests normally? Otherwise I suspect unittest itself cannot discover a file named foo.test.py as that is not a name Python can import.

chaselal commented 5 years ago

I only tried the extension's test runner. I did not know the file name format was incompatible with Python imports. I am new to Python. Sounds like this issue can be closed.

On Thu, May 23, 2019, 1:38 PM Brett Cannon notifications@github.com wrote:

Can you provide the command-line that you use which does discover and run the tests normally? Otherwise I suspect unittest itself cannot discover a file named foo.test.py as that is not a name Python can import.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-python/issues/5738?email_source=notifications&email_token=AA57GK54FXHBS6VKQVNLAWLPW3JA3A5CNFSM4HPA4E7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWC6OTY#issuecomment-495314767, or mute the thread https://github.com/notifications/unsubscribe-auth/AA57GKYWXIUCOSFBTSMP4K3PW3JA3ANCNFSM4HPA4E7A .

karrtikr commented 5 years ago

Yes, in order to resolve the import foo.test.py, python will look for a module named foo, which does not exist. Hence discovery will fail, closing this issue.