You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: handle ApplicationManager null in test environments
- Add null check in AutoDevSettingsState.getInstance() to return default instance when ApplicationManager is not available
- Add try-catch blocks in AutoDevAppScope.scope() and workerScope() with fallback CoroutineScope instances
- Remove @ignore annotation from LLMProvider2Test.shouldWorkWithJson as the test now passes
- Fixes 'Cannot invoke Application.getService() because ApplicationManager.getApplication() is null' error in unit tests
Copy file name to clipboardExpand all lines: core/src/test/kotlin/cc/unitmesh/devti/llm2/LLMProvider2Test.kt
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,6 @@ class LLMProvider2Test {
39
39
mockWebServer.shutdown()
40
40
}
41
41
42
-
@Ignore("Cannot invoke \"com.intellij.openapi.application.Application.getService(java.lang.Class)\" because the return value of \"com.intellij.openapi.application.ApplicationManager.getApplication()\" is null")
0 commit comments