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

sass compiler lack of verbosity #303

Open
vaadin-bot opened this issue Sep 20, 2015 · 2 comments
Open

sass compiler lack of verbosity #303

vaadin-bot opened this issue Sep 20, 2015 · 2 comments
Labels

Comments

@vaadin-bot
Copy link

Originally by phansson


I get the following error from the vaadin-maven-plugin:

--- vaadin-maven-plugin:7.5.5:compile-theme (t1) @ production ---
Updating theme VAADIN/themes/mytheme
sep. 20, 2015 9:20:35 AM com.vaadin.sass.internal.tree.MixinNode traverse
SEVERE: null
com.vaadin.sass.internal.parser.ParseException: Argument substitution error: there is no value for the argument primary-style. Formal arguments: FormalArgumentList[$primary-style: null], actual arguments: Actual argument list [ArgumentList []]
	at com.vaadin.sass.internal.parser.FormalArgumentList.replaceUnnamedAndDefaultArguments(FormalArgumentList.java:250)
	at com.vaadin.sass.internal.parser.FormalArgumentList.replaceFormalArguments(FormalArgumentList.java:129)
	at com.vaadin.sass.internal.tree.DefNode.replacePossibleArguments(DefNode.java:73)
	at com.vaadin.sass.internal.visitor.MixinNodeHandler.replaceMixinNode(MixinNodeHandler.java:55)
	at com.vaadin.sass.internal.visitor.MixinNodeHandler.replaceMixins(MixinNodeHandler.java:45)
	at com.vaadin.sass.internal.visitor.MixinNodeHandler.traverse(MixinNodeHandler.java:34)
	at com.vaadin.sass.internal.tree.MixinNode.traverse(MixinNode.java:116)
	at com.vaadin.sass.internal.visitor.BlockNodeHandler.traverse(BlockNodeHandler.java:68)
	at com.vaadin.sass.internal.tree.BlockNode.traverse(BlockNode.java:119)
	at com.vaadin.sass.internal.tree.controldirective.TemporaryNode.traverse(TemporaryNode.java:71)
	at com.vaadin.sass.internal.visitor.MixinNodeHandler.replaceMixinNode(MixinNodeHandler.java:75)
	at com.vaadin.sass.internal.visitor.MixinNodeHandler.replaceMixins(MixinNodeHandler.java:45)
	at com.vaadin.sass.internal.visitor.MixinNodeHandler.traverse(MixinNodeHandler.java:34)
	at com.vaadin.sass.internal.tree.MixinNode.traverse(MixinNode.java:116)
	at com.vaadin.sass.internal.visitor.BlockNodeHandler.traverse(BlockNodeHandler.java:68)
	at com.vaadin.sass.internal.tree.BlockNode.traverse(BlockNode.java:119)
	at com.vaadin.sass.internal.tree.Node.traverseChildren(Node.java:227)
	at com.vaadin.sass.internal.tree.Node.traverseChildren(Node.java:214)
	at com.vaadin.sass.internal.ScssStylesheet.traverse(ScssStylesheet.java:294)
	at com.vaadin.sass.internal.ScssStylesheet.compile(ScssStylesheet.java:263)
	at com.vaadin.sass.SassCompiler.main(SassCompiler.java:70)

Theme "VAADIN/themes/mytheme" compiled

There are a couple of problems here:

  • I can't use the error message for much because there's no information about where in the source code the problem was found. At the very least a file name and a line number is required for the log message to be useful.
  • If the problem is really of type SEVERE how come the compilation actually succeeds ?

Imported from https://dev.vaadin.com/ issue #18940

@vaadin-bot
Copy link
Author

Originally by Ameier


in Our Server the Changes in my.scss-File from https://dev.vaadin.com/ticket/17373 leads to the Error above

@vaadin-bot vaadin-bot added the bug label Nov 11, 2016
@Vivek-Kalola
Copy link

Vivek-Kalola commented May 7, 2018

open your 'my.scss' and make below changes,

**@import "../valo/valo.scss";
@import "custom.scss";

@mixin my {
@include valo;
@include custom;
}**

Make sure your parent theme is the first one, in given example 'VALO' and than right your custom created .scss files.

This helped me to resolve the error.

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

No branches or pull requests

2 participants