Skip to content
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

The language service could not be started #1957

Closed
osmayqc opened this issue May 11, 2019 · 4 comments
Closed

The language service could not be started #1957

osmayqc opened this issue May 11, 2019 · 4 comments

Comments

@osmayqc
Copy link

osmayqc commented May 11, 2019

5/11/2019 11:08:19 AM [NORMAL] - Visual Studio Code v1.33.1 64-bit
5/11/2019 11:08:19 AM [NORMAL] - PowerShell Extension v1.12.1
5/11/2019 11:08:19 AM [NORMAL] - Operating System: Windows 64-bit
5/11/2019 11:08:19 AM [NORMAL] - Language server starting --
5/11/2019 11:08:19 AM [NORMAL] -     exe: C:\Program Files\PowerShell\6\pwsh.exe
5/11/2019 11:08:19 AM [NORMAL] -     args: %UserProfile%\.vscode\extensions\ms-vscode.powershell-1.12.1\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.12.1' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath '%UserProfile%\.vscode\extensions\ms-vscode.powershell-1.12.1\modules' -EnableConsoleRepl -LogLevel 'Normal' -LogPath '%UserProfile%\.vscode\extensions\ms-vscode.powershell-1.12.1\logs\1557587299-c721af86-eb72-4bef-a292-b8ff46aaaef91557587294935\EditorServices.log' -SessionDetailsPath '%UserProfile%\.vscode\extensions\ms-vscode.powershell-1.12.1\sessions\PSES-VSCode-1388-135719' -FeatureFlags @()
5/11/2019 11:08:19 AM [NORMAL] - powershell.exe started, pid: 5064
5/11/2019 11:10:19 AM [NORMAL] - Language server startup failed.
5/11/2019 11:10:19 AM [ERROR] - The language service could not be started: 
5/11/2019 11:10:19 AM [ERROR] - Timed out waiting for session file to appear.

And File. log:

2019-05-11 11:15:11.212 [NORMAL] tid:14 in 'StartLogging' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 183
    
    PowerShell Editor Services Host v1.12.1.0 starting (PID 5064
    
      Host application details:
    
        Name:      Visual Studio Code Host
        Version:   1.12.1
        ProfileId: Microsoft.VSCode
        Arch:      X64
    
      Operating system details:
    
        Version: Microsoft Windows 10.0.17763 
        Arch:    X64
    
      Build information:
    
        Version: <development-build>
        Origin:  <development>
        Date:    2019-04-11T19:25:11
    

2019-05-11 11:15:11.237 [NORMAL] tid:14 in 'StartLanguageService' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 202
    Language service started, type = NamedPipe, endpoint =  InOut pipe: PSES_jqpnzzlr.m13

2019-05-11 11:15:11.245 [NORMAL] tid:14 in 'StartDebugService' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 279
    Debug service started, type = NamedPipe, endpoint =  InOut pipe: PSES_jhjdre0r.r2g
@rjmholt
Copy link
Contributor

rjmholt commented May 11, 2019

Hi @osmayqc thanks for opening an issue. It looks like this might be an issue caused by a system configuration like group policy or execution policy.

Can you please try trusting the Microsoft signing certificate on the startup script by following these steps.

Some other things that might be responsible:

  • A group policy configuration
  • Antivirus
  • Another form of system lockdown or restriction

@joshfria
Copy link

I'm getting the same issue very often. I tried what you suggested, but it hasn't changed the behavior and I was never prompted.

@rjmholt
Copy link
Contributor

rjmholt commented May 14, 2019

@joshfria When you say "often" do you mean not always? Can you please follow the troubleshooting doc and report back here with as much information about your system as you can, including any configuration, policy or software that might be locking down your system?

@SydneyhSmith
Copy link
Collaborator

Closing this issue as inactive/needs repro will re-open if the issue is still being hit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants