Re: Please how to use the Scheme debugger?

2014-06-01 Thread mark damerell
My apologies to D. Kastrup for having replied in the wrong way.

It seems that Lilypond ( lilypond-2.18.2-1.linux-x86.sh  installed
with default options )  comes with its own private copy of Guile
(1.8.7). Unfortunately this means that installing another version
of Guile does not change anything.  Please is there any way to
break the link between Lilypond and this version of Guile?

At present, the only way I can get a working debugger is by reverting
to Lilypond 2.14 .
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Please how to use the Scheme debugger?

2014-05-28 Thread David Pirotte
Mark,

>  (use-modules (ice-9 readline))
> readline is not provided in this Guile installation

The Guile Reference Manual version 2.0.11 says:

4.4.2 Readline

To make it easier for you to repeat and vary previously entered 
expressions,
or to edit the expression that you’re typing in, Guile can use the GNU
Readline library.

Which means you need to install the GNU Readline library if you want to use it:

apt-get install readline-common libreadline6 libreadline6-dev

This said, if you really want to hack in guile, you'll do yourself a favor in
investing a little of your time to study and use emacs and geiser instead:

http://www.emacswiki.org/
http://www.emacswiki.org/emacs/Scheme

For Scheme, a new Emacs mode is available: Geiser. It supports 
Guile
and Racket (previously known as PLT Scheme). On Debian or 
Ubuntu, it
can be installed with sudo apt-get install geiser.

http://www.nongnu.org/geiser/

Cheers,
David

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Please how to use the Scheme debugger?

2014-05-28 Thread David Kastrup

Please _never_ silently take the list off your recipients (always use
"Reply to All").  It wastes the time of people who then find they
replied only to you when writing a response intended for the list.

What was intended to be a simple helpful reply taking 1 minute instead
takes a double-take, duplicate messages, messed-up threading and easily
a five-fold increase in effort.

David Kastrup  writes:

> mark damerell  writes:
>
>> thank you for your reply, I will try.
>> I will probably also revert to Guile 1.8
>
> LilyPond is compiled with 1.8 anyway and Ubuntu will have its run-time
> installed.  There is no particular reason not to have Guile-2.0
> installed by default.  It can even be installed in parallel with the
> Guile-1.8 interpreter, making "guile" call Guile-2.0 and "guile-1.8"
> install Guile-1.8.
>
> You cannot install more than one _development_ library, though.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Please how to use the Scheme debugger?

2014-05-28 Thread David Kastrup
mark damerell  writes:

> I am using
>
> L-Ubuntu 12.04, Lilypond 2.18.2,
> Guile 1.6, then 1.8 (from Ubuntu repository), then
> Guile 2.0.11 (from gnu.org)
>
> The manual ( Contributor's Sec 10.7.3 )
> says to do \include "guile-debugger.ly"
> This produces
>
> Parsing...
> /usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:39:2:
> error: GUILE signaled an error for the expression beginning here
> #
>  (use-modules (ice-9 readline))
> readline is not provided in this Guile installation
> /usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:40:2:
> error: GUILE signaled an error for the expression beginning here
> #
>  (activate-readline)
> Unbound variable: activate-readline
>
>  Guile debugger for Lilypond
>  For help enter (debug-help)
> /usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:46:2:
> error: GUILE signaled an error for the expression beginning here
> #
>  (use-modules (scm guile-debugger))
> no code for module (ice-9 debugger command-loop)
> guile>
>
>
> I get the same errors with all 3 versions of Guile.

sudo apt-get install guile-1.8-libs

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Please how to use the Scheme debugger?

2014-05-28 Thread mark damerell
I am using

L-Ubuntu 12.04, Lilypond 2.18.2,
Guile 1.6, then 1.8 (from Ubuntu repository), then
Guile 2.0.11 (from gnu.org)

The manual ( Contributor's Sec 10.7.3 )
says to do \include "guile-debugger.ly"
This produces

Parsing...
/usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:39:2:
error: GUILE signaled an error for the expression beginning here
#
 (use-modules (ice-9 readline))
readline is not provided in this Guile installation
/usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:40:2:
error: GUILE signaled an error for the expression beginning here
#
 (activate-readline)
Unbound variable: activate-readline

 Guile debugger for Lilypond
 For help enter (debug-help)
/usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:46:2:
error: GUILE signaled an error for the expression beginning here
#
 (use-modules (scm guile-debugger))
no code for module (ice-9 debugger command-loop)
guile>


I get the same errors with all 3 versions of Guile.
I could not find anything relevant either in Google or guile users.

Thank you
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user