From 5f5a97a7e1346175d684f4dec5e572a74d6bc4e3 Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Fri, 15 Nov 2024 21:05:35 +0200 Subject: [PATCH] Lazily load the logger to avoid injector initialization problems --- src/main/java/com/maddyhome/idea/vim/newapi/IjVimSearchGroup.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/maddyhome/idea/vim/newapi/IjVimSearchGroup.kt b/src/main/java/com/maddyhome/idea/vim/newapi/IjVimSearchGroup.kt index dc0fdd615a..38948c1b4f 100644 --- a/src/main/java/com/maddyhome/idea/vim/newapi/IjVimSearchGroup.kt +++ b/src/main/java/com/maddyhome/idea/vim/newapi/IjVimSearchGroup.kt @@ -44,7 +44,7 @@ import org.jetbrains.annotations.TestOnly ) open class IjVimSearchGroup : VimSearchGroupBase(), PersistentStateComponent { companion object { - private val logger = vimLogger() + private val logger by lazy { vimLogger() } } init {