XPCE problem on Ubuntu 64-bit

View: New views
4 Messages — Rating Filter:   Alert me  

XPCE problem on Ubuntu 64-bit

by Guy Wiener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone,

I am using the standard SWI-Prolog installation on Ubuntu 9.04 64-bit.

When I try to run any GUI command in xpce (like guitracer or gxref) I
get this error message, repeatedly:

Cannot change indexing of pce_keybinding:add_styles/2

The XPCE version is:

XPCE 6.6.58, July 2008 for amd64-linux-gnu and X11R6


Is anyone familiar with this problem?


Thanks,

  Guy Wiener.

_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

Re: XPCE problem on Ubuntu 64-bit

by Nicolas Pelletier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

On Sun, Oct 4, 2009 at 02:00, Guy Wiener <gwiener@...> wrote:

>
> I am using the standard SWI-Prolog installation on Ubuntu 9.04 64-bit.
>
> When I try to run any GUI command in xpce (like guitracer or gxref) I get
> this error message, repeatedly:
>
> Cannot change indexing of pce_keybinding:add_styles/2
>
> The XPCE version is:
>
> XPCE 6.6.58, July 2008 for amd64-linux-gnu and X11R6

I am using Debian 5.0 (Lenny) here, which also includes SWI Prolog
5.6.58 (e.g. XPCE 6.6.58), and the GUI is working fine :-) Did you
check your Prolog initialization files (~/.plrc and ~/.xpce/*), or the
patches Ubuntu applies to the SWI sources (apt-get source swi-prolog
&& zless swi-prolog*.diff.gz). Did you ask on the Ubuntu forums?

HTH,

--
Nicolas
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

Re: XPCE problem on Ubuntu 64-bit <solved>

by Guy Wiener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the hint, Nicolas! The problem was in my .plrc file. I am
listing it below for the public use.

XPCE searches for .qlf files as prolog files. My .plrc file included a
malformed overriding rule for prolog_file_type/2. As a result, XPCE boot
got into some infinite loop.
Any custom overriding of prolog_file_type/2 must include the following
lines, additionally to the usual prolog suffix customization:

user:prolog_file_type(qlf,    prolog).
user:prolog_file_type(qlf,    qlf).

If you're not sure how to customize this rule, first run
"listings(prolog_file_type)" and then modify it as you see fit.

Be advised.

Thanks again for the help,
  Guy Wiener.

Nicolas Pelletier wrote:

> Hello,
>
> On Sun, Oct 4, 2009 at 02:00, Guy Wiener <gwiener@...> wrote:
>  
>> I am using the standard SWI-Prolog installation on Ubuntu 9.04 64-bit.
>>
>> When I try to run any GUI command in xpce (like guitracer or gxref) I get
>> this error message, repeatedly:
>>
>> Cannot change indexing of pce_keybinding:add_styles/2
>>
>> The XPCE version is:
>>
>> XPCE 6.6.58, July 2008 for amd64-linux-gnu and X11R6
>>    
>
> I am using Debian 5.0 (Lenny) here, which also includes SWI Prolog
> 5.6.58 (e.g. XPCE 6.6.58), and the GUI is working fine :-) Did you
> check your Prolog initialization files (~/.plrc and ~/.xpce/*), or the
> patches Ubuntu applies to the SWI sources (apt-get source swi-prolog
> && zless swi-prolog*.diff.gz). Did you ask on the Ubuntu forums?
>
> HTH,
>
>  

_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

Re: XPCE problem on Ubuntu 64-bit <solved>

by Jan Wielemaker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-10-05 at 15:23 +0200, Guy Wiener wrote:

> Thanks for the hint, Nicolas! The problem was in my .plrc file. I am
> listing it below for the public use.
>
> XPCE searches for .qlf files as prolog files. My .plrc file included a
> malformed overriding rule for prolog_file_type/2. As a result, XPCE boot
> got into some infinite loop.
> Any custom overriding of prolog_file_type/2 must include the following
> lines, additionally to the usual prolog suffix customization:
>
> user:prolog_file_type(qlf,    prolog).
> user:prolog_file_type(qlf,    qlf).
>
> If you're not sure how to customize this rule, first run
> "listings(prolog_file_type)" and then modify it as you see fit.
>
> Be advised.

Not allowing to overrule the system definitions might be an option,
but I think it is possible that you want to overrule these in particular
circumstances.

The documentation indeed suggests you can overrule the definition as
you want.  I've changed that.

     Thanks for noting

        --- Jan

_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog