Giter Site home page Giter Site logo

playwarts's People

Contributors

danielnixon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

playwarts's Issues

Add wart for RouteInvokers#route

Two of the four overloads for play.api.test.RouteInvokers#route (the two that don't take an Application argument) rely on play.api.Play#current. They should be disabled.

scala.ScalaReflectionException: object play.api.db.DB in compiler mirror not found.

We use Scala 2.11.7 with playwarts 0.12 and wartremover 0.14.
Play version 2.4.3, SBT version 0.13.9

Could you take a look at it. We are using Playwarts but aren't able to fix this problem.
Please let us know if you need additional information. Thanks!

Wart.custom("org.danielnixon.playwarts.DBObject") generates the following errormessage:

scala.ScalaReflectionException: object play.api.db.DB in compiler mirror not found.
    at scala.reflect.internal.Mirrors$RootsBase.staticModule(Mirrors.scala:162)
    at scala.reflect.internal.Mirrors$RootsBase.staticModule(Mirrors.scala:22)
    at org.danielnixon.playwarts.ObjectWart.apply(ObjectWart.scala:9)
    at org.brianmckenna.wartremover.Plugin$Traverser$$anon$1$$anonfun$go$1$1.apply(Plugin.scala:72)
    at org.brianmckenna.wartremover.Plugin$Traverser$$anon$1$$anonfun$go$1$1.apply(Plugin.scala:72)
    at scala.collection.immutable.List.foreach(List.scala:381)
    at org.brianmckenna.wartremover.Plugin$Traverser$$anon$1.go$1(Plugin.scala:72)
    at org.brianmckenna.wartremover.Plugin$Traverser$$anon$1.apply(Plugin.scala:75)
    at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:440)
    at scala.tools.nsc.Global$GlobalPhase.withCurrentUnit(Global.scala:431)
    at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:440)
    at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398)
    at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398)
    at scala.collection.Iterator$class.foreach(Iterator.scala:742)
    at scala.collection.AbstractIterator.foreach(Iterator.scala:1194)
    at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:398)
    at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1501)
    at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1486)
    at scala.tools.nsc.Global$Run.compileSources(Global.scala:1481)
    at scala.tools.nsc.Global$Run.compile(Global.scala:1582)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
    at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
    at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:51)
    at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:51)
    at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:51)
    at sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:75)
    at sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:50)
    at sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:65)
    at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
    at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
    at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
    at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
    at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)
    at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:62)
    at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:61)
    at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:89)
    at sbt.inc.Incremental$.compile(Incremental.scala:61)
    at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
    at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
    at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
    at sbt.Compiler$.compile(Compiler.scala:128)
    at sbt.Compiler$.compile(Compiler.scala:114)
    at sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:829)
    at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:820)
    at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:818)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    at sbt.std.Transform$$anon$4.work(System.scala:63)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.Execute.work(Execute.scala:235)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
[error] (compile:compileIncremental) scala.ScalaReflectionException: object play.api.db.DB in compiler mirror not found.
[error] Total time: 42 s, completed 26-jan-2016 11:08:44

Support for coursier

Currently the file path of ivy is hard coded in PlayWarts.scala. Unfortunately coursier places the dependencies somewhere else. I submitted a PR for wartremover/wartremover#246 which would make wartremoverClasspaths as task key. As soon as this is published, the hard coded pathes could be replaced by something like:

wartremoverClasspaths ++= {
  val artifacts = update.value.configuration("compile")
    .map(_.modules.flatMap(_.artifacts))
    .getOrElse(Nil)

    artifacts.collect {
      case (artifact, file) if artifact.name == "playwarts_2.11" =>
        file.absolutePath
    }
}

How to inject ExecutionContext?

Hi,

I have a Play project with PlayWarts and I love it.

I have all classes with a declared dependency on ExecutionContext. However, when I try to wire my app using MacWire, I get a warning when either or both PlayGlobalExecutionContext and ScalaGlobalExecutionContext are enabled, respectively.

How can I, then, pass an ExecutionContext to fulfill the declared dependency without resorting to @SuppressWarnings(Array("org.danielnixon.playwarts.PlayGlobalExecutionContext"))?

Thank you

Unresolvable dependency in 2.12 / 1.1.0 release

