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.

[] operator does not return usable ruleset values.

See original GitHub issue

Map operator seems to not return anything reasonable if the value of interest is a ruleset.

Example:

@typography: {
    @h1: {
        font:         roboto;
        font-weight:     300;
        font-size:    9.6rem;
        line-height:  9.6rem;
        text-transform: none;
    }
}

#usage {
    @x: @typography[@h1];
    r: @x[font]; // err: could not evaluate variable call @x
    @x();        // err: could not evaluate variable call @x
}

Expected: @x value should be a proper DR for both subsequent statements to work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matthew-deancommented, Jul 16, 2020

It seems that this was fixed with other fixes. The latest version of Less (3.12.2) does not have this issue. The output is, as expected:

#usage {
  r: roboto;
  font: roboto;
  font-weight: 300;
  font-size: 9.6rem;
  line-height: 9.6rem;
  text-transform: none;
}
0reactions
matthew-deancommented, Jul 16, 2020

Closing as fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CA1021: Avoid out parameters (code analysis) - .NET
Cause. A public or protected method in a public type has an out parameter. By default, this rule only looks at externally visible...
Read more >
Rules in Distro - Chili Hub
A ruleset is a rule or group of rules that will be leveraged in order to determine assignment. In the past, rules were...
Read more >
Rule Designer Messages - IBM
Rule Designer Messages - Messages pertaining to the rule engine ; GBRED0019E, The type ''{0}'' is not a valid condition type ; GBRED0020E,...
Read more >
Business Rules Collection Data Types - Code Effects
The only operators that are not allowed with value typed collections are is and is not. This will look familiar to rule authors...
Read more >
Rule operators and grouping symbols - Cloudflare Docs
Create and deploy rules and rulesets in different Cloudflare products ... Comparison operators return true when a value from an HTTP request ...
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