clj-holmes / clj-holmes-action

Action to execute clj-holmes in Clojure/Clojurescript projects.
4 stars 1 forks source link

#error Value out of range for int: 3375571391 #9

Open NaurozNau opened 4 months ago

NaurozNau commented 4 months ago

Hello clj-holmes-action maintainers, I am receiving the following error while using this github action to scan clojure code. Any idea how it can be resolved?

Fetching rules from github Done ** ERROR: ** Exception: #error { :cause Value out of range for int: 33755713[9](https://github.com/orgname/reck/actions/runs/9160349224/job/25182762764#step:5:10)1 :via [{:type java.util.concurrent.ExecutionException :message java.lang.IllegalArgumentException: Value out of range for int: 3375571391 :at [java.util.concurrent.FutureTask report FutureTask.java 122]} {:type java.lang.IllegalArgumentException :message Value out of range for int: 3375571391 :at [clojure.lang.RT intCast RT.java 1248]}] :trace [[clojure.lang.RT intCast RT.java 1248] [clojure.lang.RT intCast RT.java 1218] [progrock.core$interval_str invokeStatic core.clj 47] [progrock.core$render invokeStatic core.clj 92] [progrock.core$print invokeStatic core.clj 98] [progrock.core$print invoke core.clj 98] [progrock.core$print invokeStatic core.clj [clj_holmes.logic.progress$add_watch_to_counter$fn__519 invoke progress.clj 10] [clojure.lang.ARef notifyWatches ARef.java 81] [clojure.lang.Atom swap Atom.java 41] [clojure.core$swap_BANG_ invokeStatic core.clj 2354] [clj_holmes.engine$check_rules_in_code_structure invokeStatic engine.clj 9] [clj_holmes.engine$scan_STAR_$fn__1238 invoke engine.clj 21] [clojure.core$pmap$fn__8467$fn__8468 invoke core.clj 7024] [clojure.core$binding_conveyor_fn$fn__5758 invoke core.clj 2032] [clojure.lang.AFn call AFn.java 18] [java.util.concurrent.FutureTask run FutureTask.java 264] [java.util.concurrent.ThreadPoolExecutor runWorker ThreadPoolExecutor.java [11](https://github.com/orgname/reck//actions/runs/9160349224/job/25182762764#step:5:12)28] [java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java 628] [java.lang.Thread run Thread.java 829] [com.oracle.svm.core.thread.JavaThreads threadStartRoutine JavaThreads.java 596] [com.oracle.svm.core.posix.thread.PosixJavaThreads pthreadStartRoutine PosixJavaThreads.java 192]]}

dmosorast commented 1 week ago

To add a bit of a workaround for this issue, we've found that using a more recent version of clj-holmes gets around the error because --no-verbose mode was made the default in 92d59ed56

So it seems to be something weird happening in some scenarios with the progress bar calculations.