question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error trying to run sample

See original GitHub issue

I’m following the instructions in the README to run the sample

$ buck fetch sample
Error: cannot locate a .buckversion file in the current directory or any parent directories.
Are you sure you are inside a valid repository?
caabernathy-mbp:litho caabernathy$ buck fetch sample
Using watchman.
[-] PROCESSING BUCK FILES...FINISHED 0.0s [100%] 🐳  New buck daemon
[+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)
[+] BUILDING...2.2s
BUILD FAILED: Couldn't get dependency '//sample/src/main/java/com/facebook/samples/litho:litho' of target '//sample:sample':
Parse error for build file /Users/caabernathy/Facebook/OpenSource/Litho/Code/litho/sample/src/main/java/com/facebook/samples/litho/BUCK:
TypeError: android_library() got an unexpected keyword argument 'plugins'
Call stack:
  File "/Users/caabernathy/Facebook/OpenSource/Litho/Code/litho/.buckd/tmp/buck_run.qTVfjj/buck_python_program8423449095434172792/python_bundle.zip/buck_parser/buck.py", line 1271, in process_with_diagnostics
    diagnostics=diagnostics)
  File "/Users/caabernathy/Facebook/OpenSource/Litho/Code/litho/.buckd/tmp/buck_run.qTVfjj/buck_python_program8423449095434172792/python_bundle.zip/buck_parser/buck.py", line 1161, in process
    implicit_includes=self._implicit_includes)
  File "/Users/caabernathy/Facebook/OpenSource/Litho/Code/litho/.buckd/tmp/buck_run.qTVfjj/buck_python_program8423449095434172792/python_bundle.zip/buck_parser/buck.py", line 1094, in _process_build_file
    implicit_includes=implicit_includes)
  File "/Users/caabernathy/Facebook/OpenSource/Litho/Code/litho/.buckd/tmp/buck_run.qTVfjj/buck_python_program8423449095434172792/python_bundle.zip/buck_parser/buck.py", line 1016, in _process
    exec(code, module.__dict__)
  File "/Users/caabernathy/Facebook/OpenSource/Litho/Code/litho/sample/src/main/java/com/facebook/samples/litho/BUCK", line 28
    COMPONENTS_YOGAPREBUILT_TARGET,
  File "/Users/caabernathy/Facebook/OpenSource/Litho/Code/litho/.buckd/tmp/buck_run.qTVfjj/buck_python_program8423449095434172792/python_bundle.zip/buck_parser/buck.py", line 149, in invoke
    return self.func(*args, **updated_kwargs)

Note, I’m using the open source version of Buck:

$ buck --version
buck version v2016.11.11.01

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rspencer01commented, Mar 24, 2017

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.

0reactions
pavlosptcommented, Apr 20, 2018

Can be closed as irrelevant!

Read more comments on GitHub >

github_iconTop Results From Across the Web

QA: When I try to run sample script, I get error "R session could ...
1). First check that the services 'Rserve' and 'Tomcat' are running on the DeployR server. If they are not running, start these services....
Read more >
Error while trying to run sample app for first time #9467 - GitHub
Problem encountered on https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/run. Operating System: windows.
Read more >
XSQF009I when trying to run sample.cd - IBM
Incorrect permissions and not being in the correct directory. Resolving The Problem. Follow these steps: Change permission on sample.cd to 755.
Read more >
"Plate missing" error appears when trying to run a sample set ...
SYMPTOMS: The plate in position 1 of the sample manager is recognized but the plate in position 2 is not The sample set...
Read more >
Getting Error while trying to run sample python app
Ok, I have it working. The Bookshelf sample uses Firestore and does not use Cloud SQL. The configuration is confusing ./gce and ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found