some issues with file:contains-lines

Andreas Reuleaux rx at a-rx.info
Tue Dec 7 21:32:22 GMT 2021


Hi,

i am discovering issues with file:contains-lines

(1) when I follow the example as given in the introduction section of
the docs https://spwhitton.name/doc/consfigurator/introduction.html#

--8<---------------cut here---------------start------------->8---
  ...
 (file:contains-lines "/etc/some.conf" '("FOO=bar")) ; preserve rest of file contents
 ...
--8<---------------cut here---------------end--------------->8---

I get to see

--8<---------------cut here---------------start------------->8---
  (FOO=bar)
--8<---------------cut here---------------end--------------->8---

in file /etc/some.conf - not really what I expected (the literal braces i.e.): I thought I would
get to see just

--8<---------------cut here---------------start------------->8---
  FOO=bar
--8<---------------cut here---------------end--------------->8---

in /etc/some.conf

and (2) when I am trying to use file:contains like so (an existing
config file with two lines to be added possibly):

--8<---------------cut here---------------start------------->8---
  (file:contains-lines "/home/rx/.moc/config" '("ALSAMixer1 = Master" "ALSAMixer2 = PCM"))
--8<---------------cut here---------------end--------------->8---

then I get the following error message:

--8<---------------cut here---------------start------------->8---
...
(FAILED-CHANGE "~&Remote Lisp failed; stderr was:~%~%~A~&~%Program we sent:~%~%~S" #<(SIMPLE-BASE-STRING 3708) Date/time: 2021-12-07-21:18!
An unhandled error condition has been signalled:
   The value
     ("ALSAMixer1 = Master" "ALSAMixer2 = PCM")
   is not of type
     (OR STRING SYMBOL CHARACTER)
   when b... {1002FC1D9F}> ((MAKE-PACKAGE #1="CONSFIGURATOR") (INTERN "*NO-DATA-SOURCES*" . #2=((FIND-PACKAGE #1#))) (EXPORT (INTERN "*CONSFIGURATOR-DEBUG-LEVEL*" . #2#) . #2#) (PROCLAIM (QUOTE (SPECIAL CONSFIGURATOR::*NO-DATA-SOURCES*))) (PROCLAIM (QUOTE (SPECIAL *CONSFIGURATOR-DEBUG-LEVEL*))) (REQUIRE "asdf") (LET (#3=(CONSFIGURATOR::*NO-DATA-SOURCES* T) (*CONSFIGURATOR-DEBUG-LEVEL* 0)) (LET ((STRING #)) (HANDLER-CASE (WITH-OUTPUT-TO-STRING # #) (SERIOUS-CONDITION # # #)) (WHEN (>= *CONSFIGURATOR-DEBUG-LEVEL* 3) (FORMAT T "~&~A" STRING)))) (LET (#3# (*CONSFIGURATOR-DEBUG-LEVEL* 0)) (WITH-BACKTRACE-AND-EXIT-CODE (CONSFIGURATOR::WITH-FORK-CONTROL (EVAL #)))) (CONSFIGURATOR::%CONSFIGURE (QUOTE NIL) #<CONSFIGURATOR::PREPROCESSED-HOST {1001834173}>)))
   source: (DEFINE-SIMPLE-ERROR FAILED-CHANGE NIL
                                "Signal problems with the connection and errors while actually attempting to
apply or unapply properties.")
--8<---------------cut here---------------end--------------->8---

I am using cl-consfigurator 0.12.3-1 from debian unstable on an
otherwise debian testing system - but as I see: this version has landed
in testing by now (thus I could remove unstable from my apt sources).


And Sorry: I don't have the time to look further into this issue / do
some more debugging / run test scripts: I am just reporting this here,
hoping that someone will pick up this issue.

Thanks
  -A



More information about the sgo-software-discuss mailing list