vaadin / intellij-plugin

Vaadin IntelliJ Plugin
2 stars 0 forks source link

Error when opening a project the first time #13

Closed jcgueriaud1 closed 3 months ago

jcgueriaud1 commented 3 months ago

The first time I opened a project in Vaadin 14, imported from gradle. I had this error from the plugin.

java.lang.Throwable: Cannot create .copilot-plugin
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
    at com.vaadin.plugin.copilot.CopilotPluginUtil$Companion.savePortInDotFile(CopilotPluginUtil.kt:158)
    at com.vaadin.plugin.copilot.CopilotPluginUtil$Companion.startServer(CopilotPluginUtil.kt:91)
    at com.vaadin.plugin.copilot.activity.CopilotPostStartupProjectActivity.execute(CopilotPostStartupProjectActivity.kt:12)
    at com.intellij.ide.startup.impl.StartupManagerImplKt$launchActivity$1.invokeSuspend(StartupManagerImpl.kt:482)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

image

Can you RMB on project list and Stop/Start plugin one more time?

After a stop/start, the issue was not there on start.