Kotlin.math code import error*

What happens

I get build error by error of function import. Math

What do you understand or find about that problem

I find information related to the contents of the default.nix file specific to kotlin, but I do not know how to import the required function

You make any workaround? What did you do?

I try to modify the file related to the kotlin builders without success


link to the pipeline:

link to commit:

/tmp/nix-build-codecodeabbey172miyyer1946.kt.drv-0/root/src/miyyer1946.kt:9:1: Wildcard import (cannot be auto-corrected) (no-wildcard-imports)
builder for ‘/nix/store/g9q5f762h5a8gsy76vs4pbjfbqa4j7f3-codecodeabbey172miyyer1946.kt.drv’ failed with exit code 1
error: build of ‘/nix/store/g9q5f762h5a8gsy76vs4pbjfbqa4j7f3-codecodeabbey172miyyer1946.kt.drv’ failed
parallel: This job failed:
helper_build_solution code/codeabbey/172/miyyer1946.kt build/builders/solutions/kotlin

We have found some problems :frowning:
You can replicate this by running:
services $ ./build.sh build_solutions_kotlin

I need help with

to be able to add the specific builders for kotlin code that allows me to use the function “import kotlin.math.*”

If you search your error:


You can found that is a bad idea to use the wildcard import, you should import the specific thing that you need:

Related topics:

@pastel-code thank you very much for what I was able to fix my problem the error was in the way I was normally importing all the functions.math by wildcard, changing the code by importing the two methods that require its use of the tangent function and the PI constant as follows.

initial code line:
import kotlin.math.*

change made

import kotlin.math.PI
import kotlin.math.tan