compass-bootstrap icon indicating copy to clipboard operation
compass-bootstrap copied to clipboard

wrong number of arguments (1 for 0) for 'e'

Open howardzhang opened this issue 12 years ago • 4 comments

I am using Rails 3.1.3 and compass' version is 0.12.1,compass-bootstrap's version is 0.1.3.When I run "assets:precompile" it throw a Syntax Error out. wrong number of arguments (1 for 0) for 'e' in _patterns.scss transition(e('opacity .3s linear, top .3s ease-out')

howardzhang avatar Mar 31 '12 02:03 howardzhang

I am assuming the e-function is a typo left from the LESS "e" function.

The e function in Compass is without arguments and returns the mathematical E constant (Euler's number). In LESS it "escapes" the string as an argument. This is very similar to the SASS "unquote" function, so I am guessing that you need to change e('...') to unquote('...').

hf avatar Apr 01 '12 15:04 hf

I was just having the same problem. change e to unquote solved the problem.

victormartins avatar Apr 21 '12 08:04 victormartins

I think this may be a better patch. https://github.com/vwall/compass-twitter-bootstrap/commit/c4155a3a732d6d3ee6b2d684d16049775f0bba63

I'm trying to decide between compass-bootstrap or compass-twitter-bootstrap and its hard.

victormartins avatar Apr 21 '12 09:04 victormartins

the same issue

montaserfzy avatar May 23 '18 19:05 montaserfzy