allure-csharp icon indicating copy to clipboard operation
allure-csharp copied to clipboard

Edit and continue does not work due to usage of AspectInjector 2.6

Open andrematosfundao opened this issue 2 years ago • 4 comments

I'm submitting a ...

  • [X] bug report
  • [ ] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Cannot use edit and continue on debug mode when allureStepAttribute is used

see this video of the failure

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

in the code bellow put a break point on the test run in debug mode edit the string continue execution it fails

code example

What is the expected behavior?

we should be able to use edit and continue since it is such a great tool for development

What is the motivation / use case for changing the behavior?

making edit and continue work as expected.

Please tell us about your environment:

<TargetFramework>net7.0</TargetFramework>

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="NUnit.Allure" Version="1.2.1.1" />

Other information

I believe to fix this it is only necessary to update to AspectInjector 2.7

as a temporary fix i copied the code for AllureStepAttribute in my project and use the latest aspectInjector and that works for me.

andrematosfundao avatar Nov 24 '22 15:11 andrematosfundao

@andrematosfundao Hi! Yes, this is known issue https://github.com/pamidur/aspect-injector/issues/138 I'll bump AspectInjector version in next release! Thanks!

neparij avatar Dec 20 '22 07:12 neparij

Hello everyone! You can try it out in 2.9.3-preview.1 release

neparij avatar Dec 23 '22 12:12 neparij

hello there @neparij, i updated to the 2.9.3-preview.1 version and i see the same problem, when allurestep is used edit and continue stops working: image

andrematosfundao avatar Jan 16 '23 14:01 andrematosfundao

hello there, just to mention this is still a issue on 2.10 image

andrematosfundao avatar Oct 16 '23 12:10 andrematosfundao