1

前段时间我在摆弄 SWI-Prolog 编辑器,试图让一些东西工作,我改变了一些配置设置。它没有用,所以我把它改回来了。现在 SWI-Prolog 编辑器无法正常工作。我将加载文件,但是当我单击“咨询”时,它只会抛出此错误:

咨询('C:/Users/Cubearth/Documents/Prolog/'filename.pl')。

而且我无法在知识库上执行查询……它什么也不做。我知道它应该返回:

% library(win_menu) compiled into win_menu 0.00 sec, 20,952 bytes
% library(swi_hooks) compiled into pce_swi_hooks ......... (etc, etc)

For help, use ?- help(Topic). or ?- apropos(Word).

但我什至不明白。我尝试卸载 prolog 和编辑器,但仍然没有运气。

有想法该怎么解决这个吗?

为了提供帮助,我已经包含了 prolog 的配置转储:

安装

  C:\Program Files (x86)\SWIPrologEditor\SWIMachine.ini
  C:\Users\Cubearth\AppData\Roaming\SWIPrologEditor\SWIUser.ini
  C:\Users\Cubearth\AppData\Roaming\SWIPrologEditor\SWIColor.ini

[SWI]
PortableApplication=0 
Verzeichnis=C:\Program Files\pl
Manual=C:\Program Files\pl\bin\doc\Manual\Contents.html
XPCE=C:\Program Files\pl\bin\doc\UserGuide\Contents.html 

[Program] 
InterpreterParameter=-L32M 
FileExtension=.pl 

[Editor] 
TabWidth=2 
Indent=2 
Indenthelp=1 
AutomaticIndent=1 
FileTab=1 
Linenumbering=1 
BracketPair=0 
CursorBehindLine=1 
Author= 
Encoding=0 
Structure=0 

[Code] 
Code-Completion=1 
Parameter-Hints=1 
Delay=100 

[Options] 
ColoredConsole=1 
IntegratedWindow=1 
ReturnToContinue=1 
TraceStopsDebugToo=1 
BAKFiles=1 
RemoveWriteProtection=1 
FileTabsMultiline=1 
Language=C:\Program Files (x86)\SWIPrologEditor\english.ini 

[Browser]
UseIEinternForDocuments=1 
OnlyOneBrowserWindow=0 
Browser=C:\Users\Cubearth\AppData\Local\Google\Chrome\Application\chrome.exe 
Title=unknown 
AltKeysBrowser= 
ProxyEnabled=0 
ProxyIP= 
ProxyPort=0

[Printer] 
Left=20 
Top=20
Right=20 
Bottom=20 
Header=#%PATH%#
Footer=##- %PAGENUM% -
Linenumbers=0 
LinenumbersInMargin=1 
4

2 回答 2

6

让我来启发那个可怜的、迷失的灵魂,那就是立方体。您应该仔细检查您安装的 swi-prolog 版本(32 位或 64 位),因为 swi-prolog 编辑器仅适用于 32 位版本。如果您尝试使用 64 位版本的编辑器,您将收到上述错误。^^。

ps不客气。

于 2011-01-26T23:26:54.130 回答
0

启用跟踪,运行 cmd --

?- trace. consult('C:/Users/Cubearth/Documents/Prolog/'filename.pl').
于 2021-02-09T10:37:59.140 回答