MonoDevelop.MSBuildEditor icon indicating copy to clipboard operation
MonoDevelop.MSBuildEditor copied to clipboard

Sometimes warning span the entire document for no reason

Open mhutch opened this issue 1 year ago • 3 comments

image

mhutch avatar May 09 '24 23:05 mhutch

I have the same problem.

QianMoXi avatar Aug 14 '24 07:08 QianMoXi

Adding to the information I debugged

Steps to reproduce:

  1. Open a csproj file with Warning or Error
  2. Close this file
  3. Reopen it

Possible causes:

In the following code, the snapshot is a document belonging to step 1, but the new document is already from step 3, so the SnapshotSpan it returns represents the entire document

https://github.com/mhutch/MonoDevelop.MSBuildEditor/blob/513fcf2897fa561a8e4ca40d5733b9c7f22d405c/MonoDevelop.MSBuild.Editor/MSBuildValidationTagger.cs#L73

I can't decide if this is right or what to do to fix it because I haven't written any extensions.

QianMoXi avatar Aug 15 '24 02:08 QianMoXi

this happens for me, too - here's a screenshot of the errors:

Image

a) SccAuxPath should be a Well-Known property, as well as SccProjectName , SccProvider and SccLocalPath b) the "property" PUBLISH_ZIP is in fact an environmentvariable i set from the outside and evaluate in a Condition: <Target Name="ZipPublishedArtifacts" AfterTargets="AfterPublish" Condition="$(PUBLISH_ZIP) == 'TRUE'"> --> it's probably useful to create a separate issue for each of these points, but the backlog seems long enough.

i'm uninstalling the extension for now, but will be happy to install it again if i can help fixing issues with it in any way :-)

AdmiralSnyder avatar Feb 26 '25 23:02 AdmiralSnyder