neospice
neospice

Reputation: 13

The term 'swift' is not recognized as the name of a cmdlet, function, script file, or operable program

While executing swift in vscode I am getting this error:

swift : The term 'swift' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path  
was included, verify that the path is correct and try again.
At line:1 char:1
+ swift "c:\Users\Aditya\Documents\Wings Bionic\Pulse generator\app.swi ...
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (swift:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException`

I have installed the Swift extension by Swift Server Work Group.

Upvotes: 1

Views: 815

Answers (1)

khalidswe
khalidswe

Reputation: 16

If you use vs code in windows:

uninstall swift extension Swift

and install swift-sfdc extension.swift-sfdc

Restart VS Code and try.

optional: if you didn't add path in environment variables then add

Upvotes: 0

Related Questions