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

Sometimes COMMON code is missing and not regenerated #205

Open
Hsilgos opened this issue Mar 16, 2020 · 2 comments
Open

Sometimes COMMON code is missing and not regenerated #205

Hsilgos opened this issue Mar 16, 2020 · 2 comments
Labels
bug Something isn't working cmake

Comments

@Hsilgos
Copy link
Contributor

Hsilgos commented Mar 16, 2020

I didn't catch yet how it happen, but sometimes COMMON code is removed probably by Gluecodium and not generated again which leads to compilation error in C++.

How to reproduce:

  1. Setup Gluecodium too generated COMMON and MAIN code in different folders.
  2. Build - should succeed.
  3. Manually remove internals of common/cbridge/include
  4. Build - fail with errors that C++ headers are not found.

Expected behaviour: Either Gluecodium should detect that common code is removed and regenerate it. Or Gluecodium should not let code to be deleted.

@DanielKamkha DanielKamkha added the bug Something isn't working label Mar 16, 2020
@hitman-codehq
Copy link

I have noticed two ways to reproduce this. This assumes you are using Gluecodium for both Android and iOS development.

  1. Clean your build folder, do a build for Android, then do a build for iOS and then when you come back to build Android again, it will be broken.
  2. Clean your build folder, do a build for Android, then switch git branches so that some .lime files have changed. Again, some files will be missing after trying to build for Android again.

@Hsilgos
Copy link
Contributor Author

Hsilgos commented Mar 21, 2020

Here is minimal example. Unpack and run bash script like this:
./reproduce.sh ~/projects/gluecodium/cmake/modules/gluecodium/gluecodium
(path to repository with gluecodium can be different)

As result there is no files in directory output/common/cbridge/include/
Expected: common headers, for example BaseHandle.h

Notices:
If --enable-caching is missing then files don't disappear.
In my understanding it happen because common sources don't contain cbridge folder on Android. Not sure if it's really bug of Gluecodium.

Archive.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cmake
Projects
None yet
Development

No branches or pull requests

3 participants