Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"bii build" destroys eclipse project files #21

Closed
smessmer opened this issue Apr 27, 2015 · 9 comments
Closed

"bii build" destroys eclipse project files #21

smessmer opened this issue Apr 27, 2015 · 9 comments
Assignees

Comments

@smessmer
Copy link

OS: Ubuntu 14.10
Biicode 3.0

Steps to reproduce:

$ mkdir cryfs
$ cd cryfs
$ bii init
$ bii open messmer/cryfs
$ bii cpp:configure -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug

Import project into eclipse: File -> Import -> Existing Projects Into Workspace.
There now is a "blocks" folder in the eclipse project containing the blocks

$ bii build -- -j5

In eclipse: Right click on the project and select "Refresh". The "blocks" folder is gone.

$ bii cpp:configure -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug

In eclipse: Refresh again. The "blocks" folder is there again.

Possibly related #22: when calling build, it re-configures the whole project.

@drodri drodri self-assigned this Apr 29, 2015
@drodri
Copy link
Contributor

drodri commented Apr 29, 2015

I have checked in windows, with Eclipse Luna Service Release 1 (4.4.1), and it works ok. Not sure what could be, will check in Ubuntu, but all the Eclipse related code is supposed to be platform independent. What version of Eclipse are you running?

@smessmer
Copy link
Author

Luna Service Release 1 (4.4.1) Build id: 20140925-1800.

@drodri
Copy link
Contributor

drodri commented Apr 29, 2015

I have tried in Ubuntu 14.04 with same Eclipse Luna, and didn't failed for me. Though I didnt try with gcc 4.9 (VM, running out of disk space) and build fails for cryfs, but other projects with the same workflow work OK and blocks folder is not removed from eclipse. Could you please check in your system if the behaviour is the same with a simple "Hello world" project? Thanks

@smessmer
Copy link
Author

Still happens with biicode 3.1.1.

I narrowed it down to a minimal block (messmer/testblock). It seems to be connected to the

INCLUDE(biicode/boost/setup)

in CMakeLists.txt. If I remove this line, it works.

@smessmer
Copy link
Author

Did you have success reproducing it using my minimal testblock?

@drodri
Copy link
Contributor

drodri commented May 11, 2015

Hi! Sorry for the delay.
I have just tried, your minimal block really helped. I have tracked the problem down to a missbehavior in CMake only in Linux, it doesnt do that in Win. Basically CMake is overwriting innecessarily the .project Eclipse files even if there are no changes, overwriting the biicode config that loads blocks, etc. I think I have a fix, working on it, I will let you know, thanks!

@drodri
Copy link
Contributor

drodri commented May 11, 2015

I have pushed a fix to biicode develop branch, could you please check it? Tests are passing here, and working both in Win and also the failing Ubuntu behavior seems to work now.

@smessmer
Copy link
Author

Hey, that's awesome. It seems to work. Thank you very much :)

@drodri
Copy link
Contributor

drodri commented May 11, 2015

Again, thanks to you :)
You are helping so much detecting, reporting and helping in debugging for
these bugs, so really appreciated.

Diego Rodriguez-Losada
CEO Biicode Innovation SL
M: +34 656274654

2015-05-11 21:11 GMT+02:00 Sebastian Meßmer [email protected]:

Hey, that's awesome. It seems to work. Thank you very much :)


Reply to this email directly or view it on GitHub
#21 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants