Warning Unresolved namespace Integer Clojurescript

What happens

I get error in build_solutions_clojurescript

What do you understand or find about that problem

I understand that it may be by the compiler used in the repository for the clojurescript language

You make any workaround? What did you do?

I try to modify the code but I require the Integer/toBinaryString function for the solution and I understand that from there comes the problem


link to the pipeline:

link to commit:https://gitlab.com/autonomicmind/challenges/-/commit/056d1342ddec352d9830ad8f20f116164640c4c9

building ‘/nix/store/3q89fdxrymn7sw86455ki0didcc0zl6v-codecodeabbey081miyyer1946.cljs.drv’…
root/src/miyyer1946.cljs:13:23: warning: Unresolved namespace Integer. Are you missing a require?
linting took 48ms, errors: 0, warnings: 1
builder for ‘/nix/store/3q89fdxrymn7sw86455ki0didcc0zl6v-codecodeabbey081miyyer1946.cljs.drv’ failed with exit code 1
error: build of ‘/nix/store/3q89fdxrymn7sw86455ki0didcc0zl6v-codecodeabbey081miyyer1946.cljs.drv’ failed
parallel: This job failed:
helper_build_solution code/codeabbey/081/miyyer1946.cljs build/builders/solutions/clojurescript

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

I need help with

I don’t know if I can modify the code or it’s necessarily a configuration by the compiler used by the repository

Some time ago I found a similar problem, you already try to import Integer? like the import of clojure.string, because that can help the builder to recognize Integer, In the case that I said that works well.

Hi!, I had a similar problem some time ago too, I’m not totally sure but maybe you could solve the problem with this approach, you will need change this function
to this:
(. Integer toBinaryString)

or use this:

(:import [java.lang Integer])

because importing the class could help

Hey! Thank you very much this I solve my problem, it is certainly difficult to find such bugs. Greetings!