GithubHelp home page GithubHelp logo

zio-clippy's Introduction

Igal Tabachnik

zio-clippy's People

Contributors

hmemcpy avatar poslegm 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

Forkers

arcilli poslegm

zio-clippy's Issues

Bad parsing


  ZIO Type Mismatch  

Your effect requires the following environment, but it was not provided:

❯ grist.GristClient

Your effect has an error type mismatch:

❯ Required: twilio.CallTree.Failure
❯ Found   : Either[String

Your effect has a return type mismatch:

❯ Required: twilio.CallTree[R
❯ Found   : Throwable

--------------------------------------------------------------------------------
type mismatch;
 found   : kupasyomtov.igudbneitorah.Main.MainMenuOptions.Value => zio.ZIO[grist.GristClient with twilio.CallInfo,Either[String,Throwable],twilio.CallTree.Gather[Nothing]]
 required: kupasyomtov.igudbneitorah.Main.MainMenuOptions.Value => zio.ZIO[twilio.CallInfo with R,twilio.CallTree.Failure,twilio.CallTree[R]]
    (which expands to)  kupasyomtov.igudbneitorah.Main.MainMenuOptions.Value => zio.ZIO[twilio.CallInfo with R,scala.util.Either[String,Throwable],twilio.CallTree[R]]

 [29:62]

Ensime support

The plugin works with Ensime, however, it does not render the ANSI output:
image

This should probably be fixed in Ensime/VSCode integration, or consider providing an option to disable ANSI output from clippy.

Support custom type aliases

There are several ZIO-like type aliases that should probably be hardcoded (base ZIO aliases). The rest (e.g. ZPure, ZFlow, etc) could be added to an external resource mapping.

Intercept «incompatible type in overriding» errors

Example:

trait Base {
  type Env
  def makeEnv: ZLayer[Any, Nothing, Env]
}

object ZMain extends Base {
  override type Env = String

  override def makeEnv: ZLayer[Any with Long, Nothing, String] = ZLayer.succeed("42")
}

Output:

billing/billing/billing-tms/app/src/ZMain.scala:34: error: incompatible type in overriding
def makeEnv: zio.ZLayer[Any,Nothing,ru.yandex.vertis.billing.tms.ZMain0.Env] (defined in trait Base);
 found   : zio.ZLayer[Any with Long,Nothing,String]
 required: zio.ZLayer[Any,Nothing,ru.yandex.vertis.billing.tms.ZMain0.Env]
    (which expands to)  zio.ZLayer[Any,Nothing,String]
  override def makeEnv: ZLayer[Any with Long, Nothing, String] = ZLayer.succeed("42")
               ^
zio.ZLayer[Any with Long,Nothing,String] <: zio.ZLayer[Any,Nothing,ru.yandex.vertis.billing.tms.ZMain0.Env]?

Looks like magic regex ignores such errors because it is incompatible type in overriding, not a type mismatch 🤔

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.