-
Notifications
You must be signed in to change notification settings - Fork 513
Powershell Integrated Console Crashes On Startup #1331
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
Powershell Integrated Console Crashes On Startup #1331
Comments
Hi there, thanks for this report can you enable Diagnostic logs and attach those? Here are the steps: Note, I'd like you to set it to Diagnostic, not Verbose. |
logs.zip |
So you're only seeing this when LogLevel is set to Normal? |
Diagnostic works (top), Verbose is what it was before and causes error (second). Normal does the same as verbose - Error. Here are the latest logs as well. |
@gerryw1389 Is the stack trace you posted above the full stack trace, or was there another part saying it was You might be able to get a better stack trace by running the start script manually: Start-EditorServices.ps1 -HostName standalone -HostProfileId '0' -HostVersion '1.0.0' -LogPath 'pses_standalone.log' -LogLevel Diagnostic -SessionFilePath 'pses_session.json' -FeatureFlags @() -BundledModulePath $PsesModuleDir The script itself lives at That module dir lives at a path like: $PsesModuleDir = 'C:\Users\<your-username>\.vscode\extensions\ms-vscode.powershell-1.7.0\modules\' |
I don't have those parameters.. I have:
I tried hard coding some paths:
But I get the following:
But, if I import the module manually, it runs fine - but doesn't show that function:
|
2 Things on this:
I'm domain joined surface book 2. System Info: Looking around, the only thread I found related to this was 603. One more thing, steps to reproduce:
Or
|
What output do you get when you execute this command |
So here's one diff when
This will create the Start-EditorServices.log file and any necessary directories. |
No proxies set:
Not sure what's going on here. |
I have the same problem and also installed powershell core. I noticed when I select the powershell core framework the language services work. machine 1: domain joined, W10 build 1709 -> failed |
ok, i have put a "get-command set-content" in the Start-Editorservices.ps1 and found the problem: a 3rd Party powershell Module für Microsofft dynamics CRM also has a cmdlet that is called "set-content", which is used instead of the built-in cmdlet: Name : Set-Content
Path : so most certainly not a bug. If you have a good idea how to circumvent this, I'd be thankful. Also I will file an issue with the creator of the module. |
You've got to be kidding ... sigh. Well, we can fix this by module qualifying the set-content command. Thanks for tracking this down!!! |
redefines set-content, breaks Start-PSES Fixes PowerShell/vscode-powershell#1331 I wish we didn't have to module qualify command names like this but we've been bitten several times now by overridden commands.
I did the changes manually what you did in that commit and it works fine for me. Thanks for making the changes! |
* Fix issue where MS Dynamics CRM redefines set-content, breaks Start-PSES Fixes PowerShell/vscode-powershell#1331 I wish we didn't have to module qualify command names like this but we've been bitten several times now by overridden commands. * Module qualify more commands I'm, for the moment, drawing the line at the *-Object commands. I really hate having to do this but I hate dealing with externally inflicted bugs even more.
NOTE: I'm using the latest version of VSCode using the portable zip version.
I am experiencing a problem with VSCode Powershell Editor Services:
An error occurred while starting PowerShell Editor Services:
A parameter cannot be found that matches parameter name 'Path'.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Logs:
5/21/2018 12:05:51 PM [NORMAL] - Visual Studio Code v1.23.1 64-bit
5/21/2018 12:05:51 PM [NORMAL] - PowerShell Extension v1.7.0
5/21/2018 12:05:51 PM [NORMAL] - Operating System: Windows 64-bit
5/21/2018 12:05:51 PM [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
5/21/2018 12:05:51 PM [NORMAL] - Language server starting --
5/21/2018 12:05:51 PM [NORMAL] - exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
5/21/2018 12:05:51 PM [NORMAL] - args: C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.7.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\modules' -EnableConsoleRepl -LogLevel 'Normal' -LogPath 'C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\logs\1526922351-5efd9c46-18c1-4100-b636-474b87667d2d1526922347568\EditorServices.log' -SessionDetailsPath 'C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\sessions\PSES-VSCode-19660-779493' -FeatureFlags @()
5/21/2018 12:05:52 PM [NORMAL] - powershell.exe started, pid: 14248
5/21/2018 12:06:51 PM [NORMAL] - Language server startup failed.
5/21/2018 12:06:51 PM [ERROR] - The language service could not be started:
5/21/2018 12:06:51 PM [ERROR] - Timed out waiting for session file to appear.
What I've done to try to resolve:
Attached Logs
logs.zip
The text was updated successfully, but these errors were encountered: