How to set up?
a3lem opened this issue · 3 comments
Hi, new user here. Relatively new to swipl as well. I'm not sure how to get started.
What is the SWI toolchain? Where am I supposed to find it? I've tried found what looks like the stdlib using swipl-ld
, but can't find anything relating to a toolchain.
The "toolchain" refers to the swi-prolog that you have locally installed (since this plugin was especially developed for SWI prolog). Specifically, the plugin looks for two different things located under the toolchain directory:
- The
swipl
orswipl.exe
interpreter binary - The standard library of swi-prolog (presumably the
library
directory in the installation location)
Normally the plugin would auto-located these (the binary and the library directory) if you installed swi-prolog under the default location, you can check the installation guide and relevant info. at https://www.swi-prolog.org/
Also this plugin is (partly) usable even without a valid toolchain present, so you can simply override the toolchain missing warning if that's preferred.
Thanks, that clears things up a bit. I've installed with homebrew, so maybe that's why auto-locate isn't working.
For a moment it looked like I was close to getting it working, but then I ran into #99. (Didn't realize that would open a new issue automatically.)
Any idea what I'm doing wrong?
Checked issue #99, as I could see, the problem was raised because the plugin cannot find the ..\library
path relative to swi-prolog's bin
directory, which the plugin assumes it to be.
This is an existing problem that has not been fixed until version 0.1.3.0-beta3
(which is, unfortunately, available if only you're using the EAP IntelliJ/PyCharm), for now, the fix to this problem is to manually designate the correct library directory in the toolchain settings.