podusowski / pake

Friendly C++ build system which doesn't follow trends
2 stars 1 forks source link

Checking modified file which has been moved 'crashes' pake with fatal error. #20

Closed Quasek closed 9 years ago

Quasek commented 9 years ago

While checking is some dependent files has modified and this file was deleted or moved pake stops with fatal error like:

'fatal: failed building TcpCommunication: [Error 2] Nie można odnaleźć określonego pliku: 'Include/TcpCommunicationISocketWrapperFactory.hpp''

Quasek commented 9 years ago

Workaround for this issue is to remove __build directory.

podusowski commented 9 years ago

Could you review the test case in https://github.com/podusowski/pake/commit/a9dba57d51efa212b176f47253ae49a81adb6198 ? Because this seems to work.

Quasek commented 9 years ago

You can reproduce this issue by removing line 15 in this test: echo "int main() {}" > test.cpp

Expected result would be to have compilation error due to no header file available to be included. Instead i've got: http://i.imgur.com/975Ony2.png

podusowski commented 9 years ago

Ok, some shit was happening when header deeper in tree was moved, I corrected the test (rebuild_after_deep_header_gets_moved) and the issue should be fixed now.