Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
john-black-3k opened this issue Jun 16, 2024 · 0 comments

Comments

@john-black-3k
Copy link

john-black-3k commented Jun 16, 2024

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant