CLOVIS
06/06/2020, 8:22 PMval h = g ∘ f)
.
In Julia, they actually define many functions as unicode directly, I think it's a good compromise to just let the IDE display those as such.
What do you think?dephinera
06/10/2020, 7:57 PMshikasd
06/10/2020, 9:54 PMraulraja
06/15/2020, 12:56 PMRobert
06/15/2020, 1:10 PMdephinera
06/17/2020, 7:19 PMrt
06/21/2020, 8:28 PM//metadebug
-annotated classes to be displayed on compilation? is there some compiler switch or something? I cloned the arrow-meta-examples project but nothing gets printed into compiler output even though //metadebug
is clearly thereCLOVIS
06/22/2020, 8:45 AMValidated
, so it's possible to get the reason why it failed?rt
06/23/2020, 3:05 PMlenses
plugin in meta is commented out, not sure what the reason is. i've experimented with adding support for type parameters on case classes (wrt lenses):
usage https://github.com/tkroman/poptix/blob/master/poptix-gradle-plugin-test/src/main/kotlin/com/tkroman/poptix/PoptixExample.kt#L13
src https://github.com/tkroman/poptix/blob/master/poptix-gradle-plugin/src/main/kotlin/com/tkroman/poptix/PoptixTransformation.kt#L85
does this look like something useful for the mainline? i'm not really confident about the quality of implementation but would love to help out (with proper guidance) if you would accept this contributionraulraja
06/24/2020, 10:59 AMArchie
07/05/2020, 7:33 AMdcampogiani
08/03/2020, 2:58 PMtavish pegram
08/05/2020, 2:39 PMbuildscript {
repositories {
maven {
url '<https://oss.jfrog.org/artifactory/oss-snapshot-local/>'
}
}
dependencies {
classpath "io.arrow-kt:gradle-plugin:1.3.61-SNAPSHOT"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.61"
id "org.jetbrains.kotlin.plugin.jpa" version "1.3.61"
id "org.jetbrains.kotlin.plugin.spring" version "1.3.61"
id "org.springframework.boot" version "2.1.7.RELEASE"
id "com.adarshr.test-logger" version "2.0.0"
}
apply plugin: "java"
apply plugin: "war"
apply plugin: "kotlin"
apply plugin: "kotlin-spring"
apply plugin: "kotlin-jpa"
apply plugin: "kotlin-kapt"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
apply plugin: "jacoco"
apply plugin: "io.arrow-kt.arrow"
repositories {
jcenter()
mavenCentral()
maven { url "<https://splunk.jfrog.io/splunk/ext-releases-local>" }
maven { url "<https://dl.bintray.com/arrow-kt/arrow-kt/>" }
maven {
url '<https://oss.jfrog.org/artifactory/oss-snapshot-local/>'
}
}
dependencies {
...other dependencies
// Arrow
implementation Dependencies.ArrowOptics
implementation Dependencies.ArrowSyntax
implementation Dependencies.ArrowFx
kapt Dependencies.ArrowMeta
compileOnly "io.arrow-kt:arrow-meta-prelude:1.3.61-SNAPSHOT"
}
The error message doesn’t seem super useful to me, but am I making a common mistake here or any suggestions on how to debug this?
Thanks!Slava Kornienko
08/07/2020, 6:55 AMSlava Kornienko
08/11/2020, 4:50 PMCLOVIS
08/17/2020, 3:24 PM.fix()
and .k()
calls will be unnecessary?Youssef Shoaib [MOD]
08/19/2020, 9:32 PMarnaud.giuliani
08/28/2020, 7:57 AMHanno
08/31/2020, 9:02 AMYoussef Shoaib [MOD]
08/31/2020, 11:50 AMHanno
09/01/2020, 6:45 PMYoussef Shoaib [MOD]
09/04/2020, 12:44 PMAnastasia Birillo [JB]
09/08/2020, 10:02 AMio.arrowkt.example.MyObject
instead of a short one like MyObject
. I use dotQualifiedExpression
in meta param. My final goal is to find a dotQualifiedExpression like MyObject.myFunction
and get all children if it is possible. For example, if I found MyObject.myFunction
and originally it is MyObject.myFunction.children
, I would like to get all children and I would like to be sure it is MyObject from io.arrowkt.example.MyObject
. Could you help me, please?Anastasia Birillo [JB]
09/09/2020, 2:14 PMMessageCollector
writes the messages (the filed of CompilerContext
). Maybe I did not understand clearly, but the arrow meta
uses NONE
MessageCollector, which does nothing. Can I override it? I would like to receive my logs.
I tried to run the @raulraja example with bindingContext
:
val Meta.example: CliPlugin
get() =
"Hello World" {
meta(
analysis(
doAnalysis = { project, module, projectContext, files, bindingTrace, componentProvider ->
null
},
analysisCompleted = { project, module, bindingTrace, files ->
val slice: ImmutableMap<PsiElement, DeclarationDescriptor> =
bindingTrace.bindingContext.getSliceContents(BindingContext.DECLARATION_TO_DESCRIPTOR)
slice.forEach { (psi, descriptor) ->
if (psi is KtProperty && descriptor is PropertyDescriptor) {
messageCollector?.report(
CompilerMessageSeverity.WARNING,
"${psi.text} -> Type: ${descriptor.returnType}"
)
}
}
null
}
)
)
}
Ahmed Mourad
09/11/2020, 6:21 AMCLOVIS
09/12/2020, 11:57 AMAhmed Mourad
09/13/2020, 3:59 PMconst
property of a companion object at compile time?melatonina
09/16/2020, 11:26 AMNikita Klimenko [JB]
09/19/2020, 12:36 PMAhmed Mourad
09/23/2020, 10:19 PMeval
, is there a way to use the classpath of the plugin consumer during the evaluation?Ahmed Mourad
09/23/2020, 10:19 PMeval
, is there a way to use the classpath of the plugin consumer during the evaluation?Password
during the evaluation.raulraja
09/23/2020, 10:28 PMAhmed Mourad
09/24/2020, 12:12 AMraulraja
09/24/2020, 8:19 AMAhmed Mourad
09/24/2020, 11:54 AMPassword
used other locally declared classes.
But I guess I could through those recursively as well until only third party types are left.