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

64-bit PowerShell modules are not being loaded #36

Closed
alexandrudima opened this issue Nov 30, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@alexandrudima
Copy link

commented Nov 30, 2015

From microsoft/vscode#714
From @MakwaWes
CC @daviwil

Hi,

Problem
Some PowerShell modules aren't automatically loaded by 'Microsoft.PowerShell.EditorServices.Host.exe'.
The following path isn't included : '**C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules**'
although it actually reads the x64 counterpart ('C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules').

Thanks !

@daviwil

This comment has been minimized.

Copy link
Collaborator

commented Nov 30, 2015

Hi @MakwaWes, I believe this is happening because the language service process is being launched in 32-bit mode. Since that's the case, I think the 64-bit modules folder isn't being loaded. In a future update I'm going to provide a way to change the bitness of the language service process so that modules are loaded from the appropriate location.

@daviwil daviwil changed the title PowerShell module path missing 64-bit PowerShell modules are not being loaded Nov 30, 2015

@rkeithhill rkeithhill added this to the 0.4.0 milestone Feb 13, 2016

@rkeithhill

This comment has been minimized.

Copy link
Collaborator

commented Feb 13, 2016

This was addressed the 0.4.0 release.

BTW

reads the x64 counterpart 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules'

Is actually the x86 counterpart.

Anyway, you can select the "PowerShell" debugger to execute a 64-bit debug host adapter on 64-bit windows. That will load 64-bit modules. If you need to load x86 (32-bit) modules on a 64-bit OS, select the "PowerShell x86" debugger.

@rkeithhill rkeithhill closed this Feb 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.