'global command is not available (vscode)

I am trying to run pascal on VSCode.

I installed Pascal, Omnipascal, code-runner and set the PATH variable to the free pascal compiler which was used by PascalXE(I literally copied the path used: C:\Program Files (x86)\PascalXE\LibBin\FP), I also tried the GNU Pascal(C:\Program Files (x86)\PascalXE\LibBin\GP\bin).

When I open up VSCodeor reload it a message saying:

The "global" command is not available. Make sure it is on PATH Source : Pascal(Extension).

When I run my pascal program : an error showing :

'fpc' is not recognized as an internal command.

I read a post like this one but did not find something helpful for me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source