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.

Compiler Error is Caused With `^` in Code

See original GitHub issue

Describe the bug When I run Stryker on my code (which can be found here), it tries to replace ^ with ==, and in this case, that’s incorrect.

Expected behavior Stryker runs without generating a compiler error.

Desktop (please complete the following information):

  • OS: Windows
  • Type of project: .NET 5.0
  • Stryker Version: 0.22.4

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rouke-broersmacommented, Jun 23, 2021

That would be a good improvement! And you’re correct, we should be doing more perf work…

0reactions
JasonBockcommented, Jun 22, 2021

I wouldn’t argue that bet. But with anything perf-related, it’s always good to get the numbers.

But here’s another thought. In the case that I presented, the code is doing ^ on two NumericLiteralExpressionSyntax nodes. Would it be possible to do a look at the nodes being used for ExclusiveOrExpressionSyntax, and for the simple cases you can run into (e.g. it’s using NumericLiteralExpressionSyntax or FalseLiteralExpressionSyntax), you can determine which mutator to use. For other cases where something like an InvocationExpressionSyntax or IdentifierNameSyntax is in play, you can’t, so you’ll still have to do both mutations for ^.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compilation error
Compilation error or compile error refers to a state when a compiler fails to compile a piece of computer program source code, either...
Read more >
What are the causes of compile errors in C language ...
Compilation errors, in C or in any programming language, are caused by writing source code that does not follow the rules of the...
Read more >
compiler errors
This page (originally an Appendix in the book) is intended to help you understand and fix common compiler errors that you may encounter....
Read more >
What is the difference between run-time error and compiler ...
Compiler errors are due to inaccuracies in code, where the compiler throws an error to alert you to something which will not compile, ......
Read more >
What Is a Compilation Error?
The most common cause of compilation errors is a syntax error. Syntax errors are errors in the form of the raw source code,...
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