resharper-fsharp icon indicating copy to clipboard operation
resharper-fsharp copied to clipboard

Fantomas: add ZoneMarker

Open DedSec256 opened this issue 3 years ago • 4 comments

Fix for

image

DedSec256 avatar Nov 08 '21 19:11 DedSec256

@DedSec256 What are implications of this change? You're suggesting to merge it to 213 quite late in the release cycle, so it would be good to better understand what's going on. What didn't work without this change? If everything worked as expected, is the error correct at all?

auduchinok avatar Nov 09 '21 07:11 auduchinok

What didn't work without this change? If everything worked as expected, is the error correct at all?

Fantomas works as expected. Perhaps for some reason, the analyzer did not work correctly, however, I also found that the PR error could be fixed by fixing the namespace in ProjectModelBase ZoneMarker

image

DedSec256 avatar Nov 09 '21 11:11 DedSec256

however I also found that the PR error is fixed by fixing the namespace in ProjectModelBase ZoneMarker

What does "fixing the namespace" mean? What was needing fixing?

Perhaps for some reason the analyzer did not work correctly

If you found it indeed works incorrectly, please do report it.

auduchinok avatar Nov 09 '21 12:11 auduchinok

What does "fixing the namespace" mean? What was needing fixing?

Changing namespace to the corresponding location, as shown in the screenshot above JetBrains.ReSharper.Plugins.FSharp.ProjectModelBase -> JetBrains.ReSharper.Plugins.FSharp

If you found it indeed works incorrectly, please do report it.

It was to the question

If everything worked as expected, is the error correct at all?

It is possible that the zone analyzer didn't correctly report the error. This should be dealt with.

DedSec256 avatar Nov 09 '21 13:11 DedSec256