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.

String diff support

See original GitHub issue

Make output like this easier to parse for humans, by showing at what position the strings differ:

Should have both the fields as values, and the default value.. Actual value was "Processor.%\ Utilisation,unit=% Core\ 1=0.03,Core\ 2=0.06,Core\ 3=0.139,value=1i 1435362189575692182" but had expected it to be "Processor.%\ Utilisation,unit=% Core\ 1=0.03,Core\ 2=0.06,Core\ 3=0.139,value=1i 1435362189575692182".

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
cloudRoutinecommented, Dec 2, 2016

I’ve always found FParsec’s error messages particularly satisfying

Error in Ln: 1 Col: 10
[1] [2] [c]
         ^
Expecting: integer number (32-bit, signed)

so maybe something like

[Expected value was]                              
"Processor.%\ Utilisation,unit=% Core\ 1=0.03,Core\ 2=0.06,Core\ 3=0.139,value=1i 1435362189575692182"
                                                          ↑                                                    
                                                Error in Col: 59
[Actual value was]                                        ↓
"Processor.%\ Utilisation,unit=% Core\ 1=0.03,Core\ 2=0.06;Core\ 3=0.139,value=1i 1435362189575692182"
0reactions
Krzysztof-Cieslakcommented, Dec 22, 2016

I wouldn’t use [ and ] since it’s not used anywhere else.

But otherwise, looks good to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diffchecker - Compare text online to find the difference ...
Diffchecker will compare text to find the difference between two text files. Just paste your files and click Find Difference!
Read more >
Using the diff command to compare two strings?
The diff command analyzes two files and prints the lines that are different. Can I use the same diff command to compare two...
Read more >
Diff
In computing, the utility diff is a data comparison tool that computes and displays the differences between the contents of files.
Read more >
Code Diff Tool
Use this online free Code Diff Tool which compares two given files and highlights the differences between them by characters, words and lines....
Read more >
google/diff-match-patch
Diff Match Patch is a high-performance library in multiple languages that ... Given a search string, find its best fuzzy match in a...
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