Giter VIP home page Giter VIP logo

Comments (5)

Sintrastes avatar Sintrastes commented on June 2, 2024

@raulraja I'd be happy to look at this one if you have some suggestion for where I might look.

from arrow-meta.

raulraja avatar raulraja commented on June 2, 2024

Hi @Sintrastes , I believe your proposed fix can be applied here https://github.com/arrow-kt/arrow-meta/blob/main/plugins/proofs/proofs-plugin/src/main/kotlin/arrow/meta/plugins/proofs/phases/quotes/GenerateGivenSupportingFunctions.kt#L76-L103

https://github.com/arrow-kt/arrow-meta/blob/main/plugins/proofs/proofs-plugin/src/main/kotlin/arrow/meta/plugins/proofs/phases/quotes/GenerateGivenSupportingFunctions.kt#L121

from arrow-meta.

Sintrastes avatar Sintrastes commented on June 2, 2024

@raulraja Thanks for the suggestion.

Unfortunately, it looks like this is not as easy of a fix as I thought. This may still be part of the problem, but it actually looks like when the plugin tries to look up given instances for a generic class that is not defined in the current package, it can't actually find those instances.

I have a fork here where I've added a test to try and catch this issue -- and there I am actually getting this error before the unresolved reference error I was getting before:

error found: /tmp/Kotlin-Compilation14835146631616204679/sources/Test.kt: (29, 27): 
    There is no Proof for this type [ERROR : Semigroup] to resolve this call. Either define 
      a corresponding GivenProof or provide an evidence explicitly at this call-site.

from arrow-meta.

Sintrastes avatar Sintrastes commented on June 2, 2024

Although, for what it's worth, whenever I try to use it.type.getJetTypeFqName(true) instead of it.type -- it looks like all of the given tests fail with a pretty hefty BackendException that I don't understand in the slightest.

from arrow-meta.

raulraja avatar raulraja commented on June 2, 2024

That second error [ERROR : Semigroup] indicates an error type and probably just means that Semigroup was not resolved so maybe also missing the import or fqname for it.

from arrow-meta.

Related Issues (20)

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.