Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cannot load Python REPL in VS Code #828

Closed
yw5aj opened this issue Feb 20, 2018 · 7 comments · Fixed by #829
Closed

Cannot load Python REPL in VS Code #828

yw5aj opened this issue Feb 20, 2018 · 7 comments · Fixed by #829
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug

Comments

@yw5aj
Copy link

yw5aj commented Feb 20, 2018

Environment data

VS Code version: 1.20.1
Python Extension version: 2018.1.0
Python Version: 3.6 64 bit
OS and version: Windows 10 64 bit

Actual behavior

I installed VS Code using the default Anaconda installer (added feature on 2/17/2018). Then, I tried to load the Python REPL (control + shift + P, then Python: Start REPL). However, nothing happened; in the terminal below, it's just Windows Powershell.
capture

Expected behavior

A Python interpreter to show up.

Steps to reproduce:

  1. Install VS Code using the default Anaconda installer
  2. Then, load the Python REPL (control + shift + P, then Python: Start REPL).

Logs

Output from Python output panel


Output from Console window (Help->Developer Tools menu)


/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Python Extension: Failed to get conda environment list from conda null
t.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253
console.ts:123 [Extension Host] rejected promise not handled within 1 second
t.log @ console.ts:123
t._logExtensionHostMessage @ extensionHost.ts:394
(anonymous) @ extensionHost.ts:211
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
mainThreadExtensionService.ts:43 [ms-python.python]Cannot read property 'filter' of undefined
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
e._doInvokeHandler @ rpcProtocol.ts:174
e._invokeHandler @ rpcProtocol.ts:159
e._receiveRequest @ rpcProtocol.ts:108
e._receiveOneMessage @ rpcProtocol.ts:90
(anonymous) @ rpcProtocol.ts:33
(anonymous) @ rpcProtocol.ts:213
e.fire @ event.ts:142
(anonymous) @ ipc.net.ts:81
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'filter' of undefined
	at CondaService.<anonymous> (C:\Users\Shawn\.vscode\extensions\ms-python.python-2018.1.0\out\client\interpreter\locators\services\condaService.js:130:44)
	at Generator.next (<anonymous>)
	at fulfilled (C:\Users\Shawn\.vscode\extensions\ms-python.python-2018.1.0\out\client\interpreter\locators\services\condaService.js:13:58)
	at <anonymous>
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug awaiting 1-verification area-terminal labels Feb 20, 2018
@DonJayamanne
Copy link

Please could you download the Insiders Build of the extension and test this out.
I believe this has been fixed.

@DonJayamanne
Copy link

Possible duplicate of #247

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster and removed awaiting 1-verification labels Feb 20, 2018
@yw5aj
Copy link
Author

yw5aj commented Feb 20, 2018

Thank you for your response @DonJayamanne !

I just tried the Insiders Build and still get this:


/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Python Extension: Failed to get conda environment list from conda null
t.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4185 [ms-python.python]Cannot read property 'filter' of undefined
e.$onExtensionRuntimeError @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4185
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4185 TypeError: Cannot read property 'filter' of undefined
	at CondaService.<anonymous> (C:\Users\shwang\.vscode\extensions\ms-python.python-2018.2.0-alpha\out\client\interpreter\locators\services\condaService.js:130:44)
	at Generator.next (<anonymous>)
	at fulfilled (C:\Users\shwang\.vscode\extensions\ms-python.python-2018.2.0-alpha\out\client\interpreter\locators\services\condaService.js:13:58)
	at <anonymous>
e.$onExtensionRuntimeError @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4185
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] rejected promise not handled within 1 second

@DonJayamanne
Copy link

Please could you try the following build of the extension?
python-2018.2.0-alpha.zip

Please rename the file extension from .zip to .vsix to install it.

@yw5aj
Copy link
Author

yw5aj commented Feb 20, 2018

Just tried! The Terminal did show something:

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS X:\OneDrive - Align Technology, Inc-\ToolFolder\scripts\rmscripts> & cmd /k "C:/Users/shwang/AppData/Local/Continuum/anaconda3/Scripts/activate.bat & powershell"ershell"
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS X:\OneDrive - Align Technology, Inc-\ToolFolder\scripts\rmscripts>

However, this was still present in the console. Is this relevant?


2/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Python Extension: Failed to get conda environment list from conda Error: spawn conda ENOENT
	at exports._errnoException (util.js:1050:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
	at onErrorNT (internal/child_process.js:367:16)
	at _combinedTickCallback (internal/process/next_tick.js:80:11)
	at process._tickCallback (internal/process/next_tick.js:104:9)

@DonJayamanne
Copy link

However, this was still present in the console. Is this relevant?

That's fine.
I'm closing this as it will be resolved with the PR #829

@DonJayamanne DonJayamanne added awaiting 2-PR and removed info-needed Issue requires more information from poster labels Feb 20, 2018
@brettcannon brettcannon reopened this Feb 21, 2018
@brettcannon
Copy link
Member

Opening until the PR is merged.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants