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

[Win] instead of a valid type annotation. Perhaps you meant "AppleBundleDestination"? #819

Open
Bardo91 opened this issue Dec 1, 2024 · 0 comments

Comments

@Bardo91
Copy link

Bardo91 commented Dec 1, 2024

I am not able to make BUCK2 run on my Windows computer. Did anyone has a similar issue before?

Steps

  1. Installed buck2 following the steps https://buck2.build/docs/about/getting_started/
  2. Initialized repository with buck2 init --git. This cloned the prelude repo.
  3. Created toolchains/BUCK With the content specified in the tutorial. My repo has only Python code.
  4. Called buck2 run //librarian:librarian

Issue

Calling:

buck2 run //librarian:librarian

Throws:

From `load` at implicit location                                                                                                                                                                                           
                                                                                                                                                                                                                           
Caused by:                                                                                                                                                                                                                 
    0: From `load` at prelude/prelude.bzl:8:6-29
    1: From `load` at prelude/native.bzl:15:6-45
    2: From `load` at prelude/apple/apple_macro_layer.bzl:8:6-50
    3: From `load` at prelude/apple/user/apple_ipa_package.bzl:9:6-52
    4: Error evaluating module: `prelude//apple/apple_bundle_destination.bzl`
    5: error: Found `enum("resources", "frameworks", "executables", "plugins", "xpcservices", "metadata", "watchapp", "headers", "modules", "quicklook", "bundleroot", "loginitems", "appclips", "extensionkit_extensions")` instead of a valid type annotation. Perhaps you meant `"AppleBundleDestination"`?
          --> prelude/apple/apple_bundle_destination.bzl:118:55
           |
       118 | def bundle_relative_path_for_destination(destination: AppleBundleDestination, sdk_name: str, extension: str, versioned_macos_bundle: bool) -> str:
           |                                                       ^^^^^^^^^^^^^^^^^^^^^^
           |

Other info:

  • OS windows
  • rustup version nightly-2024-07-21
  • buck2 version buck2 0ec71b43bfc49dde260e58330ec789fe8fd7746e023e6cf3643a5a256d20b899
  • buck2-prelude hash 70dda4804d5eb72bff982c72691d89cab414413b

[Note] I also tried with the hello_world example in the getting_started tutorial, and I get the same error

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

1 participant