Run_tests fails immediately, after installing latest development version on ubuntu

Hello,

Oddly, after installing, using PPA, the latest dev version (over a previous stable version), run_tests for unit tests fails immediately.

Wonder what the cause might be …

Edit: uninstalled and reinstalled swi-prolog, which had no effect – problem persists.

Edit: now after tinkering some more, i uninstalled swi prolog, but it still runs … so something is badly out of sync …

Edit: now swi prolog works again, but the run_tests still fails immediately

hope its a simple thing and doesn’t need reinstall of ubuntu

thank you,

Dan

That gives little clues. If we had some idea what exactly is failing it would help. From the description it looks as if you may have a mixup of an old installation. There are plenty of tools to figure out whether that is the case. Just searching the filesystem for swipl is an expensive but good start.

Hi Jan

Thank you.

Yes, that is what i thought, but then i installed the development version on windows and had the same problem – run_tests failed on the run predicate …

Now, after reinstalling ubuntu 22.04, i am hesitant to install the developers version … to not run into this again

That doesn’t mean anything. Is the test not executed? Does it fail? What does the test look like? What did you do to load and run it?

The test framework has changed considerably in recent development versions. It notably allows running tests concurrently, adding timeouts and a presentation that is inspired by the Ninja build tool to reduce screen clutter when running in a terminal and provide much more detail when running in a batch environment.

It is supposed to be fully compatible. If that is not the case, please try to find a simple example we can run.

ok, will try to look into it.

Basically, tracing a debug called a first run predicate, which failed upon call.

What was interesting was that it appears as if some recursive calls were called prior to entering the run predicate, which lead to several recursive calls, each with empty lists.

Not sure how helpful the above is … will look to recreate the error – in a VM since i don’t want to reinstall ubuntua gain on my main machine … after messing up installations again …