This topic contains 4 replies, has 3 voices, and was last updated by
April 14, 2018 at 5:57 pm #98721
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?
Windows PowerShell ISE – Error
An unexpected error has occurred, and Windows PowerShell ISE must close.
April 14, 2018 at 10:21 pm #98725ParticipantPoints: 1,113Rank: Community Hero
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.
April 15, 2018 at 2:39 pm #98769
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
April 16, 2018 at 8:21 pm #98979
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.
April 17, 2018 at 3:11 pm #99048ParticipantPoints: 69Rank: Member
This maybe worth a try but backup your system first 🙂
The topic ‘PowerShell ISE Crash on Ctrl-Space’ is closed to new replies.