question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compiler fail on less compiling dotles umbraco

See original GitHub issue

error message

Expected ‘}’ but found ‘{’ on line 44 in file ‘mixins.less’: [43]: @property: extract(@properties, @i); [44]: @{arguments}: red; –^ [45]:

code:

@colors: @theme-1-chery, @theme-2-chery, @theme-3-chery;
@names: theme-1, theme-2, theme-3;
@length: length(@names);

.build-theme-property(@properties;@value;@i) when (@i > 0) {
    .build-theme-property(@properties;@value;(@i - 1));
  @property: extract(@properties, @i);
  @{property}: @value;
}

.build-theme(@names;@colors;@index;@properties;@prop-num ) when (@index > 0) {
  .build-theme(@names;@colors;(@index - 1);@properties;@prop-num); // decrement.    

    @name: extract(@names, @index);
    @color: extract(@colors, @index);
    body.@{name} &{
      .build-theme-property(@properties; @color; @prop-num);  
    }
}

I can figure out if this error message or feature issue because it works when i compile it with winless compiler

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
rytmiscommented, May 5, 2017

So yeah, it took a while because I’ve entirely forgotten how my AppVeyor setup actually works. Anyway, the nuget is up now, so feel free to test it out:

http://www.nuget.org/packages/dotless/1.5.3-beta1

It’s still a prerelease, but if nothing seems to blow up in the next few days, I think I’m going to pull the trigger and release it as 1.5.3.

1reaction
rytmiscommented, May 5, 2017

I think the winless compiler uses less.js, which is the reference implementation, so this is probably a missing feature or a bug in dotless.

Can you post a complete minimal example I could try this out with?

Read more comments on GitHub >

github_iconTop Results From Across the Web

sudden compilation error - General
Message: The compiler failed with error code 128. ... Umbraco itself is compiled, unless you're running the source on the server (bad idea!...
Read more >
less dynamic compiler in Umbraco 7.2.8
I'd like to pre-compile less every time I save the less file or as soon as I hit a compile button? I'm not...
Read more >
less dynamic css compiler not working - Bug reports
Hi Jeremy,. Less Dynamic CSS Compliler seems not working on version Umbraco 7.3.x and 7.4.x. I have just tried more times but i...
Read more >
an error occurred during the compilation
Please review the following specific error details and modify your source code appropriately. One or more compilation references may be missing.
Read more >
using less with umbraco cloud
I found a simple solution - I downloaded the "web compiler" VS extension by Mads Kristiansen. Added a less file. When I change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found