com.vaadin.sass.internal.parser.SCSSParseException? (how to resolve it)

[size=4]
[font=arial]
com.vaadin.sass.internal.parser.SCSSParseException: Error when parsing file C:\Documents and Settings\Sasi\Desktop\OpteBizCloudV0.0.3_T\war\VAADIN\themes\optebiz\optebiz.scss
Encountered “filter” at line 6, column 3.
Was expecting one of:

“}” …
“+” …
“>” …
“~” …
“[” …
“*” …
“&” …
“.” …
“:” …

@include” …
@debug” …
@warn” …
@each” …
@if” …
@extend” …



@media” …
@page” …
@font-face” …
<KEY_FRAME_SYM> …

at com.vaadin.sass.internal.ScssStylesheet.get(ScssStylesheet.java:141)
at com.vaadin.sass.internal.visitor.ImportNodeHandler.traverse(ImportNodeHandler.java:52)
at com.vaadin.sass.internal.ScssStylesheet.importOtherFiles(ScssStylesheet.java:192)
at com.vaadin.sass.internal.ScssStylesheet.compile(ScssStylesheet.java:185)
at com.vaadin.server.VaadinServlet.serveOnTheFlyCompiledScss(VaadinServlet.java:818)
at com.vaadin.server.VaadinServlet.serveStaticResourcesInVAADIN(VaadinServlet.java:601)
at com.vaadin.server.VaadinServlet.serveStaticResources(VaadinServlet.java:566)
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:123)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:97)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:487)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

[/font]
[/size]