Hi, I am using playwarts version 1.1.0 for scala 2.12, sbt 1.0.2.

addSbtPlugin("org.danielnixon" % "sbt-playwarts" % "1.1.0")

When I try to build my project, it fails with this:

[error] (core/*:update) sbt.librarymanagement.ResolveException: unresolved dependency: org.danielnixon#playwarts_2.12;1.1.0-SNAPSHOT: not found

Then I looked for playwarts jar in my .ivy2 cache:

-rw-r--r-- 1 elkozmon users 12215 Oct  7 03:04 /home/elkozmon/.ivy2/cache/scala_2.12/sbt_1.0/org.danielnixon/sbt-playwarts/jars/sbt-playwarts-1.1.0.jar

I noticed that you use version for auto import provided by build info sbt plugin, so I decompiled BuildInfo.class in that jar using jad, and found this inside:

private final String version = "1.1.0-SNAPSHOT";
private final String organization = "org.danielnixon";
private final String artifactID = "playwarts";

I guess that snapshot version must have accidentally slipped through there.

Compile Only with 0.22

Hello,

I was trying to do an update from the version 0.19 to 0.22 for playwarts. Unfortunately I'm unable to use this new version and I'm not sure why... I haven't change my build.sbt but I have this error if it can help:

Stracktrace

[info] Set current project to app (in build file:/home/user/app/)
java.lang.IllegalArgumentException: Cannot add dependency 'org.danielnixon#playwarts_2.11;0.22' to configuration 'compileonly' of module app#app_2.11;latest because this configuration doesn't exist!
    at org.apache.ivy.core.module.descriptor.DefaultDependencyDescriptor.addDependencyConfiguration(DefaultDependencyDescriptor.java:565)
    at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:157)
    at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:128)
    at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:118)
    at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:113)
    at sbt.CustomXmlParser$CustomParser.parseDepsConfs(CustomXmlParser.scala:32)
    at sbt.IvySbt$.convertDependency(Ivy.scala:615)
    at sbt.IvySbt$$anonfun$9.apply(Ivy.scala:564)
    at sbt.IvySbt$$anonfun$9.apply(Ivy.scala:564)
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:318)
    at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
    at scala.collection.AbstractTraversable.map(Traversable.scala:105)
    at sbt.IvySbt$.addDependencies(Ivy.scala:564)
    at sbt.IvySbt$Module.configureInline(Ivy.scala:194)
    at sbt.IvySbt$Module.x$6$lzycompute(Ivy.scala:172)
    at sbt.IvySbt$Module.x$6(Ivy.scala:167)
    at sbt.IvySbt$Module.sbt$IvySbt$Module$$moduleDescriptor0$lzycompute(Ivy.scala:167)
    at sbt.IvySbt$Module.sbt$IvySbt$Module$$moduleDescriptor0(Ivy.scala:167)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
    at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:133)
    at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
    at sbt.IvySbt$$anon$4.call(Ivy.scala:65)
    at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
    at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
    at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
    at xsbt.boot.Using$.withResource(Using.scala:10)
    at xsbt.boot.Using$.apply(Using.scala:9)
    at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
    at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
    at xsbt.boot.Locks$.apply0(Locks.scala:31)
    at xsbt.boot.Locks$.apply(Locks.scala:28)
    at sbt.IvySbt.withDefaultLogger(Ivy.scala:65)
    at sbt.IvySbt.withIvy(Ivy.scala:128)
    at sbt.IvySbt.withIvy(Ivy.scala:125)
    at sbt.IvySbt$Module.withModule(Ivy.scala:156)
    at sbt.IvyActions$.cleanCachedResolutionCache(IvyActions.scala:87)
    at sbt.Defaults$$anonfun$compileBase$4.apply(Defaults.scala:236)
    at sbt.Defaults$$anonfun$compileBase$4.apply(Defaults.scala:234)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    at sbt.std.Transform$$anon$4.work(System.scala:63)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.Execute.work(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
[error] (*:clean) java.lang.IllegalArgumentException: Cannot add dependency 'org.danielnixon#playwarts_2.11;0.22' to configuration 'compileonly' of module app#app_2.11;latest because this configuration doesn't exist!

Version

sbt: 0.13.11
scala: 2.11.8

scala.ScalaReflectionException: object org.danielnixon.playwarts.FutureObject not found.

We're trying to upgrade PlayWarts from 0.12 to 0.15 in our project. (Sadly, we can't upgrade to Play 2.5 just yet.) We get the stacktrace below. It's not specific to AkkaObject; the playwart it fails on is always the first one that's declared in the build.sbt.

On a vanilla Play 2.4 project, everything works just fine, so there must be something wrong in our project. Maybe a conflicting dependency. However, based on the stacktrace, I have no idea where to start looking. I was hoping maybe you could provide some insight.

scala.ScalaReflectionException: object org.danielnixon.playwarts.AkkaObject not found.
    at scala.reflect.internal.Mirrors$RootsBase.staticModule(Mirrors.scala:162)
    at scala.reflect.internal.Mirrors$RootsBase.staticModule(Mirrors.scala:22)
    at org.brianmckenna.wartremover.Plugin.getTraverser(Plugin.scala:20)
    at org.brianmckenna.wartremover.Plugin$$anonfun$ts$1$1.apply(Plugin.scala:41)
    at org.brianmckenna.wartremover.Plugin$$anonfun$ts$1$1.apply(Plugin.scala:41)
    at scala.collection.immutable.List.map(List.scala:273)
    at org.brianmckenna.wartremover.Plugin.ts$1(Plugin.scala:41)
    at org.brianmckenna.wartremover.Plugin.processOptions(Plugin.scala:45)
    at scala.tools.nsc.plugins.Plugin.init(Plugin.scala:65)
    at scala.tools.nsc.plugins.Plugins$$anonfun$loadPlugins$5.apply(Plugins.scala:99)
    at scala.tools.nsc.plugins.Plugins$$anonfun$loadPlugins$5.apply(Plugins.scala:99)
    at scala.collection.TraversableLike$$anonfun$filterImpl$1.apply(TraversableLike.scala:259)
    at scala.collection.immutable.List.foreach(List.scala:381)
    at scala.collection.TraversableLike$class.filterImpl(TraversableLike.scala:258)
    at scala.collection.TraversableLike$class.filter(TraversableLike.scala:270)
    at scala.collection.AbstractTraversable.filter(Traversable.scala:104)
    at scala.tools.nsc.plugins.Plugins$class.loadPlugins(Plugins.scala:99)
    at scala.tools.nsc.Global.loadPlugins(Global.scala:39)
    at scala.tools.nsc.plugins.Plugins$class.plugins(Plugins.scala:102)
    at scala.tools.nsc.Global.plugins$lzycompute(Global.scala:39)
    at scala.tools.nsc.Global.plugins(Global.scala:39)
    at scala.tools.nsc.plugins.Plugins$class.computePluginPhases(Plugins.scala:113)
    at scala.tools.nsc.Global.computePluginPhases(Global.scala:39)
    at scala.tools.nsc.Global.computePhaseDescriptors(Global.scala:750)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at xsbt.CachedCompiler0$Compiler.superCall(CompilerInterface.scala:220)
    at xsbt.CachedCompiler0$Compiler.superComputePhaseDescriptors(CompilerInterface.scala:213)
    at xsbt.CachedCompiler0$Compiler.phaseDescriptors$lzycompute(CompilerInterface.scala:210)
    at xsbt.CachedCompiler0$Compiler.phaseDescriptors(CompilerInterface.scala:205)
    at scala.tools.nsc.Global$Run.<init>(Global.scala:1237)
    at xsbt.CachedCompiler0$$anon$2.<init>(CompilerInterface.scala:106)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:106)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
    at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
    at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
    at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
    at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
    at sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
    at sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
    at sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
    at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
    at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
    at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
    at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
    at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
    at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:68)
    at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:67)
    at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:95)
    at sbt.inc.Incremental$.compile(Incremental.scala:67)
    at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
    at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
    at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
    at sbt.Compiler$.compile(Compiler.scala:152)
    at sbt.Compiler$.compile(Compiler.scala:138)
    at sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
    at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
    at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    at sbt.std.Transform$$anon$4.work(System.scala:63)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.Execute.work(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Add wart for unsafe JSON parsing

The three play.api.libs.json.Json#parse methods can throw com.fasterxml.jackson.core.JsonParseException (undocumented). Add a wart to replace them with parseOpt equivalents.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.