No test class found when trying to run the tests
Encountering an odd issue where the even though a test class exists in the org, if I try to run the test from IC (WebStorm) it will fail saying the the class does not exist.
I have noticed this for this class for the last few releases
2020-02-05 08:50:12,730 [ 736655] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: #com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler, #com.illuminatedcloud.util.VariableLengthPollingInterval
2020-02-05 08:50:17,699 [ 741624] DEBUG - .ApexUnitTestRunProcessHandler - Running tests for [ DevB: { DeclarationUtilityTest } ].
2020-02-05 08:50:17,731 [ 741656] DEBUG - .ApexUnitTestRunProcessHandler - Starting test run.
2020-02-05 08:50:17,731 [ 741656] DEBUG - .ApexUnitTestRunProcessHandler - Finding class declaration for DeclarationUtilityTest.
2020-02-05 08:50:17,731 [ 741656] WARN - .ApexUnitTestRunProcessHandler - No test class found for DeclarationUtilityTest.
2020-02-05 08:50:17,731 [ 741656] DEBUG - .ApexUnitTestRunProcessHandler - Creating a trace flag.
2020-02-05 08:50:18,311 [ 742236] INFO - .ApexUnitTestRunProcessHandler - Running unit tests asynchronously.
2020-02-05 08:50:18,311 [ 742236] DEBUG - .ApexUnitTestRunProcessHandler - Queueing the test run collecting coverage.
2020-02-05 08:50:18,311 [ 742236] DEBUG - .ApexUnitTestRunProcessHandler - Posting the following to runTestsAsynchronous:
2020-02-05 08:50:18,311 [ 742236] DEBUG - .ApexUnitTestRunProcessHandler - {"tests":[],"skipCodeCoverage":false}
2020-02-05 08:50:18,408 [ 742333] WARN - .ApexUnitTestRunProcessHandler - Unexpected status code 403 returned.
2020-02-05 08:50:18,409 [ 742334] DEBUG - .ApexUnitTestRunProcessHandler - Finishing test run.
2020-02-05 08:50:25,445 [ 749370] INFO - rationStore.ComponentStoreImpl - Saving appCachedDictionaryState took 11 ms
2020-02-05 08:50:25,480 [ 749405] INFO - rationStore.ComponentStoreImpl - Saving Module: 'DevB'FacetManager took 34 ms
2020-02-05 08:50:25,552 [ 749477] INFO - rationStore.ComponentStoreImpl - Saving Project (name=DevB, containerState=ACTIVE, componentStore=/Users/tonyfwhite/Sync/Workspaces/DevB) IlluminatedCloudWorkspaceSettings took 38 ms, ProjectDictionaryState took 13 ms
WebStorm 2019.3.2 Build #WS-193.6015.40
JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
Illuminated Cloud 2 version: 2.1.0.1
Comments (13)
-
repo owner -
I’ve opened an issue with sfdx team for issue that Scott mentions: https://github.com/forcedotcom/cli/issues/265
-
reporter No not that I am aware of? I certainly cannot find another copy of this file via the search or even using find ./ -iname
DeclarationUtilityTest.cls
-
reporter Note the class saves fine, it is just when I try to run the tests
-
repo owner Tony, can you make sure that the scope is set to All Places (top-right), e.g.:
That will include files from the OST as well as those in the local project source.
-
reporter Yep, still not found.
I updated to latest IC and rebuilt the Full OST this morning
-
reporter Not sure it is related to this but when I checked the logs to see if it listed anything when I access the test class configuration, but nothing there
2020-02-05 11:49:32,598 [11496523] ERROR - ctionSystem.impl.ActionUpdater - WebStorm 2019.3.2 Build #WS-193.6015.40
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - OS: Mac OS X
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - Plugin to blame: Illuminated Cloud 2 version: 2.1.0.1
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - update failed for AnAction(com.illuminatedcloud.intellij.action.ConfigureModuleAction) with ID=IlluminatedCloud.ConfigureModule
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:458)
at com.intellij.ide.actions.searcheverywhere.SearchEverywhereUI$SearchListModel.isMoreElement(SearchEverywhereUI.java:1255)
at com.intellij.ide.actions.searcheverywhere.SearchEverywhereUI.lambda$getData$11(SearchEverywhereUI.java:294)
at java.base/java.util.stream.IntPipeline$9$1.accept(IntPipeline.java:368)
at java.base/java.util.Spliterators$IntArraySpliterator.tryAdvance(Spliterators.java:1041)
at java.base/java.util.stream.IntPipeline.forEachWithCancel(IntPipeline.java:163)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)
at com.intellij.ide.actions.searcheverywhere.SearchEverywhereUI.getData(SearchEverywhereUI.java:323)
at com.intellij.ide.impl.DataManagerImpl.getDataFromProvider(DataManagerImpl.java:89)
at com.intellij.ide.impl.DataManagerImpl.getData(DataManagerImpl.java:67)
at com.intellij.ide.impl.DataManagerImpl.access$200(DataManagerImpl.java:46)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.calcData(DataManagerImpl.java:386)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.doGetData(DataManagerImpl.java:378)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.getData(DataManagerImpl.java:356)
at com.intellij.openapi.actionSystem.DataKey.getData(DataKey.java:60)
at com.illuminatedcloud.intellij.action.AbstractIlluminatedCloudAction.getSelectedModules(SourceFile:239)
at com.illuminatedcloud.intellij.action.AbstractIlluminatedCloudAction.update(SourceFile:75)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:182)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:444)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$null$1(ActionUpdater.java:93)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:130)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$2(ActionUpdater.java:94)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:427)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:290)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:270)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1707)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:270)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:319)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:270)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1707)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:270)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:319)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:270)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1707)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:270)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:181)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:155)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupWithTimeout$11(ActionUpdater.java:197)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:179)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.withTimeout(ProgressIndicatorUtils.java:277)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroupWithTimeout(ActionUpdater.java:197)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroupWithTimeout(ActionUpdater.java:189)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsImpl(ActionToolbarImpl.java:1098)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$000(ActionToolbarImpl.java:53)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$1.updateActionsImpl(ActionToolbarImpl.java:166)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyUpdateRunnable.run(ToolbarUpdater.java:172)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2418)
at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:177)
at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:129)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:159)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.updateActions(ToolbarUpdater.java:94)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.access$400(ToolbarUpdater.java:26)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyTimerListener.run(ToolbarUpdater.java:144)
at com.intellij.openapi.actionSystem.impl.WeakTimerListener.run(WeakTimerListener.java:35)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.runListenerAction(ActionManagerImpl.java:1545)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.notifyListeners(ActionManagerImpl.java:1534)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.actionPerformed(ActionManagerImpl.java:1518)
at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - WebStorm 2019.3.2 Build #WS-193.6015.40
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - OS: Mac OS X
2020-02-05 11:49:32,599 [11496524] ERROR - ctionSystem.impl.ActionUpdater - Plugin to blame: Illuminated Cloud 2 version: 2.1.0.1
2020-02-05 11:49:32,600 [11496525] ERROR - ctionSystem.impl.ActionUpdater - update failed for AnAction(com.intellij.openapi.vcs.actions.TabbedShowHistoryAction) with ID=Vcs.ShowTabbedFileHistory
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:458)
at com.intellij.ide.actions.searcheverywhere.SearchEverywhereUI$SearchListModel.isMoreElement(SearchEverywhereUI.java:1255)
at com.intellij.ide.actions.searcheverywhere.SearchEverywhereUI.lambda$getData$11(SearchEverywhereUI.java:294)
at java.base/java.util.stream.IntPipeline$9$1.accept(IntPipeline.java:368)
at java.base/java.util.Spliterators$IntArraySpliterator.tryAdvance(Spliterators.java:1041)
at java.base/java.util.stream.IntPipeline.forEachWithCancel(IntPipeline.java:163)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)
at com.intellij.ide.actions.searcheverywhere.SearchEverywhereUI.getData(SearchEverywhereUI.java:323)
at com.intellij.ide.impl.DataManagerImpl.getDataFromProvider(DataManagerImpl.java:89)
at com.intellij.ide.impl.DataManagerImpl.getData(DataManagerImpl.java:67)
at com.intellij.ide.impl.DataManagerImpl.access$200(DataManagerImpl.java:46)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.calcData(DataManagerImpl.java:386)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.doGetData(DataManagerImpl.java:378)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.getData(DataManagerImpl.java:356)
at com.intellij.openapi.actionSystem.DataKey.getData(DataKey.java:60)
at com.intellij.openapi.vcs.actions.VcsContextWrapper.getSelectedFilePathsStream(VcsContextWrapper.java:169)
at com.intellij.openapi.vcs.actions.TabbedShowHistoryAction.isEnabled(TabbedShowHistoryAction.java:57)
at com.intellij.openapi.vcs.actions.TabbedShowHistoryAction.update(TabbedShowHistoryAction.java:49)
at com.intellij.openapi.vcs.actions.AbstractVcsAction.performUpdate(AbstractVcsAction.java:71)
at com.intellij.openapi.vcs.actions.AbstractVcsAction.update(AbstractVcsAction.java:43)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:182)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:444)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$null$1(ActionUpdater.java:93)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:130)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$2(ActionUpdater.java:94)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:427)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:290)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:270)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1707)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:270)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:319)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:270)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1707)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:270)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:319)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:270)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1707)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:270)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:181)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:155)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupWithTimeout$11(ActionUpdater.java:197)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:179)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.withTimeout(ProgressIndicatorUtils.java:277)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroupWithTimeout(ActionUpdater.java:197)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroupWithTimeout(ActionUpdater.java:189)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsImpl(ActionToolbarImpl.java:1098)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$000(ActionToolbarImpl.java:53)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$1.updateActionsImpl(ActionToolbarImpl.java:166)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyUpdateRunnable.run(ToolbarUpdater.java:172)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2418)
at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:177)
at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:129)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:159)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.updateActions(ToolbarUpdater.java:94)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.access$400(ToolbarUpdater.java:26)
at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyTimerListener.run(ToolbarUpdater.java:144)
at com.intellij.openapi.actionSystem.impl.WeakTimerListener.run(WeakTimerListener.java:35)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.runListenerAction(ActionManagerImpl.java:1545)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.notifyListeners(ActionManagerImpl.java:1534)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.actionPerformed(ActionManagerImpl.java:1518)
at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
-
reporter Just to clarify, saving the class
Deployed 1/1 components to DevB in 6 s 589 ms with status COMPLETED.
Successes
• classes/DeclarationUtilityTest.cls
Then when I try to edit the Test class configuration it does not list it, and it errors if we try to run it from outside of Salesforce
-
repo owner That stack trace is interesting. It's bombing out pretty well inside of standard JetBrains plugin SDK code that's making a boiler-plate call to get the selected files from the action context. That actually appears to be a JetBrains bug. I'll check with them.
As for the original issue, it's not surprising that deployment is fine even if this isn't. They're not using the same mechanism to find the actual local class object...or rather deployment doesn't need to do the same thing as test execution. Basically I have a (pretty widely-used) utility method that allows me to locate a class by name, and for
DeclarationUtilityTest
that is returning null.Two other potential things come to mind that could cause this issue:
- That class is not under a configured source root, or the source root isn't configured correctly.
- The caches/indices are in a bad state and the one that allows me to quickly locate a class by name doesn't include that particular class.
I doubt it's the first one because incorrect configuration there would likely prevent successful deployment. Let's start with the second one. Can you use File>Invalidate Caches / Restart to completely rebuild your caches? My guess is that the problem will still occur, but let's check just in case.
If that doesn't resolve it, I'll likely need to add some additional debug logging to the utility method mentioned previously so we can see why it's not finding that class by name. Let me know the results of a cache rebuild.
-
reporter Invalidating the cache appears to have resolved it!
yay! Thank you.
-
repo owner - changed status to resolved
Oh, that's great to hear! Let me know if the problem recurs. Resolving this for now. I'll take that other stack trace to JetBrains to see if they might know what's going on.
-
repo owner FYI, that other stack trace has been confirmed as a JetBrains bug and filed as:
-
repo owner - changed component to Apex Unit Testing
- Log in to comment
Do you happen to have multiple copies of
DeclarationUtilityTest
in your project, perhaps even a copy in the OST? That's the most common reason I've seen for this, and I've been meaning to fix it...or at least make it more visible to the user that there's an ambiguity.