From: Joachim S. <jsc...@co...> - 2017-05-28 17:45:52
|
Hi Alexis, All ECLiPSe built-in predicates expect file names in ECLiPSe's OS-independent file name format. You would have to write your example as follows: ?- ['//c/Users/alexis/Documents/99prolog.pl']. To convert from the Windows-syntax to ECLiPSe's format, you can use os_file_name(EclipseName, WindowsName) see http://www.eclipseclp.org/doc/bips/kernel/opsys/os_file_name-2.html So the following will also work: ?- os_file_name(F, 'c:/Users/alexis/Documents/99prolog.pl'), [F]. Cheers, Joachim On 27/05/2017 06:40, Alexis H. Rivera-Rios wrote: > Hi, > > I'm using Eclipse 6.1 226 i386 nt on windows 10. When I try to consult a file using absolute > path I get the following error. > It happens with DosEclipse. It particularly hinders the use of eclipse in emacs because the > prolog.el script passes the full path to > eclipse. > > > [eclipse 4]: ['c:/Users/alexis/Documents/99prolog.pl']. > File does not exist : in > source_open('//C/Users/alexis/Documents/c:/Users/alexis/Documents/99prolog.pl', [with_annotations, > recreate_modules], _318) > Abort > [eclipse 5]: ["c:/Users/alexis/Documents/99prolog.pl"]. > File does not exist : in > source_open('//C/Users/alexis/Documents/c:/Users/alexis/Documents/99prolog.pl', [with_annotations, > recreate_modules], _323) > Abort > [eclipse 6]: compile('c:/Users/alexis/Documents/99prolog.pl'). > system interface error: Invalid argument in cd("//C/Users/alexis/Documents/c:/Users/alexis/Documents/") > Abort > [eclipse 7]: compile("c:/users/alexis/Documents/99prolog.pl"). > system interface error: Invalid argument in cd("//C/Users/alexis/Documents/c:/users/alexis/Documents/") > Abort > > Consulting the filename only works fine. > > Thanks, > Alexis > > El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien > común. (Adalexis Rios- mi madre) |