alefragnani / vscode-language-pascal

Pascal language extension for Visual Studio Code
MIT License
216 stars 47 forks source link

[BUG] - [WinError 5] Access is denied: _winapi.CreateProcess #143

Closed janluijk closed 8 months ago

janluijk commented 8 months ago

I have added GNU Global and Exuberant ctags to the %PATH%, ensured that Python is also added to the %PATH%, and created system variables GTAGSCONF and GTAGSLABEL. When running Python in the terminal, everything works fine, indicating that the Python environment variable is set correctly.

However, when attempting to run gtags from the terminal, the following error is encountered:

File "C:...\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

PermissionError: [WinError 5] Access is denied

Operating System: Windows 11 Pro version 22H2
Python Version: 3.12
GNU Global Version: 6.6.9
Exuberant Version: 5.8
janluijk commented 8 months ago

[FIXED]

I had to change the ComSpec system variable to 'C:\WINDOWS\system32\cmd.exe

alefragnani commented 8 months ago

Hi @janluijk ,

I’ve never faced such error, but I’m glad to know you did find the solution.

The extension doesn’t do anything special in terms of calling global/gtags inside the extension, so regular Node/Python installation/setting was expected to work out of the box.

Thanks for reporting