Skip to content

IntelliJ Errors #79

@markjfisher

Description

@markjfisher

I'm getting errors using IntelliJ (latest ultimate edition) editing kos scripts.

Access from Event Dispatch Thread (EDT) is not allowed

com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Current thread: Thread[AWT-EventQueue-0,6,main] 1177299881 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
at com.intellij.openapi.application.impl.ApplicationImpl.throwThreadAccessException(ApplicationImpl.java:1050)
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsNonDispatchThread(ApplicationImpl.java:1044)
at com.intellij.codeInsight.daemon.impl.WolfTheProblemSolverImpl.queue(WolfTheProblemSolverImpl.java:231)
at ksp.kos.ideaplugin.KerboScriptFile.lambda$new$0(KerboScriptFile.java:39)
at com.intellij.openapi.project.SmartModeScheduler.runWhenSmart(SmartModeScheduler.kt:100)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:242)
at ksp.kos.ideaplugin.KerboScriptFile.<init>(KerboScriptFile.java:35)
at ksp.kos.ideaplugin.parser.KerboScriptParserDefinition.createFile(KerboScriptParserDefinition.java:68)
at com.intellij.psi.AbstractFileViewProvider.createFile(AbstractFileViewProvider.java:140)

A couple of things happen typically when the error happens: variables don't highlight correctly in larger programs (e.g. if I select a variable name, other versions of that variable don't highlight, so refactoring variable names doesn't work), and sometimes files completely disappear from the Left Hand file view, and I have to kill IntelliJ and restart to get them to show.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions