Re: To not show undefined symbols if make has an error.

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 12/04/2013 07:43 PM, Alan Baljeu wrote:
> I imagine my problem is unique, but here it is:
>
>
>
> If CHR detects and reports an error in the code, in refuses to
> generate the functions it normally would. �make/0 then reports the
> undefined symbols. �It's more than a page worth and so I cannot see
> the error that caused the problem. �
>
> How can I change the behaviour of make so that if loading a file
> yields an error, it doesn't show undefined symbols?

I'd start using a console that allows for scrolling ...  In
addition, there are the following work-arounds:

   - Use protocol/1 to log the session to a file.
   - Simply use ?- [file]. to reload the CHR file.
   - Get the latest version from git and use the new hook
     prolog:make_hook/2, which is called before and after
     reloading with a list of the files make reloads.  The
     default `after' hook calls list_undefined/1.  So, after
     adding:

	prolog:make_hook(_,_).

     there is no checking anymore.

	Cheers --- Jan

_______________________________________________
SWI-Prolog mailing list
[email protected]
https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.