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.

Error message because of empty PCH directory

See original GitHub issue

I don’t know if this is a bug or not, but when using clang-tidy on our projects (that is, single files from our projects), I get the following error/warning message (“stack trace” is attached): Get-ProjectStdafxDir : Cannot bind argument to parameter 'pchHeaderName' because it is an empty string.

Should I be concerned about this or can I ignore it? Or, better yet, can I fix it? I’ll probably not be able to change the VS project files, since they are generated by our build system.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
PeterFeichtcommented, Oct 9, 2018

Attached is a sample project that shows the error: libdetours.zip

I used an existing project and stripped it down, hence the name. Hope this helps.

0reactions
hero101111commented, Oct 9, 2018

Looks like your projects follow an unsual pattern: not including stdafx.h in the PCH CPP and specifying it as a force include in the .vcxproj file, specifically for the PCH CPP.

We’ve updated our PCH detection to handle this case as well. An updated version of ClangPowerTools (v4.1) is just about to be released; it will include this fix as well.

Thank you for your feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix PCH error? - xcode
This is often a caching problem. Usually it can be resolved by holding down the Option key and choosing Product > Clean Build...
Read more >
PCH not detected using Clang and CMake 3.16 · Issue #539
cxx is empty because CMake needs a source file in order to compile the pch file. In the second case, cmake_pch.hxx.pch is used...
Read more >
iOS PCH File missing from project folder
I see a Precompiled header file in the cache area under /var which has the correct date. Why is it not being created...
Read more >
Use ROOT without CLing
Hi, I develop a soft using ROOT as a library and I need to deploy it on a CentOS platform. So I used...
Read more >
Precompiled Header Files
Precompiled header consistency rules. Because PCH files contain information about the machine environment and memory address information about ...
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