Comments (4)
The org.scalafmt.interfaces.ScalafmtException: [v3.7.16] corrupted class path:
exception is caused by following when running scalafmt
cli tool with scalafmt config set to 3.7.16
Caused by: java.lang.ClassNotFoundException: org.scalafmt.config.Config
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
at org.scalafmt.dynamic.ScalafmtReflect.<init>(ScalafmtReflect.scala:21)
at org.scalafmt.dynamic.ScalafmtModuleLoader$.$anonfun$loadClassPath$1(ScalafmtModuleLoader.scala:73)
at scala.util.Try$.apply(Try.scala:210)
at org.scalafmt.dynamic.ScalafmtModuleLoader$.org$scalafmt$dynamic$ScalafmtModuleLoader$$loadClassPath(ScalafmtModuleLoader.scala:71)
at org.scalafmt.dynamic.ScalafmtModuleLoader$WithDownloader.$anonfun$load$2(ScalafmtModuleLoader.scala:37)
at scala.util.Success.fold(Try.scala:281)
at org.scalafmt.dynamic.ScalafmtModuleLoader$WithDownloader.load(ScalafmtModuleLoader.scala:37)
at org.scalafmt.dynamic.ScalafmtModuleLoader$CachedProxy.load$1(ScalafmtModuleLoader.scala:56)
at org.scalafmt.dynamic.ScalafmtModuleLoader$CachedProxy.$anonfun$load$3(ScalafmtModuleLoader.scala:57)
at scala.util.Try$.apply(Try.scala:210)
at org.scalafmt.dynamic.utils.ReentrantCache.getOrAddToCache(ReentrantCache.scala:41)
at org.scalafmt.dynamic.ScalafmtModuleLoader$CachedProxy.load(ScalafmtModuleLoader.scala:57)
at org.scalafmt.dynamic.ScalafmtConfigLoader$.$anonfun$load$1(ScalafmtConfigLoader.scala:34)
at scala.util.Either.flatMap(Either.scala:352)
at org.scalafmt.dynamic.ScalafmtConfigLoader$.load(ScalafmtConfigLoader.scala:32)
at org.scalafmt.dynamic.ScalafmtConfigLoader$CachedProxy.load$1(ScalafmtConfigLoader.scala:74)
at org.scalafmt.dynamic.ScalafmtConfigLoader$CachedProxy.$anonfun$load$12(ScalafmtConfigLoader.scala:76)
at scala.util.Try$.apply(Try.scala:210)
at org.scalafmt.dynamic.utils.ReentrantCache.getOrAddToCache(ReentrantCache.scala:41)
at org.scalafmt.dynamic.ScalafmtConfigLoader$CachedProxy.$anonfun$load$7(ScalafmtConfigLoader.scala:76)
at scala.util.Success.fold(Try.scala:281)
at org.scalafmt.dynamic.ScalafmtConfigLoader$CachedProxy.load(ScalafmtConfigLoader.scala:70)
at org.scalafmt.dynamic.ScalafmtDynamic.resolveConfig(ScalafmtDynamic.scala:59)
at org.scalafmt.dynamic.ScalafmtDynamic.createSession(ScalafmtDynamic.scala:53)
at org.scalafmt.cli.ScalafmtDynamicRunner$.run(ScalafmtDynamicRunner.scala:28)
from scalafmt.
yeah scala steward upgraded this and it broke my CI
from scalafmt.
The
org.scalafmt.interfaces.ScalafmtException: [v3.7.16] corrupted class path:
exception is caused by following when runningscalafmt
cli tool with scalafmt config set to3.7.16
Updating scalafmt cli tool to the same version 3.7.16
as config file fixed the problem. I assume similar "update" would fix the sbt plugin, which just reports corrupted class path
.
The issue seems to be related to the removal/renaming of org.scalafmt.config.Config
.
from scalafmt.
from scalafmt.
Related Issues (20)
- Allow usage of "behavior of" (used in ScalaTest) by default when AvoidInfix is enabled
- AvoidInfix: apply different defaults to `main` and `test`
- Another code breakage involving whitespace syntax
- Doc examples involving align.tokens are not working as expected (due to overflowing maxColumn?) HOT 1
- `maxColumn` is ignored for long enough lines with functions calls HOT 1
- Config `insertEndMarkerMinLines` adds end marker for method counting scaladoc
- Scalafmt breaks code (tuple, trailing comma, RedundantParens)
- Does scalafmt support automatic removal of unused imports HOT 2
- Too many line breaks when using :: HOT 1
- Inconsistent `extends` alignment with `align.preset = more` HOT 8
- Produces Non-Compiling Code with implicit keyword after colon HOT 2
- How can I make "then" at the end of line, not next line HOT 1
- 3.8.0 breaks lambda functions
- scalafmt fail at parsing \n??? HOT 1
- scalafmt rewrites scala 2 syntax into scala 3 in build.sbt file
- SortModifiers does not follow Scala style guide HOT 3
- 3.8.0 breaks code when the next line starts with a parenthesis HOT 2
- 3.8.0 regression: tuple expression at the start of a line are moved to prior line (inside of match cases) HOT 2
- Scalafmt 3.8.0 update: suspicous reformatting HOT 3
- More newlines in unit tests after updating to 3.8.0 HOT 6
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 scalafmt.