I’m running PowerShell 5.1 on Windows 10. From within ISE anytime I press ctrl-space to get parameter options I am greeted with this error. How can this be fixed so it stops crashing?
This sounds environment on your side, as this should not be doing this.
The ISE console is really more of just an output window, though you can obviously do interactive stuff in it and cmdlet runs.
Well with some limitations, for example and interactive DOS level commands don’t work and you’d have to specify any and all params to use the DOS-like stuff.
In getting params in the ISE, there should be little need to do the crtl+spacebar, because using the ‘-’ after a cmdlet would use intellisense to automatically pop the list of available parameters.
Using crtl+spacebar in the ISE script pane, the ISE console or the console host, without a space after the cmdlet/function will not pop a parameter list, but a cmdlet/function list. Doing the same thing with a space after the cmdelt/function will pop a directory / file list. Doing the same thing after a cmdlet/function name a space and the a ‘-’, leverages intellisense to pop the parameter list.
That is all well and good but how do I find and fix the problem with my environment? PowerShell seems baked into the Win10 OS and cannot be simply uninstalled and reinstalled. How can I refresh my PowerShell environment so this stops? This is a real productivity killer and I am probably not the only one to have this problem so finding a fix would be helpful for me and anyone else who comes across this problem.
Here is a clip of the error in action. https://1drv.ms/v/s!AiMOucOyxOOXpv9HNcBhtRB_3EenRQ
This was found in the Event Log.
Fault bucket 1812796752988013931, type 5 Event Name: PowerShell Response: Not available Cab Id: 0
WPR_initiated_DiagTrackMiniLogger_One Trace User Logger_20180413 Event Collector_0_inject.etl
WPR_initiated_DiagTrackMiniLogger_WPR System Collector_inject.etl
These files may be available here:
Rechecking for solution: 0
Report Id: e623efbd-07de-433c-864a-d66b781fec1a
Report Status: 268435456
Hashed bucket: af516355a9c3f706f928590acfd5056b
Cab Guid: 0
From what someone said on StackExchange this appears to be a known bug with the Windows Insider Preview builds 17093-17133. Hope this helps someone.
This maybe worth a try but backup your system first