StefanKert / BuildVision

A Visual Studio extension to visualize the building process.
MIT License
261 stars 43 forks source link

Projects Grid doesn't update after build #117

Closed 3x71 closed 4 months ago

3x71 commented 2 years ago

Visual Studio 2022 17.1.0, BuildVision 3.1.0

example

praktii commented 2 years ago

I've noticed, that the progressbar that should show the complete Buildprogress, i guess, isnt updating aswell.

gamagan commented 2 years ago

Running into these same issues.

Graupner commented 2 years ago

VisualStudio 2019 Buildvision 3.1.0.7

  1. Columns Warnings and Errors always empty (no Update)
  2. Elapsed time of each project increases when a project is completed.
  3. Strange Version Number in Caption Bar

BuildVision_VS2019

Graupner commented 2 years ago

C:\Users\XXX\AppData\Local\BuildVision\extension.log

2022-03-06 23:56:56.133 [03552] EROR [01] SolutionBuildEvents
System.NullReferenceException: Object reference not set to an instance of an object. at BuildVision.Core.BuildInformationProvider.GetProjectState(Boolean success, Boolean canceled, IProjectItem currentProject) at BuildVision.Core.BuildInformationProvider.ProjectBuildFinished(BuildAction buildAction, String projectIdentifier, Boolean success, Boolean canceled) at BuildVision.Core.SolutionBuildEvents.UpdateProjectCfg_Done(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, UInt32 dwAction, Int32 fSuccess, Int32 fCancel) 2022-03-06 23:57:35.619 [03552] EROR [01] SolutionBuildEvents
System.NullReferenceException: Object reference not set to an instance of an object. at BuildVision.Core.BuildInformationProvider.GetProjectState(Boolean success, Boolean canceled, IProjectItem currentProject) at BuildVision.Core.BuildInformationProvider.ProjectBuildFinished(BuildAction buildAction, String projectIdentifier, Boolean success, Boolean canceled) at BuildVision.Core.SolutionBuildEvents.UpdateProjectCfg_Done(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, UInt32 dwAction, Int32 fSuccess, Int32 fCancel) 2022-03-06 23:57:37.713 [03552] EROR [01] SolutionBuildEvents
System.NullReferenceException: Object reference not set to an instance of an object. at BuildVision.Core.BuildInformationProvider.GetProjectState(Boolean success, Boolean canceled, IProjectItem currentProject) at BuildVision.Core.BuildInformationProvider.ProjectBuildFinished(BuildAction buildAction, String projectIdentifier, Boolean success, Boolean canceled) at BuildVision.Core.SolutionBuildEvents.UpdateProjectCfg_Done(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, UInt32 dwAction, Int32 fSuccess, Int32 fCancel) 2022-03-06 23:58:00.653 [03552] EROR [01] SolutionBuildEvents
System.NullReferenceException: Object reference not set to an instance of an object. at BuildVision.Core.BuildInformationProvider.GetProjectState(Boolean success, Boolean canceled, IProjectItem currentProject) at BuildVision.Core.BuildInformationProvider.ProjectBuildFinished(BuildAction buildAction, String projectIdentifier, Boolean success, Boolean canceled) at BuildVision.Core.SolutionBuildEvents.UpdateProjectCfg_Done(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, UInt32 dwAction, Int32 fSuccess, Int32 fCancel)

aeris170 commented 2 years ago

@StefanKert sorry for tagging you but could we get an update on this? The plugin is next to useless if this issue is not resolved.

StefanKert commented 4 months ago

Hi there,

a Preview of version 4.x is available in the VSIX Gallery feed. You can follow along with the installation instructions from the README https://github.com/StefanKert/BuildVision?tab=readme-ov-file#setup-visual-studio-for-preview-channel. Would love to hear if this fixes the issues you are facing. As soon as the issues that people are currently seeing are resolved there will be a official marketplace release.

Thanks :)

aeris170 commented 4 months ago

Hi there,

a Preview of version 4.x is available in the VSIX Gallery feed. You can follow along with the installation instructions from the README https://github.com/StefanKert/BuildVision?tab=readme-ov-file#setup-visual-studio-for-preview-channel. Would love to hear if this fixes the issues you are facing. As soon as the issues that people are currently seeing are resolved there will be a official marketplace release.

Thanks :)

Hey Stefan! I'll give it a try and report back tonight. Can't do it now because I'm away.

aeris170 commented 4 months ago

Hey @StefanKert plugin seems to be mostly fixed. It now updates as the build progresses. However, there is a problem with the error and warning count display. It shows 0 errors/warnings despite there being numerous. Here are some screenshots.

image image

StefanKert commented 4 months ago

Hi @aeris170 ,

thanks a lot for the quick review. The error is reproducible for me. Will keep you posted and release another version asap. Thanks!

StefanKert commented 4 months ago

Hi @aeris170,

it seems that some vs 2022 instances are registering the MS Build logger differently. After adding another interface it is working for me and errors / warnings are correctly counted. Still not sure if this fixes it for all instances though. If you have got a few minutes to spare you can maybe do a quick check if it is also fixed for you. The new version is available in the gallery 4.0.0.10 :) thanks!

aeris170 commented 4 months ago

Hey @StefanKert

The issue seems to be resolved on my end too. VS 2022 Version 17.9.5.

image

StefanKert commented 4 months ago

Perfect, thank you so much for the feedback. Going to close this issue now. If anyone is seeing other issues please create a new one. I will do a few more tests and roll out 4.0.