Scala plugin issues

I have a multi-module SBT project using RDF libraries in Spark 3.0. The dependency trees are large. At some point, almost at random, after modifying the build.sbt file the IntelliJ IDE with the latest Scala plugin fails to extract and synchronize the project structure with the build file. I always get the same exception:

IJ]last catalogProject / updateClassifiers
[debug] not up to date. inChanged = true, force = false
[debug] Updating ProjectRef(uri("file:/orion/forge/promethium/pm61data/pm61-reasoner/"), "catalogProject")...
[error] java.lang.NumberFormatException: For input string: "yesi"
[error] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[error] at java.lang.Integer.parseInt(Integer.java:580)
[error] at java.math.BigInteger.<init>(BigInteger.java:470)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$$anonfun$findChecksum$1.applyOrElse(CacheChecksum.scala:22)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$$anonfun$findChecksum$1.applyOrElse(CacheChecksum.scala:20)
[error] at scala.collection.TraversableOnce.collectFirst(TraversableOnce.scala:172)
[error] at scala.collection.TraversableOnce.collectFirst$(TraversableOnce.scala:159)
[error] at scala.collection.AbstractTraversable.collectFirst(Traversable.scala:108)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.findChecksum(CacheChecksum.scala:20)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.$anonfun$parseChecksumAlternative$2(CacheChecksum.scala:31)
[error] at scala.Option.orElse(Option.scala:447)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.parseChecksumAlternative(CacheChecksum.scala:30)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.$anonfun$parseRawChecksum$1(CacheChecksum.scala:52)
[error] at scala.Option.orElse(Option.scala:447)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.parseRawChecksum(CacheChecksum.scala:52)
[error] at lmcoursier.internal.shaded.coursier.cache.FileCache.$anonfun$validateChecksum$4(FileCache.scala:677)
[error] at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
[error] at scala.util.Success.$anonfun$map$1(Try.scala:255)
[error] at scala.util.Success.map(Try.scala:213)
[error] at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
[error] at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
[error] at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
[error] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (catalogProject / updateClassifiers) java.lang.NumberFormatException: For input string: "yesi"
[IJ]

Attempts to reverse the latest change and go back to the previously working configuration in Git are usually unsuccessful. Typically I will find a new "working" configuration after many trials/errors. Other members of my team experience similar behavior, but there is no consistency.

What is important, the build works perfectly when SBT is running on the command line outside of IDE.

It is hard to make a reproducible case because the project is massive. Any general recommendations on how to diagnose and debug problems with Scala plugin?

I am using the latest IntelliJ IDEA 2020.3.1 (Ultimate Edition)
Build #IU-203.6682.168, built on December 29, 2020
Licensed to Promethium, Inc. / Azary Smotrich
Subscription is active until March 13, 2021.
Runtime version: 11.0.9.1+11-b1145.63 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.10.4-1-default
GC: G1 Young Generation, G1 Old Generation
Memory: 8192M
Cores: 8
Registry: ide.windowSystem.autoShowProcessPopup=true, debugger.click.disable.breakpoints=true, documentation.show.toolbar=true, debugger.watches.in.variables=false, debugger.valueTooltipAutoShowOnSelection=true, ide.tooltip.initialDelay=498
Non-Bundled Plugins: Key Promoter X, com.alayouni.ansiHighlight, com.intellij.ideolog, com.jetbrains.jbre.bintray.downloader, com.jetbrains.plugins.ini4idea, com.intellij.plugins.watcher, net.seesharpsoft.intellij.plugins.csv, net.vektah.codeglance, org.antlr.jetbrains.st4plugin, mobi.hsz.idea.gitignore, com.intellij.kubernetes, GrepConsole, String Manipulation, VisualVMLauncher, Gitflow, org.jetbrains.plugins.hocon, zookeeper, MavenRunHelper, de.dm.intellij.maven-archetypes-catalog-plugin, org.jetbrains.kotlin, zielu.gittoolbox, com.intellij.plugins.html.instantEditing, org.intellij.scala, Pythonid, ru.adelf.idea.dotenv
Current Desktop: KDE

Best regards,

-Azary

Please sign in to leave a comment.