Skip to content

Instantly share code, notes, and snippets.

e: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: wrong code generated
org.jetbrains.kotlin.codegen.CompilationException Back-end (JVM) Internal error: Couldn't transform method node: <init> (JJ)V:
L0
ALOAD 0
INVOKESPECIAL java/lang/Object.<init> ()V
ALOAD 0
LLOAD 1
PUTFIELD support/validation/LongLimit$Impl._min : J
ALOAD 0
LLOAD 2
import kotlinx.serialization.*
object DateSerializer : KSerializer<Date?> {
override fun load(input: KInput) = null
override val serialClassDesc: KSerialClassDesc
get() = TODO("not implemented")
override fun save(output: KOutput, obj: Date?) {
@fjodorver
fjodorver / final.md
Last active May 25, 2017 12:03
GSoC final evolution 2016 eclipse flux

Implement file system support in Eclipse Flux

Abstract

Add support of filesystem based synchronization in Eclipse Flux

Introduction

Eclipse Flux[1] is an experimental platform created in order to provide integration between web-based cloud applications and desktop based IDE (Eclipse). Platform is based on event driven architecture, and this approach gives a lot of flexibility. It looks like this approach can be applied for whole Eclipse ecosystem, giving ability to create and use cloud based services, such as code validation, suggestion, etc. Cloud services can be constructed using this technology in language/environment agnostic way.

Implementation

public class Main {
public static void main(String[] args) throws IOException {
final String PROJECT_ID = "codenvy-project-id";
final String PROJECT_PATH = "/codenvy-project";
MemoryMXBean mxBean = ManagementFactory.getMemoryMXBean();
FileSystem fileSystem = Jimfs.newFileSystem(Configuration.unix());
createDirectory(fileSystem.getPath(PROJECT_PATH));
createDirectory(fileSystem.getPath(PROJECT_PATH).resolve("src"));
JDKProjectWatchService watchService = mock(JDKProjectWatchService.class);