: received error: open/3: No permission to open source_sink `c:/file.txt'. for unit tests only

152 views
Skip to first unread message

Dan

unread,
Jan 31, 2019, 11:42:15 PM1/31/19
to SWI-Prolog
Hello,

This morning when running unit tests i get a no permission error -- when trying to write  log file. 

However, when running the code  "manually" i don't get that error. 

I wonder what the reason might be ... the error stops when i turn off logging

any thoughts would be much appreciated,

Dan

Dan

unread,
Feb 1, 2019, 12:37:54 AM2/1/19
to SWI-Prolog
hmm, seems to occur on windows only, 

running the tests in eclipse on ubuntu works ... no permission problem

Alan Baljeu

unread,
Feb 1, 2019, 3:27:56 PM2/1/19
to Dan, SWI-Prolog
You may get this if you are working with files in the Program Files directory (the default), due to Windows restrictions on permissions there.  Change your working directory, and the locations of your working files including this log to something else, and the problem should disappear.

--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+...@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages