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

Fedora: "The Prolog executable was not found" #13

Open
mbuet2ner opened this issue May 10, 2018 · 9 comments
Open

Fedora: "The Prolog executable was not found" #13

mbuet2ner opened this issue May 10, 2018 · 9 comments

Comments

@mbuet2ner
Copy link

Thank you very much for your incredible work! Unfortunately, I can not get it to run properly on my system (Fedora 28).
I installed SWI Prolog 7.6.4 with sudo dnf install pl and double checked the executable path with which swipl, which returns /usr/bin/swipl. I have not changed the standard configuration.
Still, I get the error

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

@ghost
Copy link

ghost commented May 16, 2018

I have the same issue while my OS is Win 10.

@arthwang
Copy link
Owner

As for Win 10, please refer to closed issue #4 for setting the path.
As for Fedora, I've not tested on that os, but it's weird not working if you can start from /usr/bin/swipl. I'll test it when I get time to install a Fedora.

@manumaso
Copy link

manumaso commented Jul 11, 2018

I have the same issue on Linux Mint 19, any solution?

Edit: The solution is download de .deb from the official page of visual studio code, not from the software center.

@sacharias
Copy link

@AlessioAtroni I installed SWI-Prolog with Homebrew and had the same problem. Change the executablePath in vscode settings to this worked for me:

"prolog.executablePath": "/usr/local/Cellar/swi-prolog/7.6.4/bin/swipl"

@colingoldberg
Copy link

I installed VSC Prolog - which looks great - on my mac, but I am confused about where to add the executable path configuration. I don't see any existing launch.json file in the .vscode directory (in my home directory).

In ~/.vscode/extensions/arthurwang.vsc-prolog-0.8.23/, I have:
-rw-r--r-- 1 ... staff 2967 Feb 12 11:31 CHANGELOG.md
-rw-r--r-- 1 ... staff 1078 Feb 12 11:31 LICENSE.txt
-rw-r--r-- 1 ... staff 19983 Feb 12 11:31 README.md
drwxr-xr-x 27 ... staff 864 Feb 12 11:31 images
drwxr-xr-x 25 ... staff 800 Feb 12 11:31 node_modules
drwxr-xr-x 3 ... staff 96 Feb 12 11:31 out
-rwxr-xr-x 1 ... staff 8390 Feb 12 11:31 package.json
-rwxr-xr-x 1 ... staff 444 Feb 12 11:31 prolog.configuration.json
drwxr-xr-x 5 ... staff 160 Feb 12 11:31 snippets
drwxr-xr-x 5 ... staff 160 Feb 12 11:31 syntaxes

Should I create launch.json here and add "prolog.executablePath" to it?

@marcoswmv
Copy link

@AlessioAtroni I installed SWI-Prolog with Homebrew and had the same problem. Change the executablePath in vscode settings to this worked for me:

"prolog.executablePath": "/usr/local/Cellar/swi-prolog/7.6.4/bin/swipl"

Thank you! It worked for me!
I am on MacOS Mojave using vs code
And tried this path to my executable as i am using it through terminal

/usr/local/Cellar/gnu-prolog/1.4.5/bin/gprolog

@nijatmursali
Copy link

@AlessioAtroni I installed SWI-Prolog with Homebrew and had the same problem. Change the executablePath in vscode settings to this worked for me:

"prolog.executablePath": "/usr/local/Cellar/swi-prolog/7.6.4/bin/swipl"

It worked for me as well, but why it opens new windows when you change something in .pl file?

@potatosenior
Copy link

potatosenior commented Aug 17, 2020

@AlessioAtroni I installed SWI-Prolog with Homebrew and had the same problem. Change the executablePath in vscode settings to this worked for me:

"prolog.executablePath": "/usr/local/Cellar/swi-prolog/7.6.4/bin/swipl"

It worked for me as well, but why it opens new windows when you change something in .pl file?

edit: found the problem, i was using "swipl-win.exe" instead of "swipl.exe"

@sballari
Copy link

sballari commented Feb 10, 2021

Edit: The solution is download de .deb from the official page of visual studio code, not from the software center.

Is this still the only solution available for repo users (snap,apt,dfn,yum, etc...)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants