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.

GUID generator 'format' doesn't work

See original GitHub issue

dotnet version: 2.2.102

Steps to reproduce Create any file with following content

id1 = myid01
id2 = myid02
id3 = myid03
id4 = myid04
id5 = myid05

and copy-paste symbols from docs to template.json

Expected behavior Different formats like in docs

Actual behavior All GUIDs in lowercased ‘D’ format

id1 = 5abf1bfd-ede1-46cb-999f-24a7d210856f
id2 = 9fcfb3b3-d2e7-4791-a720-fc316150f88d
id3 = baaa6f39-33a8-42ad-a444-553ec35adc4d
id4 = 97663434-0bdb-4495-a562-2131465191a3
id5 = 9cb50b21-d6a5-427f-a32d-55365db9ee17

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sayedihashimicommented, Jan 9, 2019

It was working for me in the past when I created the guid sample. Can you double check your template.json to ensure it looks like that one? If you can share a sample template.json that isn’t working that would be helpful.

0reactions
cbcrousecommented, May 5, 2021

Hey @DavidKarlas - Thanks for the response and opening up the issue. Actually, the “guids” replacement is strategy is much more desirable. Thanks for recommending that - it’s working great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate GUID from a string that is not in guid format
so I can do: Guid g = Guid.Parse("81a130d2-502f-4cf1-a376-63edeb000e9f");. which is going to parse successfully. ... which is without dashes, and ...
Read more >
Method does not exist or incorrect signature in GUID ...
In the code in the question you linked to, the charAt() method is included in the class, not in a class called StringUtils...
Read more >
How to generate a random GUID in Visual Studio 2022
It just works. Whenever I need a new GUID, it's just a quick Ctrl+K, Ctrl+Space and the new GUID is right there. There's...
Read more >
The Quick Guide to GUIDs
GUIDs give you a unique serial number that can be used on any item in the universe. The Great GUID Shortage. When learning...
Read more >
GUID Data Type not available for SQL Server in Integration ...
I can't find the correct way to map my SQL Server GUID data type fields to the extension for my external database. The...
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