You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the recent design of the PSES host to be loaded as a module inside of powershell.exe, it appears that one of our multi-version PowerShell support tricks don't work any longer. When a user running PSv3 or PSv4 loads up Microsoft.PowerShell.EditorServices.dll it crashes due to the use of AstVisitor2 in the FindSymbolsVisitor2 class. For now I'm just going to comment out this class so that I can get a fix out for those impacted by the 0.7.0 release.
In the near future we may have to split out features that only work in specific PS versions into separate DLLs that are loaded and registered dynamically depending on the PS version present.
I was looking at adding support for class and enum symbols but it requires AstVisitor2. I ran across your comment in the commented out FindSymbolsVisitor2 class.
// TODO: Restore this when we figure out how to support multiple// PS versions in the new PSES-as-a-module world (issue #276)
If we are already selectively loaded assemblies based on the platform e.g.:
That's what I'll end up doing. I'm going to be doing a big refactoring of the PSES codebase once I get 0.10.0 out, part of that will be restructuring the assemblies to enable some version-specific features without causing the assembly loader to throw exceptions.
Reacted by Keith Hill, ExE Boss and Carl in 't Veld
Activity
Restore support for PowerShell v3 and v4
Restore support for PowerShell v3 and v4
rkeithhill commentedon Feb 21, 2017
I was looking at adding support for
classandenumsymbols but it requires AstVisitor2. I ran across your comment in the commented out FindSymbolsVisitor2 class.If we are already selectively loaded assemblies based on the platform e.g.:
Why not continue to build different assemblies for v3, v4 and v5 and load those depending on the PSVersion?
daviwil commentedon Feb 21, 2017
That's what I'll end up doing. I'm going to be doing a big refactoring of the PSES codebase once I get 0.10.0 out, part of that will be restructuring the assemblies to enable some version-specific features without causing the assembly loader to throw exceptions.
TylerLeonhardt commentedon Jan 16, 2018
Looks like this one might be bundled into the whole "support for v3 and v4 or not" debate.
fflaten commentedon Aug 15, 2022
Fixed by PowerShell/vscode-powershell#1310, right?
Will move 4 of 6 visitors to AstVisitor2 in #1886
fflaten commentedon Feb 7, 2023
Andy Jordan (@andschwa) Ready to close