AL icon indicating copy to clipboard operation
AL copied to clipboard

Could not start the language service

Open DominicSaladin opened this issue 5 years ago • 9 comments

Describe the bug Since the new version (6.6.425415) the language service isn't starting properly. So the commands like publishing and building doesn't work.

The error message in text: Could not start the language service: [Error: spawn EPERM at ChildProcess.spawn (internal/child_process.js:394:11) at Object.spawn (child_process.js:549:9) at h:\vscode-extension\ms-dynamics-smb.al-6.6.425415\node_modules\vscode-languageclient\lib\main.js:376:40] { errno: 'EPERM', code: 'EPERM', syscall: 'spawn' }

To Reproduce Steps and to reproduce the behavior:

  1. Install latest version (6.6.425415)
  2. Open a AL project

Expected behavior Language service should start properly.

Screenshots image

5. Versions:

  • AL Language: 6.6.425415
  • Business Central: 16.0.14648.15420 (Platform) and 16.0.12076.0 (Application) (Shouldn't be important for this bug, but yeah)

DominicSaladin avatar Mar 04 '21 07:03 DominicSaladin

@Daniamstutz @DSaladinCH which version of VS Code are you using? Which OS are you using? Does it reproduces when running VS Code as admin?

qutreson avatar Mar 04 '21 11:03 qutreson

@qutreson VS Code Version 1.52.1 on Windows 10 Version 1607 (Build 14393.4225). VS Code is installed on a citrix server, so I don't have admin privileges.

DominicSaladin avatar Mar 04 '21 11:03 DominicSaladin

Did you experience this issue with previous versions of the AL extension for VS Code?

You can give it a try from the extension tab here: image

qutreson avatar Mar 04 '21 12:03 qutreson

No, the previous version (6.5.413786) worked without problems

DominicSaladin avatar Mar 04 '21 12:03 DominicSaladin

A workaround would then be to revert to this version for now

qutreson avatar Mar 04 '21 12:03 qutreson

Okay easy, I'll use the previous version for now

DominicSaladin avatar Mar 04 '21 12:03 DominicSaladin

Can you reproduce this issue on other environments?

atoader avatar Mar 07 '21 13:03 atoader

I can't test that on other environments. The citrix server is the only environment I now with a language service.

DominicSaladin avatar Mar 07 '21 13:03 DominicSaladin

The problem was with the virus scanner on the Citirx environment. You can close the issue, thank you for your support.

Daniamstutz avatar Mar 16 '21 10:03 Daniamstutz