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.

MergeWith should create the file, or fail if its missing

See original GitHub issue

Currently testing out the MergeWith option. It seems that it neither fails the test, logs a warning or creates the target file - if it’s missing. This seems like a bug to me. It simply silently ignores writing any output.

Workarounds:

  • Place an empty JSON Object (a simple {} will do) in the target file
  • Run first test without Merge, then the remaining ones with Merge

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
LordMikecommented, Jan 25, 2019

The initial issue was based on my misunderstanding of how MergeWith was meant to work. I expected MergeWith to supersede the output, and write to the MergeWith path, while keeping what was in it to begin with.

0reactions
MarcoRossignolicommented, Jan 25, 2019

I expected MergeWith to supersede the output, and write to the MergeWith path, while keeping what was in it to begin with.

FYI I’m not sure I understood you doubt about guide, it read a file if exists and merge results. https://github.com/tonerdo/coverlet/blob/226455ece9760c72d3d09ca6c377efb8cb61d686/src/coverlet.core/Coverage.cs#L198

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mercurial - cannot commit merge with missing files error
Try hg status and look for files in state ! (missing). The cause is that one of the files which is part of...
Read more >
git pull from remote but no such ref was fetched?
I have a git mirror on my disk and when I want to update my repo with git pull it gives me error...
Read more >
Merge with Caution: How to Avoid Common Problems when ...
This paper examines several common issues, provides examples to illustrate what can go wrong and why, and discusses best practices to avoid unintended ......
Read more >
Troubleshooting Data Merge Errors
When I Create Merged Document two fields do not file, their field names appear instead of the data in the data source. I've...
Read more >
How to Resolve Merge Conflicts in Git – A Practical Guide ...
Always pull before a push to make sure you will not face any rejections from Git. Talk to your peers/co-developers when you are...
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