Code Monkey home page Code Monkey logo

Comments (11)

menny avatar menny commented on June 26, 2024

I'm on Mac - High Sierra v10.13.6 (17G65) - using Bazel 0.16.1 from brew (Google's tap).

from rules_kotlin.

menny avatar menny commented on June 26, 2024

I tried bazel clean --expunge.
I tried running in sandbox or with --spawn_strategy=standalone

Same error every time.

from rules_kotlin.

menny avatar menny commented on June 26, 2024

The following rules_kotlin commits are failing:
c56299c32437cf9608612868beb1c2ba9386940d
6a1ba7b9b6f8922d9d5db81f2169413e9ec9163c
9b02fa20795be93db64ac3d63a0cc06a5d18f0d3
b48c3f31c6e33d1613e2c5c0cda2a0e690b08fd2
fe593c56551b30445199a6a0ce47751cc23f3b23

But d83e2689b04941d097be7d3b85fd227434e036ea works!

from rules_kotlin.

menny avatar menny commented on June 26, 2024

I have #141 which seems to fix the issue.

from rules_kotlin.

hsyed avatar hsyed commented on June 26, 2024

Strange. do you have persistent workers enabled ?

I have been trying to get rid of the @io_bazel_rules_kotlin references.

from rules_kotlin.

hsyed avatar hsyed commented on June 26, 2024

Does @//kotlin/internal/repositories:BUILD.com_github_jetbrains_kotlin work ?

from rules_kotlin.

Paul-McNeice avatar Paul-McNeice commented on June 26, 2024

I also have the same error using the most recent commit

from rules_kotlin.

hsyed avatar hsyed commented on June 26, 2024

@Pmcneice do you have workers enabled ?

from rules_kotlin.

Paul-McNeice avatar Paul-McNeice commented on June 26, 2024

@hsyed Nope. This is a fresh install of Bazel - running 0.15.2-homebrew on OSX High Sierra v10.13.6.

I'll update that example project when I get home tonight to see if you can recreate on your end.

Edit: Unless workers are enabled by default with 0.15.2?

from rules_kotlin.

hsyed avatar hsyed commented on June 26, 2024

They aren't enabled by default -- I have an issue open in bazel core as for Kotlin it makes no sense to run without workers (well soon it won't, if the builder becomes more granular).

lets see if that fixes your problem, I'll update the readme to make it clearer if it does.

from rules_kotlin.

menny avatar menny commented on June 26, 2024

@hsyed changing to build_file = "@//kotlin/internal/repositories:BUILD.com_github_jetbrains_kotlin" did not fix the issue:

Starting local Bazel server and connecting to it...
INFO: SHA256 (https://github.com/menny/rules_kotlin/archive/e303a5506ed3a6e7c61cbc9f41a8c97be8fe5c08.zip) = c48c7b8823ab288dd32b1ec5081902525583b10f6dd99f63939a0a8f7ef19f92
ERROR: /Users/menny/dev/spotify/client-android/bazel/transformer/BUILD.bazel:17:1: every rule of type kt_jvm_binary implicitly depends upon the target '@com_github_jetbrains_kotlin//:kotlin-runtime', but this target could not be found because of: no such package '@com_github_jetbrains_kotlin//': Traceback (most recent call last):
	File "/private/var/tmp/_bazel_menny/abbd8cf9e5bbd5870afa5547369aa515/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
		workspace_and_buildfile(ctx)
	File "/private/var/tmp/_bazel_menny/abbd8cf9e5bbd5870afa5547369aa515/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 59, in workspace_and_buildfile
		ctx.symlink(ctx.attr.build_file, "BUILD.bazel")
Unable to load package for //kotlin/internal/repositories:BUILD.com_github_jetbrains_kotlin: not found.
ERROR: Analysis of target '//bazel/transformer:transformer' failed; build aborted: no such package '@com_github_jetbrains_kotlin//': Traceback (most recent call last):
	File "/private/var/tmp/_bazel_menny/abbd8cf9e5bbd5870afa5547369aa515/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
		workspace_and_buildfile(ctx)
	File "/private/var/tmp/_bazel_menny/abbd8cf9e5bbd5870afa5547369aa515/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 59, in workspace_and_buildfile
		ctx.symlink(ctx.attr.build_file, "BUILD.bazel")
Unable to load package for //kotlin/internal/repositories:BUILD.com_github_jetbrains_kotlin: not found.
INFO: Elapsed time: 6.368s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (10 packages loaded)
FAILED: Build did NOT complete successfully (10 packages loaded)

See e303a55

from rules_kotlin.

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.