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.

Derived symbol value is empty when it is in Symbol geneator

See original GitHub issue

in dotnet 7.0.2, When we reference a derived symbol in a symbol generator, the generated symbol value does not contain the derived symbol. run dotnet new *** --ClientName test

The value of PackageName : Actual: Package. expected: Package.Test

It works fine in dotnet 3.1.

"symbols": {
"clientName": {
      "type": "parameter",
      "datatype": "text",
      "isRequired": true,
      "description": "client name"
    },
"ClientNameCapitalCase": {
      "type": "derived",
      "datatype": "text",
      "valueSource": "clientName",
      "valueTransform": "firstUpperCase",
      "replaces": "Template"
    },
"PackageName": {
      "type": "generated",
      "generator": "join",
      "parameters": {
        "symbols": [
          {
            "type": "const",
            "value": "Package"
          },
          {
            "type": "ref",
            "value": "ClientNameCapitalCase"
          }
        ],
        "separator": "."
      },
    },
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
YuliiaKovalovacommented, Apr 4, 2023

Hi @chunyu3,

We are discussing possible solutions behind the scene. I will give you more information once know more.

0reactions
chunyu3commented, May 5, 2023

7.0.2

Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Available Symbols Generators · dotnet/templating Wiki
Derived - defines transformation of another symbol. The value of this symbol is derived from the value of another symbol by applying the ......
Read more >
Nice looking empty set? - math mode
I feel like the standard $\emptyset$ is ugly. By hand, my empty set symbol is a lot rounder, then this "slashed-zero"-type symbol. Two...
Read more >
Reference for template.json
Derived symbol ​​ A symbol that defines transformation of another symbol. The value of this symbol is derived from the value of another...
Read more >
“⠀” U+2800 Braille Pattern Blank Unicode Character
U+2800 is the unicode hex value of the character Braille Pattern Blank. Char U+2800, Encodings, HTML Entitys:⠀,⠀, UTF-8 (hex), UTF-16 (hex), UTF-32 (hex)...
Read more >
Solvers - SymPy 1.12 documentation
This may cause a situation in which an empty dictionary is returned. In that case, all symbols can be assigned arbitrary values. Input...
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