Using the latest stable version of SWI Prolog to integrate janus into a python project, and whenever I open the buffer to edit it, each time I move the cursor to a new line it automatically consults the file and outputs error codes. I’d like to put the janus code I need into my buffer rather than calling the standard janus.pl but I can’t even edit it. My prolog package is in a different directory, so that might be the issue but I don’t see why it consults the file whenever I move a cursor.
Should I move the files it calls to the same directory for now? Or is there a way to leave janus.pl in the current directory and edit it without errors?
Sorry, I’m using the built in SWI-Prolog editor, the file name for janus.pl isn’t changed, and only prolog is in the janus.pl buffer. I downloaded the latest janus package and want to edit the prolog source file included but it keeps re-consulting when I scroll.
I have little idea what is going on. It does not reconsult. The editor actively tries to analyse the clause below the caret and runs the cross-referencer on the buffer if it is modified and the user stops typing for 2 seconds.
I still do not see what is going on. Janus is included in SWI-Prolog, so there is no reason to download any package.
By default that brings up the built-in editor. You can also tweak it to start any external editor. The argument to edit/1 can be most things that have a name. So, you can also do
?- edit(append).
If there are more matches it asks what you want to edit.
To see whether Janus is actually properly installed on your version, run
?- py_version.
% Interactive session; added `.` to Python `sys.path`
% Janus 1.4.0 embeds Python 3.12.4 (main, Jun 7 2024, 00:00:00) [GCC 14.1.1 20240607 (Red Hat 14.1.1-5)]