-
Notifications
You must be signed in to change notification settings - Fork 312
dotnet type lookup breaks after importing SharePointServer PowerShell module #4680
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
Comments
Which version & edition of SharePoint Server - please include information about what patches have been applied to the environment too |
This is on Sharepoint Server Subscription Edition currently running cumulative patch of April 2025 (KB5002705). This environment has a test and prod server that have matching configurations for the most part, so the issue is existing 2 two different machines. |
@JMyklebust Can you run |
This is the result.
Side note; I'm away from work for 2 weeks now so can't really reply in a prompt manner in that time. |
Thanks @JMyklebust! When you get a chance, can you please run it again and share the information exposed by the |
Now I'm back and can give feedback. PS> $er.Exception.InnerException.LoaderExceptions
Could not load file or assembly 'Microsoft.Bond.Interfaces, Version=3.0.3.0, Culture=neutral, PublicKeyToken=cf7230938fec607f' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.Bond.Interfaces, Version=3.0.3.0, Culture=neutral, PublicKeyToken=cf7230938fec607f' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.Bond.Interfaces, Version=3.0.3.0, Culture=neutral, PublicKeyToken=cf7230938fec607f' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.Bond.Interfaces, Version=3.0.3.0, Culture=neutral, PublicKeyToken=cf7230938fec607f' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.Bond.Interfaces, Version=3.0.3.0, Culture=neutral, PublicKeyToken=cf7230938fec607f' or one of its dependencies. The system cannot find the file specified. |
Prerequisites
Exception report
N/A
Screenshot
N/A
Environment data
Steps to reproduce
Try to autocomplete a dotnet type after importing the SharePointServer PowerShell module.
Applies both to tab completion and selection using Ctrl + Space.
[date
and then pressing Ctrl + SpaceImport-Module SharePointServer
[date
and then pressing Ctrl + SpaceExpected behavior
Autocomplete should work both before and after importing the SharePointServer module.
Actual behavior
After the module import, autocomplete is broken for dotnet objects.
More specifically the function to complete types names is broken.
Autocomplete for Cmdlets and methods of types is working, but type name is not.
Get-Mo
and pressing Ctrl + Space gives options to complete.[datetime]
and pressing Ctrl + Space gives method suggestions.[date
and pressing Ctrl + Space (or pressing just Tab) gives no results.Additonal info:
While PSReadline itself does not seem to generate a visible exception, there is some exceptions generated in VSCode with the PowerShell extension, so I'm adding it here if possibly relevant.
But the reproduction steps has been run directly in PowerShell outside of VSCode.
The text was updated successfully, but these errors were encountered: