eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.13k stars 455 forks source link

[Bug]: If only .h file is modified, the cpp file which include the modified .h file should be rebuild, but not. #3354

Open liuxd889898 opened 5 months ago

liuxd889898 commented 5 months ago

What happened?

In the lastest version of codelite 17.9.0, If only .h file is modified, the cpp file which include the modified .h file should be rebuild, but not.

Version

Other

Operating system

Windows 10

Steps to reproduce

No response

Relevant log output

No response

AJenbo commented 2 months ago

"But not" what? Can you please provide a full description of the issue and provide an example project. Figuring out what should be compiled is usually handled by the build tools so it might not even be related to CodeLite. Does it work if you build externally?

Jarod42 commented 1 month ago

@liuxd889898 :

Verify that you have set "Generate dependencies files (.o.d)" in Build settings | Advanced That options is required for your workflow.

If that doesn't fix your issue, which generator do you use?

@AJenbo : I have fixed dependencies issue 5 years ago in the Makefile generator I can reproduce issue now by un-checking above option.

With minimal project: main.cpp

#include "header.h"
int main() {}

header.h

//#error "test"
mattreecebentley commented 1 day ago

I think "Generate dependencies files" should be ticked by default - it is very unintuitive behaviour to have projects not recompile when you edit header files, and I seen a good reason to turn it off.