Skip to content
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

Executable path for linter #4

Closed
LeshnaShamloll opened this issue Feb 12, 2018 · 5 comments
Closed

Executable path for linter #4

LeshnaShamloll opened this issue Feb 12, 2018 · 5 comments

Comments

@LeshnaShamloll
Copy link

@LeshnaShamloll LeshnaShamloll commented Feb 12, 2018

Hello

I am unsure of where to put the "prolog.executablePath": "..." setting. Any help would be welcomed.

@arthwang

This comment has been minimized.

Copy link
Owner

@arthwang arthwang commented Feb 13, 2018

1)Go to VS Code's menu: File/Preferences/Settings, you will see User Settings interface.
2)Input prolog in the search area
3)mouse over on "prolog.executablePath" will show up a pen icon
4)mouse over the icon, you see 'Edit' tip
5)click the icon and then 'Copy to Settings' menu
6)edit the path on the right editor to where your 'swipl' locates, e.g. C:/Program files/swipl/bin/swipl in Windows.

@LeshnaShamloll

This comment has been minimized.

Copy link
Author

@LeshnaShamloll LeshnaShamloll commented Feb 15, 2018

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented May 23, 2018

Thanks for your help!

@marcoswmv

This comment has been minimized.

Copy link

@marcoswmv marcoswmv commented Apr 2, 2019

I get the following output every time a change anything in the pl file

"Cannot lint the prolog file. The Prolog executable was not found. Use the 'prolog.executablePath' setting to configure"

I am using vs code on MacOS Mojave

@asemic-horizon

This comment has been minimized.

Copy link

@asemic-horizon asemic-horizon commented Apr 14, 2019

I was having the same problems as Leshna even after arthwang's configuration steps.

This is what both my user and workplace settings.json looked like after changing settings in the VSCode GUI:

{
    "terminal.external.windowsExec": "C:\\WINDOWS\\System32\\wsl.exe",
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\wsl.exe",
    "prolog.executablePath": "\"C:\\Program Files\\swipl\\bin\\swipl.exe\\",
}

Note the rogue \ at the beginning of that string. I don't know why that happens, but others may encounter this problem too. Remove that so it looks like

    "prolog.executablePath": "C:\\Program Files\\swipl\\bin\\swipl.exe\\",

and you should be good to go; worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.