Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Compiler seems to mistake list for mixin. #314

Open
rolfsmeds opened this issue Nov 21, 2017 · 0 comments
Open

Compiler seems to mistake list for mixin. #314

rolfsmeds opened this issue Nov 21, 2017 · 0 comments

Comments

@rolfsmeds
Copy link

rolfsmeds commented Nov 21, 2017

The following list variable definition:

$caption-sizes: (
                (no, 0),
                (small, 15ex),
                (medium, 20ex),
                (large, 35ex)
);

throws the following compilation error:

null: Substitution error: some actual parameters were not used. Formal parameters: FormalArgumentList[$length: null], actual parameters: Actual argument list [ArgumentList [small, 15ex]] at line 6, column 17
com.vaadin.sass.internal.parser.ParseException: Substitution error: some actual parameters were not used. Formal parameters: FormalArgumentList[$length: null], actual parameters: Actual argument list [ArgumentList [small, 15ex]] at line 6, column 17...

Line 6 that the error message refers to is the first item of the list.

Looks like the compiler tries to parse the list as a mixin.

Strangely enough, the list seems to work just fine despite this, but the error is quite annoying.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant