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

VS Code + PS Ext's Integrated Terminal no longer loads dll file #7865

Closed
wsmelton opened this issue Oct 16, 2021 · 6 comments
Closed

VS Code + PS Ext's Integrated Terminal no longer loads dll file #7865

wsmelton opened this issue Oct 16, 2021 · 6 comments

Comments

@wsmelton
Copy link
Member

Verified issue does not already exist?

Yes

What error did you receive?

image

Import-Module: The specified module 'C:\git\dbatools\bin\dbatools.dll' was not loaded because no valid module file was found in any module directory.

Steps to Reproduce

Start debugging session or open PowerShell Integrated Console in VS Code using PS 7.1.5

ipmo .\dbatools.psd1

Are you running the latest release?

Yes

Other details or mentions

No response

What PowerShell host was used when producing this error

PowerShell Core (pwsh.exe)

PowerShell Host Version


Name                           Value
----                           -----
PSVersion                      7.1.5
PSEdition                      Core
GitCommitId                    7.1.5
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


SQL Server Edition and Build number

N/A

.NET Framework Version

.NET 5.0.11
@wsmelton wsmelton added bugs life triage required New issue that has not been reviewed by maintainers labels Oct 16, 2021
@wsmelton
Copy link
Member Author

wsmelton commented Oct 16, 2021

Switch Ext to use Windows PowerShell and it imports with no issues. We may not be able to import it and allow for debugging anymore with PowerShell core since it now follows .NET builds.

@wsmelton wsmelton removed the triage required New issue that has not been reviewed by maintainers label Oct 16, 2021
@potatoqualitee
Copy link
Member

That file no longer exists. Seems the loader is confused. I'll have to trace back how it determines the path.

@wsmelton
Copy link
Member Author

PR on folder restructuring it cleared up but couldn't figure out which path update fixed it.

@andreasjordan
Copy link
Contributor

Hi @wsmelton - is this fixed now? I can not reproduce the issue.

@wsmelton
Copy link
Member Author

Does not seem to happen in PS 7.2.1, and latest version of Insiders + Ext for me.

@potatoqualitee
Copy link
Member

woo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants