GithubHelp home page GithubHelp logo

Error trying to run sample about litho HOT 5 CLOSED

facebook avatar facebook commented on April 19, 2024
Error trying to run sample

from litho.

Comments (5)

rspencer01 avatar rspencer01 commented on April 19, 2024 1

I tested the sample on a virgin Ubuntu installation, building buck from master when writing the tutorial.

The plugins does need to be changed, now I think about it, as it is just yet another buck target. So first prize would be annotations_processor. However, we must keep the plugins on the widget dep for internal purposes. This won't affect most people, I'd think, because we'd ship a binary with compiled widgets. For building the sample app, we just replace the first file you mentioned and tell them to do the brew install you detail above.

from litho.

caabernathy avatar caabernathy commented on April 19, 2024

Seems the current Buck release is too old and doesn't contain the "plugins" support. I'll test if this works by building Buck off master.

from litho.

caabernathy avatar caabernathy commented on April 19, 2024

Update, I edited 3 files:

sample/src/main/java/com/facebook/samples/litho/BUCK
src/main/java/com/facebook/components/fresco/BUCK
src/main/java/com/facebook/components/widget/BUCK

Replacing plugins with annotation_processor per recommendation. The next error, which may be unrelated is this:

$ buck install -r sample
No Android platform target specified. Using default: Google Inc.:Google APIs:23
BUILD FAILED: //src/main/java/com/facebook/components/widget:widget failed on step javac with an exception:
//src/main/java/com/facebook/components/widget:widget: javac unable to load annotation processor: //src/main/java/com/facebook/components/processor:processor
com.facebook.buck.util.HumanReadableException: //src/main/java/com/facebook/components/widget:widget: javac unable to load annotation processor: //src/main/java/com/facebook/components/processor:processor
	at com.facebook.buck.jvm.java.Jsr199Javac.prepareProcessors(Jsr199Javac.java:368)
	at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:230)
	at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:148)
	at com.facebook.buck.jvm.java.JavacStep.tryBuildWithFirstOrderDeps(JavacStep.java:156)
	at com.facebook.buck.jvm.java.JavacStep.execute(JavacStep.java:139)
	at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:54)
	at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1351)
	at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:340)
	at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
	at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
	at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
	at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
	at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

[-] PROCESSING BUCK FILES...FINISHED 0.6s [100%]
[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
[-] BUILDING...FINISHED 1.0s [100%] (127/135 JOBS, 2 UPDATED, 2 [1.5%] CACHE MISS)

from litho.

caabernathy avatar caabernathy commented on April 19, 2024

FYI, if I install the latest version of Buck

brew update
brew tap facebook/fb
brew install --HEAD buck

I can build and run the sample with no BUCK file changes to switch from plugins.

from litho.

pavlospt avatar pavlospt commented on April 19, 2024

Can be closed as irrelevant!

from litho.

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.