# Error message instead of discontigous warning

**URL:** <https://swi-prolog.discourse.group/t/error-message-instead-of-discontigous-warning/1391>\
**Category:** Resources\
**Tags:** bug\
**Created:** [October 14, 2019, 8:51pm UTC](https://swi-prolog.discourse.group/t/error-message-instead-of-discontigous-warning/1391 "2019-10-14T20:51:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgondan](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mgondan](https://swi-prolog.discourse.group/u/mgondan)\
**Post date:** [October 14, 2019, 8:51pm UTC](https://swi-prolog.discourse.group/t/error-message-instead-of-discontigous-warning/1391/1 "2019-10-14T20:51:48Z")

</div>

Windows 32 Bit, SWI-prolog 8.1.15

Dear programmers,

I start SWIPL, then File/New… and then I type the following little program:

% :- discontiguous a/0.

a.  
b.  
a.

Then I try to compile with Ctrl-C Ctrl-B. I get the error

ERROR: c:/users/matthias/documents/prolog/123.pl:5:  
ERROR: format/3: Type error: `text' expected, found `ansi(code,’~p’,[a/0])’ (a compound)

I can make the error disappear by uncommenting the first line with the “discontiguous”. In any case, I think the compiler should not raise an error, but a warning that the a/0 are not placed next to each other in the code.

Thank you for your consideration.

Best wishes,

Matthias

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [October 15, 2019, 1:32am UTC](https://swi-prolog.discourse.group/t/error-message-instead-of-discontigous-warning/1391/2 "2019-10-15T01:32:11Z")

</div>

Seems a Windows specific issue. I’m traveling without access to Windows 🙂

---

<div class="post-metadata">

**Author:** ![mgondan](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mgondan](https://swi-prolog.discourse.group/u/mgondan)\
**Post date:** [October 15, 2019, 9:34am UTC](https://swi-prolog.discourse.group/t/error-message-instead-of-discontigous-warning/1391/3 "2019-10-15T09:34:39Z")

</div>

For what it’s worth, the problem does not appear on a 32-bit linux build either. Therefore, indeed, it is windows-specific.

Best wishes,

Matthias
