Comments (11)
I'm on Mac - High Sierra v10.13.6 (17G65) - using Bazel 0.16.1 from brew (Google's tap).
from rules_kotlin.
I tried bazel clean --expunge
.
I tried running in sandbox or with --spawn_strategy=standalone
Same error every time.
from rules_kotlin.
The following rules_kotlin
commits are failing:
c56299c32437cf9608612868beb1c2ba9386940d
6a1ba7b9b6f8922d9d5db81f2169413e9ec9163c
9b02fa20795be93db64ac3d63a0cc06a5d18f0d3
b48c3f31c6e33d1613e2c5c0cda2a0e690b08fd2
fe593c56551b30445199a6a0ce47751cc23f3b23
But d83e2689b04941d097be7d3b85fd227434e036ea
works!
from rules_kotlin.
I have #141 which seems to fix the issue.
from rules_kotlin.
Strange. do you have persistent workers enabled ?
I have been trying to get rid of the @io_bazel_rules_kotlin
references.
from rules_kotlin.
Does @//kotlin/internal/repositories:BUILD.com_github_jetbrains_kotlin
work ?
from rules_kotlin.
I also have the same error using the most recent commit
from rules_kotlin.
@Pmcneice do you have workers enabled ?
from rules_kotlin.
@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.
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.
@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)
- Release notes for v1.9.0 contain incorrect url for http_archive HOT 4
- WorkerEnvironmentTest is failing with Bazel@HEAD HOT 1
- `Exception in thread "main" java.lang.NoClassDefFoundError: dagger/internal/Preconditions` with JDK 20 and 21
- Support generating Java code with KSP HOT 1
- bzlmod: Document how to specify toolchain parameters such as kt_kotlinc_options
- Expose lower-level Kotlin JVM compilation defs for aspects HOT 1
- Error turbine_direct_graal failed while executing Turbine command HOT 3
- kt_jvm_test does not include native library paths in java.library.path HOT 2
- WorkerEnvironmentTest is failing at Bazel@HEAD HOT 2
- Error when using AutoBazelRepository annotation processor HOT 1
- Dependency .jar not found for kt_js_library with v1.9.0, but works fine with previous version (v1.8.1)
- kotlin compiler and ksp repositories fail to initialize on windows HOT 4
- WorkerEnvironmentTest is failing with Bazel@HEAD HOT 1
- kt_jvm_test is incompatible with Java >= 18 HOT 1
- Generated types not visible to IntelliJ HOT 2
- [Feature Request] apoption support for KSP plugins HOT 4
- Bzlmod: kotlin compiler is unconditionally downloaded HOT 4
- Does KSP require a separate runner? HOT 2
- WorkerEnvironmentTest is flakey
- [Bazel CI] Test logs failed for kotlin-builder at Bazel@HEAD in CI HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_kotlin.