Skip to content

IllegalStateException: Not yet initialized when rotating screen from portrait to landscape #559

@john-black-3k

Description

@john-black-3k

I am using version 2.0.4 (5c02f2c).

I have the following Java code in the editor:

package com.nbsp.cosmicide.example2;

public final class Main {
	public static void main(String[] args) {
		System.out.println("Hello, World!");
	}
}

When I rotate the screen from portrait to landscape the following exception occurs:

java.lang.IllegalStateException: Not yet initialized.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:515)
	at com.tyron.javacompletion.JavaCompletions.openFile(JavaCompletions.java:120)
	at org.cosmicide.editor.language.TsLanguageJava$2.invokeSuspend(TsLanguageJava.kt:66)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1ef7a64, Dispatchers.IO]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions