question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

clang-tidy "cannot find given project(s)

See original GitHub issue

Clang Power Tools version 4.8.1 installed 2/21/2019.

Attempting to run clang-tidy on a single file or multi-select of files results in the following error:

Start Clang Tidy

Cannot find given project(s)

Done Clang Tidy

It’s worth noting that my solution file is at m:\local\jbritton.Bmcos.customattr_010719\ but my project files are under that directory plus src\mcos_impl\

Verbose mode shows:

Start Clang Tidy

VERBOSE: clang-build.ps1 invocation args: 
  aVcxprojToCompile = M:\local\jbritton.Bmcos.customattr_010719\matlab\src\mcos_impl\native_mcos_impl_win64.vcxproj 
  aCppToCompile = M:\local\jbritton.Bmcos.customattr_010719\matlab\src\mcos_impl\cos_core\ClassDefinitionManager.cpp 
  aVcxprojConfigPlatform = Debug|x64 
  aClangCompileFlags = -Wall -fms-compatibility-version=19.10 -Wmicrosoft -Wno-invalid-token-paste -Wno-unknown-pragmas
 -Wno-unused-value 
  Verbose = True 
  aTidyFlags = 
-*,google-readability-braces-around-statements,google-readability-casting,google-readability-function-size,google-reada
bility-namespace-comments,google-readability-todo,modernize-avoid-bind,modernize-avoid-c-arrays,modernize-concat-nested
-namespaces,modernize-deprecated-headers,modernize-deprecated-ios-base-aliases,modernize-loop-convert,modernize-make-sh
ared,modernize-make-unique,modernize-pass-by-value,modernize-raw-string-literal,modernize-redundant-void-arg,modernize-
replace-auto-ptr,modernize-replace-random-shuffle,modernize-return-braced-init-list,modernize-shrink-to-fit,modernize-u
nary-static-assert,modernize-use-auto,modernize-use-bool-literals,modernize-use-default-member-init,modernize-use-empla
ce,modernize-use-equals-default,modernize-use-equals-delete,modernize-use-noexcept,modernize-use-nullptr,modernize-use-
override,modernize-use-transparent-functors,modernize-use-uncaught-exceptions,modernize-use-using,readability-avoid-con
st-params-in-decls,readability-braces-around-statements,readability-const-return-type,readability-container-size-empty,
readability-deleted-default,readability-delete-null-pointer,readability-else-after-return,readability-function-size,rea
dability-identifier-naming,readability-implicit-bool-conversion,readability-inconsistent-declaration-parameter-name,rea
dability-isolate-declaration,readability-magic-numbers,readability-misleading-indentation,readability-misplaced-array-i
ndex,readability-named-parameter,readability-non-const-parameter,readability-redundant-control-flow,readability-redunda
nt-declaration,readability-redundant-function-ptr-dereference,readability-redundant-member-init,readability-redundant-s
martptr-get,readability-redundant-string-cstr,readability-redundant-string-init,readability-simplify-boolean-expr,reada
bility-simplify-subscript-expr,readability-static-accessed-through-instance,readability-static-definition-in-anonymous-
namespace,readability-string-compare,readability-uniqueptr-delete-release,readability-uppercase-literal-suffix 
  aTidyHeaderFilter = .* 
  aVisualStudioVersion = 2017 
  aVisualStudioSku = Professional 
  aSolutionsPath = M:\local\jbritton.Bmcos.customattr_010719\jbritton.Bmcos.customattr_010719.sln 
VERBOSE: CPU logical core count: 12
VERBOSE: LLVM location: C:\Program Files\LLVM\bin
VERBOSE: Scanning for solution files
VERBOSE: Solution file paths:
VERBOSE:   M:\local\jbritton.Bmcos.customattr_010719\jbritton.Bmcos.customattr_010719.sln
VERBOSE: 
VERBOSE: Source directory: M:\local\jbritton.Bmcos.customattr_010719\
VERBOSE: Scanning for project files
VERBOSE: Found 0 projects
Cannot find given project(s)
VERBOSE: PROCESSING ALL PROJECTS
VERBOSE: Cleaning up PCH temporaries:
VERBOSE: 

Done Clang Tidy

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
brittj2001commented, Mar 11, 2019

I do not have any special user access permissions set up. The results of the powershell command follow:

PS H:> Test-Path “M:\local\jbritton.Bmcos.customattr_010719\matlab\src\mcos_impl\native_mcos_impl_win64.vcxproj” True PS H:>

On Mon, Mar 11, 2019 at 4:19 PM Gabriel Diaconita notifications@github.com wrote:

I’m afraid even after reproducing your entire project directory layout we still cannot reproduce the issue.

Please run this command in a PowerShell window and let us know what it outputs: Test-Path “M:\local\jbritton.Bmcos.customattr_010719\matlab\src\mcos_impl\native_mcos_impl_win64.vcxproj”

Do you have any special user access permissions rules set up?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Caphyon/clang-power-tools/issues/536#issuecomment-471712103, or mute the thread https://github.com/notifications/unsubscribe-auth/AtpRIviaeNHKU_XRPbKeLnWkVsCtz6fIks5vVro_gaJpZM4bHw6M .

1reaction
brittj2001commented, Mar 11, 2019

See the attached sln file. Thanks!

jbritton.Bmcos.customattr_010719.sln.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clang-Tidy can't find my header files
I just tried running the clang-tidy command on the project/component1/ directory but I'm getting the same error or those files under src/ ....
Read more >
Clang-Tidy doesn't find standard C++ modules, despite ...
Clang -Tidy doesn't find standard C++ modules, despite providing compilation database and prebuilt modules path · Is it possible to run clang-tidy ......
Read more >
Clang-Tidy — Extra Clang Tools 18.0.0git documentation
clang -tidy is a clang-based C++ “linter” tool. Its purpose is to provide an extensible framework for diagnosing and fixing typical programming errors, ......
Read more >
'ros/ros.h' file not found clang-tidy(clang-diagnostic-error) #63
When working in a ROS Catkin workspace, intellisense is able to find all my header files, yet clang complains that it cannot find...
Read more >
clang-tidy warnings and fixes are missing when relative ...
Yeah, setting "C_Cpp.codeAnalysis.clangTidy.path": "/usr/lib/llvm/13/bin/clang-tidy" may be required if useBuildPath is true ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found