Skip to content

Instantly share code, notes, and snippets.

View elect86's full-sized avatar
🏠
Working from home

Giuseppe Barbieri elect86

🏠
Working from home
View GitHub Profile
/*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'openvr'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:94)
at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:66)
at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:110)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defau
buildscript {
ext.kotlinVersion = '1.2.40-eap-51'
repositories {
jcenter() // shadow
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots/") }
}
@elect86
elect86 / map
Created February 14, 2018 20:07
Error:(275, 9) Kotlin: Type inference failed: Cannot infer type parameter V in operator inline fun <K, V> MutableMap<K, V>.set(key: K, value: V): Unit
None of the following substitutions
receiver: MutableMap<String, Pair<Int, KFunction<Structure.(KMutableProperty0<ElemBase>) -> Unit>>> arguments: (String,Pair<Int, KFunction<Structure.(KMutableProperty0<ElemBase>) -> Unit>>)
receiver: MutableMap<String, Pair<Int, KFunction2<Structure, @ParameterName KMutableProperty0<Camera>, Unit>>> arguments: (String,Pair<Int, KFunction2<Structure, @ParameterName KMutableProperty0<Camera>, Unit>>)
can be applied to
receiver: MutableMap<String, Pair<Int, KFunction<Structure.(KMutableProperty0<ElemBase>) -> Unit>>> arguments: (String,Pair<Int, KFunction2<Structure, @ParameterName KMutableProperty0<Camera>, Unit>>)
Error:Kotlin: [Internal Error] org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'treeNode' into
local final fun <anonymous>(): kotlin.Unit defined in imgui.imgui.demo.layout_.invoke
{
treeNode("Child regions") {
var gotoLine = button("Goto")
text("Without border")
sameLine()
withItemWidth(100) {
gotoLine = gotoLine or inputInt("##Line", ::line, 0, 0, Itf.EnterReturnsTrue.i)
}
AndroidOpenGLESLessons
├── app
│   ├── build.gradle
│   └── src
│   └── main
│   ├── AndroidManifest.xml
│   ├── java
│   │   └── com
│   │   └── learnopengles
│   │   └── android
object Ref {
var iPtr = 0
var fPtr = 0
var bPtr = 0
val ints = IntArray(100)
val floats = FloatArray(100)
val bools = BooleanArray(100)
class JavaProp<T>(val g: () -> T, val s: (T) -> T) : KMutableProperty0<T> {
override val isConst: Boolean = false
override val isOpen: Boolean = false
override val annotations: List<Annotation> = listOf()
override val isLateinit: Boolean = false
override val isAbstract: Boolean = false
override val isFinal: Boolean = false
override val name: String = ""
override val parameters: List<KParameter> = listOf()
"C:\Program Files\Java\jdk1.8.0_144\bin\java" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 173.3415.22\lib\idea_rt.jar=56185:C:\Program Files\JetBrains\IntelliJ IDEA 173.3415.22\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 173.3415.22\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 173.3415.22\plugins\junit\lib\junit-rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 173.3415.22\plugins\junit\lib\junit5-rt.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ex
java.lang.AssertionError: expected: | 1.0, 5.2359884E-8, 0.0, 0.0 |
| -5.2359884E-8, 1.0, 0.0, 0.0 |
| 0.0, 0.0, 1.0, 0.0 |
| 0.0, 0.0, 0.0, 1.0 | but was: | 1.0, -5.2359884E-8, 0.0, 0.0 |
| 5.2359884E-8, 1.0, 0.0, 0.0 |
| 0.0, 0.0, 1.0, 0.0 |
| 0.0, 0.0, 0.0, 1.0 | <Click to see difference>