scss-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Scss-devel] Using scss-0.4.2 with Guile 2.0.6


From: J Kalbhenn
Subject: [Scss-devel] Using scss-0.4.2 with Guile 2.0.6
Date: Sat, 03 Nov 2012 21:56:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2

Hi,

I've tried several ways to emit SCSS, but they all resulted in errors and now I'm at a loss at how to use SCSS and wonder if Guile 2.0.6 is even supported (or if Guile supports SCSS).

Something I tried for example:
---------------------------------------------------------------
(import
  (rnrs)
  (scss scss))

(define t-css "body{color:red}")
(define t-scss (scss:css->scss (open-string-input-port t-css)))
(display t-scss) (newline)

(display (scss:stylesheet? t-scss)) (newline)
(display (port? (current-output-port))) (newline)

(scss:scss->css t-scss (current-output-port))
---------------------------------------------------------------


when run with guile:
---------------------------------------------------------------
(css (body (color red)))
#f
#t
Backtrace:
boot-9.scm:157: 7 [catch #t #<catch-closure 24de640> ...]
?:   ?: 6 [apply-smob/1 #<catch-closure 24de640>]
boot-9.scm:63: 5 [call-with-prompt prompt0 ...]
eval.scm:414: 4 [eval # #]
boot-9.scm:2131: 3 [save-module-excursion #<procedure 2481340 at ice-9/boot-9.scm:3660:3 ()>]
boot-9.scm:3667: 2 [#<procedure 2481340 at ice-9/boot-9.scm:3660:3 ()>]
?:   ?: 1 [load-compiled/vm "/home/nonroot/.cache/guile/ccache/2.0-LE-8-2.0/home/nonroot/temp/scss.scm.go"]
scss.scm:448: 0 [scss:scss->css (css (body (color "red"))) #<output: file /dev/pts/2>]

/usr/share/guile/site/scss/scss.scm:448:24: In procedure scss:scss->css:
/usr/share/guile/site/scss/scss.scm:448:24: ERROR: R6RS exception:
  1. &error
  2. &who: #t
  3. &message: "scss:scss->css: wrong argument type in position 2"
  4. &irritants: ()
---------------------------------------------------------------


There are warnings when compiling SCSS with Guile, they seem to come from scss.scm:
---------------------------------------------------------------
;;; <unknown-location>: warning: datum (quote ~=) cannot be meaningfully compared using `eqv?' in clause (((quote ~=)) (member (caddr x) (string-tokenize y))) of case _expression_ (case (car x) (((quote ~=)) (member (caddr x) (string-tokenize y))) (((string->symbol "|=")) (member (caddr x) (string-tokenize y char-set:letter))) (else (equal? y (caddr x))))
;;; <unknown-location>: warning: datum (string->symbol "|=") cannot be meaningfully compared using `eqv?' in clause (((string->symbol "|=")) (member (caddr x) (string-tokenize y char-set:letter))) of case _expression_ (case (car x) (((quote ~=)) (member (caddr x) (string-tokenize y))) (((string->symbol "|=")) (member (caddr x) (string-tokenize y char-set:letter))) (else (equal? y (caddr x))))
---------------------------------------------------------------


Running "parser-tests.scm":
---------------------------------------------------------------
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
#t
Backtrace:
In ice-9/boot-9.scm:
 157: 17 [catch #t #<catch-closure 15c0300> ...]
In unknown file:
   ?: 16 [apply-smob/1 #<catch-closure 15c0300>]
In ice-9/boot-9.scm:
  63: 15 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 414: 14 [eval # #]
In ice-9/boot-9.scm:
2131: 13 [save-module-excursion #<procedure 1566340 at ice-9/boot-9.scm:3660:3 ()>]
3667: 12 [#<procedure 1566340 at ice-9/boot-9.scm:3660:3 ()>]
In unknown file:
   ?: 11 [load-compiled/vm "/home/nonroot/.cache/guile/ccache/2.0-LE-8-2.0/home/stor/temp/scss-0.4.2/parser-tests.scm.go"]
In /home/stor/temp/scss-0.4.2/parser-tests.scm:
  59: 10 [#<procedure 15fa660 ()>]
  24: 9 [test "p\\.class#id { background: red; }" (css (# #))]
In /usr/share/guile/site/scss/scss.scm:
 391: 8 [scss:css->scss #<input: string 19845b0>]
In unknown file:
   ?: 7 [#<procedure 19d02a0 ()>]
   ?: 6 [parse-rule-list ()]
   ?: 5 [parse-ruleset]
   ?: 4 [parse-selector-list #f #t]
   ?: 3 [parse-selector #f #f]
In rnrs/lists.scm:
  41: 2 [fold-left #<procedure add-specifier (specifier s)> p.class ("|#id|")]
In unknown file:
   ?: 1 [add-specifier p.class "|#id|"]
   ?: 0 [substring p.class 1 #<undefined>]

ERROR: In procedure substring:
ERROR: In procedure substring: Wrong type argument in position 1 (expecting string): p.class
---------------------------------------------------------------


Any help would be appreciated

reply via email to

[Prev in Thread] Current Thread [Next in Thread]