Looks like you have an unvalid SASS statement just as the compiler said, SASS not like CSS you must have a valid sass document then the parser can compile it to valid css file.
so check line 6 column 3 and see if you forgot “}” …
“+” …
“>” …
“~” …
“[” …
“*” …
“&” …
“.” …
“:” …

or if you have unexepted other chart or letter … around line 6 or may be you forgot closing “{” anywhere else.
if you paste your “optebiz.scss” content may i can help.

Hi matar ,thanks for reply,


optebiz
.
css

[font=arial]
[size=4]
/* Import the reindeer theme. /
/
This only allows us to use the mixins defined in it and does not add any styles by itself. */
@import “…/reindeer/reindeer.scss”;

/* This contains all of your theme. /
/
If somebody wants to extend the theme she will include this mixin. */
@mixin optebiz {

/* Include all the styles from the reindeer theme */
@include reindeer;

/* Required field caption for Custom components. /
.v-caption-mystyle:after {
content: '
';
color: red;
}

/* Lay the options horizontally */
.v-select-optiongroup-horizontal .v-select-option {
display: inline-block;
}
.v-select-optiongroup-horizontal {
white-space: nowrap;
}
.v-select-optiongroup-horizontal
.v-select-option.v-radiobutton {
padding-right: 10px;
}
.v-select-optiongroup-horizontal
.v-select-option.v-checkbox {
padding-right: 10px;
}

/* Show hand cursor on Button mouse over */
.v-button {
cursor: pointer;
}
.v-button-new,
.v-button-new:focus,
.v-button-new:active,
.v-button-new.v-pressed,
.v-disabled.v-button.v-button-new {
border: 1px solid #B8B8B8;
border-bottom: none;
background: rgb(220, 222, 224);
height: auto;
padding: 0;
cursor: pointer;
}
.v-button-new .v-button-wrap,
.v-button-new:focus .v-button-wrap,
.v-button-new:active .v-button-wrap,
.v-button-new.v-pressed .v-button-wrap,
.v-disabled.v-button.v-button-new .v-button-wrap {
background: rgb(220, 222, 224);
height: auto;
cursor: pointer;
}
.notifications.v-window {
overflow: visible !important;
// top: 3 * $v-unit-size !important;
right: $view-padding;
left: auto !important;
max-width: 90%;

$window-outline: $v-overlay-shadow;
@if list-of-lists($window-outline) {
  $window-outline: last($v-overlay-shadow);
}
$window-outline: flatten-list(valo-bevel-and-shadow($bevel: null, $shadow: $window-outline));
$outline-width: nth($window-outline, length($window-outline) - 1);
$outline-color: last($window-outline);

@include transform-origin(296px - (2 * $v-unit-size - round($v-unit-size / 3)) -7px);

&.v-window-animate-in {
  @include animation(animate-in-scale-up 260ms cubic-bezier(.68,.37,.51,1.37));
}

&:before,
&:after {
  content: "";
  position: absolute;
  top: -14px;
  right: 2 * $v-unit-size - round($v-unit-size / 3);
  border: 7px solid transparent;
  width: 0;
  height: 0;
  border-bottom-color: $v-window-background-color;
}


&:before {
  @if type-of($outline-width) == number and $outline-width > 0 {
    top: -15px - 2 * $outline-width;
    margin-right: -$outline-width;
    border-width: 7px + $outline-width;
    border-bottom-width: 8px;
    border-bottom-color: $outline-color;
  } @else {
    content: none;
  }
}

.v-window-header {
  color: $v-selection-color;
}

.v-window-outerheader:after,
.v-scrollable:before {
  display: none;
}

.notification-item {
  font-size: round($v-font-size * 0.9);
}

.notification-title {
  font-weight: $v-font-weight + 200;
}

.notification-time {
  font-size: round($v-font-size * 0.8);
  color: valo-font-color($v-window-background-color, .5);
}

}

// Need to use normal media queries because Responsive doesn’t work for overlay elements just yet
@media screen and (max-width: 480px) {
.notifications.v-window {
right: round($view-padding / 2);
}
}

/* Menubar styles */
.v-menubar {
position: relative;
float: left;
padding: 0;
border: 0px solid #EFEFEF;
margin: 0 0px 0px 0;
background: #00007B;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
}
.v-menubar-submenu,
.v-menubar-menuitem-caption {
cursor: pointer;
}

/* Header background. */
.v-verticallayout-header {
background: #ECECE8;
}
.v-verticallayout-mainbody {
background: -webkit-linear-gradient(left top, #F0F0F0, white, white, white, #F0F0F0);
background: -o-linear-gradient(bottom right, #F0F0F0, white, white, white, #F0F0F0);
background: -moz-linear-gradient(bottom right, #F0F0F0, white, white, white, #F0F0F0);
background: linear-gradient(to bottom right, #F0F0F0, white, white, white, #F0F0F0);
}
.v-verticallayout-separator {
border-top: 1px solid rgb(199, 199, 199);
}

/* Toolbar CSS. /
.v-horizontallayout-toolbar .v-horizontallayout .v-label {
cursor: pointer;
color: white;
height: 23px;
padding: 1px 8px;
font-weight: normal;
float: left;
border-right: 1px solid #000;
border-left: 1px solid rgba(255, 255, 255, 0.2);
border-top: 1px solid rgba(255, 255, 255, 0.3);
background: #2A2F33; /
Old browsers /
background: -moz-linear-gradient(top, #2A2F33 0%, #26292D 100%); /
FF3.6+ /
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2A2F33), color-stop(100%,#26292D)); /
Chrome,Safari4+ /
background: -webkit-linear-gradient(top, #2A2F33 0%,#26292D 100%); /
Chrome10+,Safari5.1+ /
background: -o-linear-gradient(top, #2A2F33 0%,#26292D 100%); /
Opera 11.10+ /
background: -ms-linear-gradient(top, #2A2F33 0%,#26292D 100%); /
IE10+ /
background: linear-gradient(to bottom, #2A2F33 0%,#26292D 100%); /
W3C /
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=‘#2A2F33’, endColorstr=‘#26292D’,GradientType=0 ); /
IE6-9 */
}
.v-horizontallayout-toolbar .v-horizontallayout .v-label-first {
-webkit-border-top-left-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-bottomleft: 5px;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
border-left: none;
}
.v-horizontallayout-toolbar .v-horizontallayout .v-label-last {
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-topright: 5px;
-moz-border-radius-bottomright: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-right: none;
}
.v-horizontallayout-toolbar .v-horizontallayout .v-label:hover {
font-weight: bold;
}

/* Label text related styles */
.v-label-rounded {
display: inline-block;
line-height: 1;
padding: 4px 10px;
text-decoration: none;
font-weight: bold;
color: #FFF;
background-color: #252A2E;
-moz-border-radius: 8px;
-o-border-radius: 8px;
-webkit-border-radius: 8px;
-khtml-border-radius: 8px;
border-radius: 8px;
cursor: pointer;
}
.v-label-submenuheader {
font-size: 20px;
padding-top: 5px;
color: maroon;
}
.v-label-logo {
font-size: 14px;
color: #00007B;
}
.v-label-username {
color: #252A2E;
}
.v-label-caption {
color: #252A2E;
font-size: 10px;
}

/* Panel styles. */
.v-panel-caption {
border-color: rgb(199, 199, 199);
background-color: rgb(40, 126, 206);
color: rgb(247, 248, 249);
text-shadow: 0 -1px 0 rgb(46, 90, 132);
padding: 4px 10px;
}

/* Formlayout styles. */
.v-formlayout {
border-top: 2px solid rgb(199, 199, 199);
background: #ECECE8;
padding: 3px 10px;
}
.v-caption-bold {
font-weight: bold;
}

/* Tree +, - signs. */
.v-tree-node {
background: url(icons/plus_10px.png) no-repeat 4px 4px;
}
.v-tree-node-expanded {
background-image: url(icons/minus_10px.png);
}
.v-tree-node-children {
background: url(icons/verticalline_10px.png) no-repeat 7px -1px;
}
.v-tree-node .v-tree-node-caption {
background: url(icons/horizontalline_10px.png) no-repeat -20px 7px;
}

/* Caption Header horizontal Layout. */
.v-horizontallayout-formheader {
background-color: rgb(40, 126, 206);
padding-right: 3px;
padding-left: 8px;
padding-top: 1px;
color: rgb(247, 248, 249);
text-shadow: 0 -1px 0 rgb(46, 90, 132);
font-weight: bold;
}

/* TabSheet related CSS changes. */
.v-tabsheet-tabs {
height: 30px;
background-image: none;
}
.v-tabsheet-tabitemcell {
background: transparent url(icons/tabsheet/tab-bg.png);
margin: 0px;
}
.v-tabsheet-tabitemcell-first {
padding-left: 0px;
background-image: none;
}
.v-tabsheet-spacertd div {
height: 30px;
border-top: 1px solid #B6BBBC;
border-bottom: 1px solid #B6BBBC;
background: transparent url(icons/tabsheet/tab-bg.png);
margin: 0;
}
.v-tabsheet-spacertd {
background: transparent;
margin: 0;
}
.v-tabsheet-scroller {
margin-top: -30px;
float: right;
}
.v-tabsheet-scrollerPrev,
.v-tabsheet-scrollerNext,
.v-tabsheet-scrollerPrev-disabled,
.v-tabsheet-scrollerNext-disabled {
border: none;
width: 12px;
padding: 0;
height: 30px;
opacity: 0.9999;
margin-top: -1px;
}
.v-tabsheet-scrollerNext,
.v-tabsheet-scrollerNext-disabled {
background: transparent url(icons/tabsheet/next.png) no-repeat;
}
.v-tabsheet-scrollerPrev,
.v-tabsheet-scrollerPrev-disabled {
background: transparent url(icons/tabsheet/prev.png) no-repeat;
}
.v-tabsheet-scrollerPrev:hover,
.v-tabsheet-scrollerNext:hover {
background-position: -24px 0px;
}
.v-tabsheet-scrollerPrev-disabled,
.v-tabsheet-scrollerNext-disabled {
background-position: -12px 0px;
}
.v-tabsheet-scrollerPrev-disabled:hover,
.v-tabsheet-scrollerNext-disabled:hover {
background-position: -12px 0px;
}
.v-tabsheet-tabitem {
// border: 1px solid #b6bbbc;
border-top: 1px solid #B6BBBC;
border-bottom: 1px solid #B6BBBC;
height: 30px;
padding: 0px;
margin-top: -2px;
color: #777F85;
font-size: 15px;
line-height: 18px;
background: #F8F9F9 url(icons/tabsheet/tab-bg.png);
}
.v-tabsheet-tabitem .v-caption {
height: 20px;
padding: 5px 15px 0px 15px;
background-image: none;
}
.v-tabsheet-tabitem-selected {
border: none;
background: transparent url(icons/tabsheet/top-left.png) no-repeat;
margin: 0;
padding: 0;
height: 34px;
color: #EE5311;
}
.v-tabsheet-tabitem:hover {
color: #4B5257;
}
.v-tabsheet-tabitem-selected:hover {
color: #EE5311;
}
.v-tabsheet-tabitem-selected .v-caption {
background: transparent url(icons/tabsheet/top-right.png) repeat-x right top;
margin: 0 0px 0 9px;
height: 18px;
padding: 8px;
overflow: visible;
}
.v-tabsheet-caption-close {
margin-left: 3px;
margin-right: -3px;
margin-top: 2px;
font-size: 15px;
width: 15px;
height: 15px;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
color: #777F85;
line-height: 13px;
}
.v-tabsheet-caption-close:hover {
background: #DCE0E0;
}
.v-tabsheet-caption-close:active {
background: #B6BBBC;
color: #FFF;
}
.v-tabsheet-content {
border: 1px solid #BABFC0;
background-color: #FFF;
border-bottom: 1px solid #DEE2E3;
border-top: none;
}
.v-tabsheet-hidetabs .v-tabsheet-content {
border-top: 1px solid #B5BABB;
}
.v-tabsheet-deco {
height: 10px;
background: transparent url(icons/tabsheet/bottom-right.png) repeat-x right top;
overflow: visible;
}
.v-tabsheet-deco:before {
display: block;
content: “”;
width: 9px;
height: 9px;
background: transparent url(icons/tabsheet/bottom-left.png) no-repeat;
}
.v-ie .v-tabsheet-content {
border-bottom: none;
}
.v-ie .v-tabsheet-deco {
height: 1px;
background: #BABFC0;
overflow: hidden;
margin: 0;
}
.v-ie8 .v-tabsheet-deco,
.v-ie9 .v-tabsheet-deco {
width: 100%;
}

/* Text field style. */
.v-textfield-style4 {
padding: 5px;
font-size: 15px;
font-weight: bold;
text-shadow: 0px 1px 0px white;
outline: none;
-webkit-border-radius: 3px;
border-radius: 3px;
border: 1px solid white;
box-shadow: 0 -3px 4px 0px #858585,inset 0 10px 10px 1px #CFCFCF;
border-bottom: solid 1px #AAA;
border-left: solid 1px #AAA;
border-right: solid 1px #AAA;
}

@media print {
#__gwt_historyFrame {
display:none;
}

.v-ie6,
.v-ie6 DIV,
.v-ie7,
.v-ie7 DIV,
.v-ie8,
.v-ie8 DIV,
.v-ff32,
.v-ff32 DIV,
.v-ff3,
.v-ff3 DIV  {
    overflow: visible !important;
    background-color: white !important;
}

.v-label {   
    color: black !important;
}

}

/* Table header style. */
.v-table-header-cell{
text-align: left;
}
.v-table-caption-container-align-right {
float: left;
text-align: left;
}
.v-table-caption-container-align-center {
float: left;
text-align: left;
}
.v-table-caption-container-align-left {
float: left;
text-align: left;
}

}
[/size]
[/font]

( before i scan your style file if it’s name

"optebiz.css" you must change the extention to any sass supported extention )->{

"optebiz.scss" }
so the sass compiler can parse it.
your sass file must have one of tow extentions:

.sass
.scss

for more :
http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax

Hi matar,

its not
optebiz
.
css
…it is
optebiz
.
scss
i wrongly mentioned it as optebiz.css

great !,
i’m working on.

did you try to remove this line ?

line number : #189     filter: progidemoticonXImageTransform.Microsoft.gradient( startColorstr='#2A2F33', endColorstr='#26292D',GradientType=0 ); /* IE6-9 */

Hi matar,
as u mentioned aboove line number i removed and after complilation i was getting same error…

[size=4]
Error when parsing file
C:\Documents and Settings\Sasi\Desktop\OpteBizCloudV0.0.3_T\war\VAADIN\themes\optebiz\optebiz.scss on line 436, column 21
encountered “flatten-list(”. Was expecting one of:

com.vaadin.sass.internal.parser.SCSSParseException: Error when parsing file C:\Documents and Settings\Sasi\Desktop\OpteBizCloudV0.0.3_T\war\VAADIN\themes\optebiz\optebiz.scss
Encountered “<” at line 437, column 21.
Was expecting one of:





[/size]

check this line:

$window-outline: flatten-list(valo-bevel-and-shadow($bevel: null, $shadow: $window-outline));

actually i don’t know what it does put

valo-bevel-and-shadow($bevel: null, $shadow: $window-outline) looks like a mixin so try:

@include valo-bevel-and-shadow($bevel: null, $shadow: $window-outline) to test your style file i seprate your style code from VAADIN code so if there is bug, path configration issue.
i will n’t spend more time.
finally :
i compiled your sass style with compass after commite VAADIN theme code, you can find every comminted line looks like :

[code]
//testNNNN= number [ 0 - 19 ]

[/code]replace them to track the lines.
i’m sorry put i can’t define the actual problem may be i will google “SCSSParseException” & look a round.

i found these :
previouse line is nested mixin:
Java Sass Compiler will fire an error or exception:
The URL:
https://vaadin.com/forum#!/thread/7892345