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.

Approach to Environment.NewLine

See original GitHub issue

Is your feature request related to a problem? Please describe. It seems as though when one contributor creates a snapshot with Linux, and I create a snapshot with Windows, the snapshots will never be in sync due to different Environment.NewLine settings.

Describe the solution you’d like Write snapshots to /.snapper/linux/** and /.snapper/windows/**

Developers can then use tools like Windows Subsystem for Linux to generate snappers in alternative environments through the use of docker images and volumes.

Describe alternatives you’ve considered

  1. Manually fixing Environment.NewLine prior to comparing before and after, but this is error prone.
  2. Running tool to convert \r\n to \n
  3. Stop (trying to) using Snapper 😃

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jzabroskicommented, Feb 25, 2020

It makes sense for me to create a repro. Thanks for your explanation as you march towards improving the docs!

0reactions
theramiscommented, Sep 30, 2020

Closing this issue as its been a couple of months and nothing has come of it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Environment.NewLine Property (System)
The property value of NewLine is a constant customized specifically for the current platform and implementation of the .NET Framework. For more information ......
Read more >
How to simplify Environment.NewLine()? [duplicate]
For anyone reading this, please just use "\n" for new lines in a string. I've learned alot more about coding and think my...
Read more >
C# Environment.NewLine
Implementation. Environment.NewLine is a constant property in .NET. And it could be tied to the current executing environment or platform.
Read more >
Use Environment.NewLine | CodeRush
Developer documentation for all DevExpress products.
Read more >
Know how to add a New Line in C# & ASP.NET
1. Using parameter-less Console.WriteLine() to add a new line: This method was used to generate new lines in earlier days. Parameterless Console ...
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