generated fromJetBrains/intellij-platform-plugin-template
- Notifications
You must be signed in to change notification settings - Fork463
Commitc35593d
committed
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 tests1 parente323739 commitc35593d
File tree
3 files changed
+26
-4
lines changed- core/src
- main/kotlin/cc/unitmesh/devti
- settings
- util
- test/kotlin/cc/unitmesh/devti/llm2
3 files changed
+26
-4
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
0 commit comments
Comments
(0)