Skip to content

The language service could not be started #2134

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

Closed
ralf-escher opened this issue Aug 14, 2019 · 6 comments
Closed

The language service could not be started #2134

ralf-escher opened this issue Aug 14, 2019 · 6 comments
Labels
Issue-Bug A bug to squash.

Comments

@ralf-escher
Copy link

This bug relates to #2119
Can't start any kind of terminal, which always result in "terminal process stopped with exit code (0)".

This issue occurs for another two collegues. One colleques can still work fine.
The difference: we have installed the latest Windows 10 Version 1809 update

14.8.2019 07:33:36 [NORMAL] - Visual Studio Code v1.37.0 64-bit
14.8.2019 07:33:36 [NORMAL] - PowerShell Extension v2019.5.0
14.8.2019 07:33:36 [NORMAL] - Operating System: Windows 64-bit
14.8.2019 07:33:36 [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
14.8.2019 07:33:36 [NORMAL] - Language server starting --
14.8.2019 07:33:36 [NORMAL] -     exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
14.8.2019 07:33:39 [NORMAL] - powershell.exe terminated or terminal UI was closed
14.8.2019 07:35:37 [NORMAL] - Language server startup failed.
14.8.2019 07:35:37 [ERROR] - The language service could not be started: 
14.8.2019 07:35:37 [ERROR] - Timed out waiting for session file to appear.
Version: 1.37.0 (user setup)
Commit: 036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8
Datum: 2019-08-08T02:33:50.993Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
Betriebssystem: Windows_NT x64 10.0.17763

Tried several approaches to fix this issue (like mentioned in the other bug report), reinstalled Visual Studio Code twice, disabled all extensions...

@ghost ghost added the Needs: Triage Maintainer attention needed! label Aug 14, 2019
@ralf-escher
Copy link
Author

Windows Update doesn't seems to be the problem, since we now get the same error message on our server:

Version: 1.37.0 (system setup)
Commit: 036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8
Datum: 2019-08-08T02:33:50.993Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
Betriebssystem: Windows_NT x64 10.0.14393

@SydneyhSmith
Copy link
Collaborator

SydneyhSmith commented Aug 16, 2019

@ralf-escher we sometimes see this issue with a system configuration like group policy or execution policy...is this something that is in place on your machine? If so you may want to also try trusting the Microsoft signing certificate on the startup script by following these steps.

Also turning on diagnostic logging, and providing those logs may give us more insight. Thanks!

@SydneyhSmith SydneyhSmith added Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels Aug 16, 2019
@ralf-escher
Copy link
Author

ralf-escher commented Aug 20, 2019

@SydneyhSmith this really looks like some kind of policy issue since it happens on several machines of my colleagues. Due to a hint of our IT I tried the command "gpupdate /force" to update the group policy with no improvement.

Additionally I tried a normal cmd and bash as terminal.
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
which both also crashed (couldn't find some appropriate log files)

Therefore I am not sure if this issue is really related to PowerShell.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Aug 20, 2019
@SydneyhSmith
Copy link
Collaborator

@ralf-escher thanks for that additional info, another thing that may be helpful would be to know what the Execution Policy you have set for PowerShell, one way to get this is by running Get-ExecutionPolicy thanks!

@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Aug 20, 2019
@ralf-escher
Copy link
Author

PS C:\WINDOWS\system32> Get-ExecutionPolicy -list

        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy    Unrestricted
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser    RemoteSigned
 LocalMachine    RemoteSigned

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Aug 21, 2019
@ralf-escher
Copy link
Author

ralf-escher commented Aug 22, 2019

Seems to be a problem with BitDefender, see stackoverflow

[SOLVED] by BitDefender Support.

@SydneyhSmith SydneyhSmith added Issue-Bug A bug to squash. and removed Needs: Maintainer Attention Maintainer attention needed! labels Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

2 participants