Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cppcheck plugin issue with visual studio 2017 "Object reference not set to an instance of an object."

I am trying to use cppcheck plugin with visual studio 2017. However when I select tools/Check current project with cppcheck, it always says "Object reference not set to an instance of an object." Any suggestions?

I am using

  • Microsoft Visual Studio Professional 2017, Version 15.7.6
  • CPPCheckPlugin 1.3.5
  • CMake 3.12.1
  • Windows 10 Pro 64bit

Thanks.

like image 242
Lu J. Avatar asked Oct 17 '22 11:10

Lu J.


1 Answers

For me, the problem was resolved after I edited the projects and checked "Enable Code Analysis on Build". I was then able to uncheck this option, but it leaves

<RunCodeAnalysis>false</RunCodeAnalysis>

in the vcxproj file, which seems to resolve the problem.

like image 121
Don Inghram Avatar answered Oct 19 '22 16:10

Don Inghram