Git Product home page Git Product logo

Comments (10)

Piasy avatar Piasy commented on September 7, 2024

@wzpan That looks strange, could you please save ./gradlew okbuck --stacktrace's output to a file and attach it in a comment? The file structure of your project, and the content of app/BUCK (not .okbuck/app/BUCK) could also helpful to figure out the cause of this problem. Thanks!

from okbuck.

wzpan avatar wzpan commented on September 7, 2024

Hi @Piasy ,

Thanks for the rapid response.

could you please save ./gradlew okbuck --stacktrace's output to a file and attach it in a comment?

Something went wrong that I can't attach the log file to the comment. Thus I will send you a mail with the attachment. Please check it out. Thanks again.

from okbuck.

Piasy avatar Piasy commented on September 7, 2024

@wzpan Hi, I didn't receive your email after half hour... is there something wrong? Or maybe you can contact me with QQ: 200842165. Thanks!

from okbuck.

wzpan avatar wzpan commented on September 7, 2024

Hi @Piasy ,

Sorry I went to have dinner with my friends. Now you should have got the email! Thanks.

from okbuck.

Piasy avatar Piasy commented on September 7, 2024

@wzpan Hi, I can reproduce your problem with version 0.2.5, which didn't support multiple application module, a newer version 0.2.6 fix it, so could you please give version 0.2.6 a trial? Thanks!

from okbuck.

wzpan avatar wzpan commented on September 7, 2024

Ok. I'll try it this afternoon.

from okbuck.

wzpan avatar wzpan commented on September 7, 2024

Hi @Piasy ,

I switch to use 0.2.6 and now I come across another problem.

For application module, I got the following error:

➜  appframework git:(master) ✗ buck run hfcache_example
Using watchman.
Using buckd.
[+] PROCESSING BUCK FILES...0.6s [100%]
BUILD FAILED: Couldn't get dependency '//hfasynchttp:res' of target '//hfcache_example:src':
//hfasynchttp:res: parameter 'res': no such file or directory 'hfasynchttp/src/main/res'

And for library module, I got the following error:

➜  appframework git:(master) ✗ buck run hfcache        
Using buckd.
[+] PROCESSING BUCK FILES...0.2s [100%]
BUILD FAILED: No rule found when resolving target //hfcache:hfcache in build file //hfcache/BUCK
Defined in file: /Users/hahack/hyperion/hyperion-sdk/afengine/android/framework/appframework/hfcache/BUCK

from okbuck.

Piasy avatar Piasy commented on September 7, 2024

@wzpan Well, I must admit that your project is a really big one, with many modules, which I didn't take into consideration when develop OkBuck. So I can imagine that there must be more problems waiting for you, and me too.

To address your problems, and improve OkBuck, more efficiently, would you mind to make contact with me through some IM tools? e.g. QQ: 200842165, WeChat: piasy_umumu.

from okbuck.

Piasy avatar Piasy commented on September 7, 2024

In summary, there are three problems:

  1. If an android library module doesn't have a res folder, OkBuck will generate the wrong BUCK file, and this will be fixed soon;
  2. If your project is under other version control system than git, e.g. git-svn, BUCK will try to recognize files under these folders, which should be ignored, and I'll add .svn ignore support in OkBuck soon, but I still suggest you use git :) ;
  3. BuildConfig problems, custom build config should be defined inside defaultConfig block of build.gradle file, otherwise, OkBuck and BUCK will ignore these custom fields.

from okbuck.

Piasy avatar Piasy commented on September 7, 2024

Above problems is fixed by 09e9f6e and c30fd68.

from okbuck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.