Comments (5)
@raulraja I'd be happy to look at this one if you have some suggestion for where I might look.
from arrow-meta.
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
from arrow-meta.
@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.
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.
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)
- [BUG] Arrow Analysis: inability to parse require() statements is a compiler error
- [BUG] Android project won't compile with Analysis HOT 6
- [BUG] double negative incorrectly interpreted
- [BUG] Analysis crashes on lazy initialisation to anonymous object HOT 1
- [BUG] Analysis crashes on expect declaration
- An operation is not implemented: Missing impl for <app_clientDebug>[ModuleDescriptorImpl@2a566cc] HOT 2
- [BUG] "java.lang.IllegalStateException: Symbol for kotlinx.serialization.internal/LongSerializer|null[0] is unbound" exception on build with Arrow Analysis plugin HOT 6
- Maven support for Arrow Analysis plugins HOT 1
- [BUG] Analysis: java.lang.UnsupportedOperationException on multiply code.
- [BUG] Project builds with Arrow Ananlysis only with specific gradle version
- [BUG] de.uni_freiburg.informatik.ultimate.logic.SMTLIBException: Function field is already defined HOT 1
- [BUG] "List has more than one element" HOT 2
- [HELP] Using meta for project-reactor
- [BUG] Gradle build failing with `java.lang.NoSuchMethodError`
- [BUG] NoSuchMethod error on Kotlin 1.5.30 but works on 1.6.0 HOT 4
- Question: Where do I get BindingContext? HOT 1
- [Security] Workflow build_documentation.yml is using vulnerable action actions/checkout HOT 2
- [BUG] Documentation Analysis Wrappers
- [BUG] Crash in Arrow Analysis on large codebase HOT 3
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 arrow-meta.