Numerous 'Cannot resolve symbol' issues due to incomplete OST (proxy issue)

Issue #2254 resolved
René Görgens created an issue

Hi Scott,

I’m suddenly having a weird issue with unresolved symbols when opening any Apex class on my corporate machine.

  • Lots of symbols (but not all of them) appear in red.

    • For example in a UtilityConstants class with 215 occurences of public static final String, up to 113 occurences of String appear as unresolved. Formatting of the constants is deficient and occurs in bounds and leaps while scrolling.
  • When scrolling in a class, I eventually get the below exception (or it appears after while unrelated to scrolling).

  • The OST has been generated; doing a full regeneration does not change the issue at all.
  • Please note that I cannot currently reproduce the issue on another machine, for the same connection and classes.
  • On the corporate machine, IDEA is already installed in C:\localapp (exempt from virus scanning according to our info) and I’ve also moved the workspace there when encountering the present issue, but it doesn’t fix it.

2022-11-10 20:48:09,237 [ 962133] SEVERE - #c.i.c.d.i.PassExecutorService - com/intellij/lang/javascript/psi/ecma6/TypeScriptModule
java.lang.NoClassDefFoundError: com/intellij/lang/javascript/psi/ecma6/TypeScriptModule
at com.illuminatedcloud.intellij.search.LightningWebComponentsReferencesSearch.lambda$processQuery$0(SourceFile:227)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:915)
at com.illuminatedcloud.intellij.search.LightningWebComponentsReferencesSearch.processQuery(SourceFile:75)
at com.illuminatedcloud.intellij.search.LightningWebComponentsReferencesSearch.processQuery(SourceFile:65)
at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:77)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:28)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)
at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:108)
at com.intellij.util.MergeQuery.processResults(MergeQuery.java:22)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)
at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:108)
at com.intellij.util.UniqueResultsQuery.processResults(UniqueResultsQuery.java:37)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)
at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:83)
at com.illuminatedcloud.intellij.inspection.unusedDeclaration.ApexUnusedDeclarationInspection$ApexUnusedDeclarationVisitor.findFirstInterestingUsage(SourceFile:339)
at com.illuminatedcloud.intellij.inspection.unusedDeclaration.ApexUnusedDeclarationInspection$ApexUnusedDeclarationVisitor.visitNameIdentifier(SourceFile:193)
at com.illuminatedcloud.intellij.psi.impl.ApexNameIdentifierImpl.accept(SourceFile:20)
at com.illuminatedcloud.intellij.psi.impl.ApexNameIdentifierImpl.accept(SourceFile:25)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$10(InspectionRunner.java:317)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1154)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$11(InspectionRunner.java:325)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:215)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$12(InspectionRunner.java:331)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:159)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:151)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$13(InspectionRunner.java:294)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:130)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:119)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$14(InspectionRunner.java:294)
at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.lambda$call$0(JobLauncherImpl.java:297)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:282)
at com.intellij.concurrency.JobLauncherImpl.processQueue(JobLauncherImpl.java:350)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.processInOrder(InspectionRunner.java:293)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.visitElements(InspectionRunner.java:268)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$5(InspectionRunner.java:121)
at com.intellij.codeInspection.InspectionEngine.withSession(InspectionEngine.java:226)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.inspect(InspectionRunner.java:109)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:131)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:97)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:57)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:400)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1154)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:393)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:392)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:368)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:215)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:366)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:184)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: java.lang.ClassNotFoundException: com.intellij.lang.javascript.psi.ecma6.TypeScriptModule PluginClassLoader(plugin=PluginDescriptor(name=Illuminated Cloud 2, id=com.illuminatedcloud2.intellij, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IntelliJIdea2022.2\plugins\IlluminatedCloud2, version=2.2.4.7, package=null, isBundled=false), packagePrefix=null, instanceId=95, state=active)
... 65 more
2022-11-10 20:48:09,239 [ 962135] SEVERE - #c.i.c.d.i.PassExecutorService - IntelliJ IDEA 2022.2.3 Build #IU-222.4345.14
2022-11-10 20:48:09,239 [ 962135] SEVERE - #c.i.c.d.i.PassExecutorService - JDK: 17.0.4.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-11-10 20:48:09,239 [ 962135] SEVERE - #c.i.c.d.i.PassExecutorService - OS: Windows 10
2022-11-10 20:48:09,239 [ 962135] SEVERE - #c.i.c.d.i.PassExecutorService - Plugin to blame: Illuminated Cloud 2 version: 2.2.4.7

Comments (18)

  1. Scott Wells repo owner

    Have you disabled the JavaScript and TypeScript plugin? The unresolvable type comes from that plugin.

  2. Scott Wells repo owner

    I'm going to resolve this assuming it's due to a disabled dependency plugin. If the JavaScript and TypeScript plugin is properly enabled and you're still seeing this, please reopen and I'll need to collect additional diagnostic information.

  3. René Görgens reporter

    Thanks for your help!

    I re-enabled the JavaScript and TypeScript plugin which was for some reason disabled, then re-generated the OST twice, and tried closing the project and restarting the IDE.

    • None of this helped. Rather to the contrary: All types, system classes and their methods – and only those – are now rigourously unresolved, quicker than before and completely instead of partially. E.g. in the previously mentioned UtilityConstants Apex class, all 215 occurences of String are now affected. Same with any other class (in this project/ on this connection).
    • I’m seeing the same issue on another connection, in another fresh project (also MDAPI). I’m seeing the below log/exception there:

    2022-11-11 02:28:01,176 [ 670945] FINE - #c.i.i.s.m.ModuleContentsSynchronizationListener - Handling file pre-delete event for C:/localapp/workspace/DevDMS Test/IlluminatedCloud/DevDMS/OfflineSymbolTable.
    2022-11-11 02:28:01,176 [ 670945] FINE - #c.i.i.s.m.ModuleContentsSynchronizationListener - The main file is a directory. Adding descendants for potential processing.
    2022-11-11 02:28:01,176 [ 670945] FINE - #c.i.i.s.m.ModuleContentsSynchronizationListener - Removing all files which should not be processed:
    2022-11-11 02:28:01,176 [ 670945] FINE - #c.i.i.s.m.ModuleContentsSynchronizationListener - Total before = 1.
    2022-11-11 02:28:01,176 [ 670945] FINE - #c.i.i.s.m.ModuleContentsSynchronizationListener - Checking whether to process C:/localapp/workspace/DevDMS Test/IlluminatedCloud/DevDMS/OfflineSymbolTable: isSalesforceFunctionContent = false, hasMetadataSubscription = true, underDeployableSourceRoot = false, isSupportingMetaXmlFile = false, isSourceFile = false, isLightningBundleContent = false, isLightningBundleDirectory = false, isLightningWebComponentsTestsDirectory = false, isStaticResourceBundleContent = false, isStaticResourceBundleDirectory = false, useSeparateSourceRoot = false, isStaticResourceBundleConverting = false, isWaveTemplateBundleContent = false, isWaveTemplateBundleDirectory = false, isExperienceBundleContent = false, isExperienceBundleDirectory = false, isCustomFieldTranslation = false, isIntermediateDirectory = true, shouldProcess = false
    2022-11-11 02:28:01,176 [ 670945] FINE - #c.i.i.s.m.ModuleContentsSynchronizationListener - Total after = 0.
    2022-11-11 02:28:01,394 [ 671163] INFO - #c.i.u.i.UnindexedFilesUpdater - Started scanning for indexing of DevDMS Test. Reason: changes in: "Illuminated Cloud SDK IlluminatedCloud (DevDMS Test/DevDMS)"
    2022-11-11 02:28:01,395 [ 671164] INFO - #c.i.u.i.UnindexedFilesUpdater - Performing delayed pushing properties tasks for DevDMS Test took 0ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:01,395 [ 671164] INFO - #c.i.u.i.UnindexedFilesUpdater - Scanning of DevDMS Test uses 11 scanning threads
    2022-11-11 02:28:01,615 [ 671384] INFO - #c.i.u.i.UnindexedFilesUpdater - Scanning completed for DevDMS Test. Number of scanned files: 3541; Number of files for indexing: 3540 took 220ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:01,616 [ 671385] INFO - #c.i.u.i.UnindexedFilesUpdater - Use 4 indexing threads for indexing of DevDMS Test
    2022-11-11 02:28:06,558 [ 676327] INFO - #c.i.u.i.UnindexedFilesUpdater - Finished for DevDMS Test. Unindexed files update took 4943ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:06,560 [ 676329] INFO - #c.i.u.i.FileBasedIndexProjectHandler - Reindexing refreshed files of DevDMS Test : 18 to update, calculated in 0ms
    2022-11-11 02:28:06,560 [ 676329] INFO - #c.i.u.i.FileBasedIndexProjectHandler - Using 4 threads for indexing
    2022-11-11 02:28:06,645 [ 676414] INFO - #c.i.d.PerformanceWatcherImpl - Reindexing refreshed files of DevDMS Test took 85ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:06,673 [ 676442] INFO - #c.i.i.i.IlluminatedCloudIndexUtil - Rebuilding the stub index due to exception: Rebuild stub index.
    2022-11-11 02:28:06,673 [ 676442] INFO - #c.i.u.i.FileBasedIndexImpl - Rebuild requested for index Stubs
    java.lang.Exception: Rebuild stub index.
    at com.illuminatedcloud.intellij.index.IlluminatedCloudIndexUtil.lambda$requestReindex$2(SourceFile:338)
    at com.intellij.openapi.project.DumbServiceImpl.lambda$smartInvokeLater$9(DumbServiceImpl.java:530)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
    at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
    2022-11-11 02:28:06,704 [ 676473] INFO - #c.i.u.i.UnindexedFilesUpdater - Started scanning for indexing of DevDMS Test. Reason: Rebuild requested for index Stubs
    2022-11-11 02:28:06,705 [ 676474] INFO - #c.i.u.i.UnindexedFilesUpdater - Performing delayed pushing properties tasks for DevDMS Test took 1ms; general responsiveness: ok; EDT responsiveness: ok

    2022-11-11 02:28:06,912 [ 676681] INFO - #c.i.c.b.CompilerReferenceServiceBase - backward reference index reader is closed (didn't exist)
    2022-11-11 02:28:06,912 [ 676681] INFO - #o.j.k.i.s.r.KotlinCompilerReferenceIndexStorage - KCRI storage is closed (didn't exist)
    2022-11-11 02:28:06,976 [ 676745] INFO - #c.i.p.i.a.w.LegacyBridgeArtifactManagerRedefiner - Using workspace model to open project
    2022-11-11 02:28:07,026 [ 676795] INFO - #c.i.w.i.i.WorkspaceModelImpl - Load workspace model from cache in 15 ms
    2022-11-11 02:28:07,031 [ 676800] INFO - #c.i.p.c.ProjectCodeStyleSettingsManager - Initialized from default code style settings.
    2022-11-11 02:28:07,046 [ 676815] INFO - #c.i.i.n.e.NewToolbarRootPaneExtension - Show old main toolbar: true; show old navigation bar: true
    2022-11-11 02:28:07,046 [ 676815] INFO - #c.i.i.n.e.NewToolbarRootPaneExtension - Show new main toolbar: false
    2022-11-11 02:28:07,086 [ 676855] INFO - PerformancePlugin - Performance Plugin is in silent mode
    2022-11-11 02:28:07,092 [ 676861] INFO - #c.i.o.e.s.p.m.ExternalProjectsDataStorage - Load external projects data in 1 millis (read time: 1)
    2022-11-11 02:28:07,137 [ 676906] WARN - #c.i.o.w.i.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID: Illuminated Cloud) or icon ImageDataByPathLoader(classLoader=PluginClassLoader(plugin=PluginDescriptor(name=Illuminated Cloud 2, id=com.illuminatedcloud2.intellij, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IntelliJIdea2022.2\plugins\IlluminatedCloud2, version=2.2.4.7, package=null, isBundled=false), packagePrefix=null, instanceId=108, state=active), path=images/module_facet_icon_16x16.svg, original=null)
    2022-11-11 02:28:07,139 [ 676908] WARN - #c.i.o.w.i.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID: Anonymous Apex) or icon RasterizedImageDataLoader(classLoader=com.intellij.util.lang.PathClassLoader@31b7dea0, path=debugger/console.svg)
    2022-11-11 02:28:07,141 [ 676910] WARN - #c.i.o.w.i.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID: SOQL Query) or icon RasterizedImageDataLoader(classLoader=com.intellij.util.lang.PathClassLoader@31b7dea0, path=nodes/dataSchema.svg)
    2022-11-11 02:28:07,141 [ 676910] INFO - #c.i.i.s.p.i.SharedIndexChunkConfigurationImpl - Chunk bundled-js-predefined-ffdd448c697d-6a850e46a072-JavaScript-IU-222.4345.14 is registered for project 'DevDMS Test: matching: (fb=32, stub=53), incompatible: (fb=0, stub=0), unknown: (fb=9, stub=9),
    2022-11-11 02:28:07,142 [ 676911] WARN - #c.i.o.w.i.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID: Log Analyzer) or icon RasterizedImageDataLoader(classLoader=com.intellij.util.lang.PathClassLoader@31b7dea0, path=nodes/logFolder.svg)
    2022-11-11 02:28:07,142 [ 676911] INFO - #c.i.i.s.p.i.BundledSharedIndexPostStartupActivity - Attached 1 pre-built shared indexes: bundled-js-predefined-ffdd448c697d-6a850e46a072-JavaScript-IU-222.4345.14
    2022-11-11 02:28:07,144 [ 676913] WARN - #c.i.o.w.i.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID: Salesforce Functions) or icon RasterizedImageDataLoader(classLoader=com.intellij.util.lang.PathClassLoader@31b7dea0, path=nodes/function.svg)
    2022-11-11 02:28:07,315 [ 677084] INFO - #c.i.u.i.UnindexedFilesUpdater - Started scanning for indexing of DevDMS Test. Reason: On project open
    2022-11-11 02:28:07,315 [ 677084] INFO - #c.i.u.i.UnindexedFilesUpdater - Performing delayed pushing properties tasks for DevDMS Test took 0ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:07,456 [ 677225] INFO - #c.i.o.f.i.FileEditorManagerImpl - Project opening took 537 ms
    2022-11-11 02:28:07,506 [ 677275] INFO - #c.i.d.PerformanceWatcherImpl - Post-startup activities under progress took 420ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:09,341 [ 679110] INFO - #c.i.u.i.UnindexedFilesUpdater - Cancelled indexing of DevDMS Test
    2022-11-11 02:28:09,372 [ 679141] INFO - #c.i.u.i.UnindexedFilesUpdater - Scanning of DevDMS Test uses 11 scanning threads
    2022-11-11 02:28:09,680 [ 679449] INFO - #c.i.u.i.UnindexedFilesUpdater - Scanning completed for DevDMS Test. Number of scanned files: 4055; Number of files for indexing: 3809 took 2365ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:09,681 [ 679450] INFO - #c.i.u.i.UnindexedFilesUpdater - Use 4 indexing threads for indexing of DevDMS Test
    2022-11-11 02:28:13,760 [ 683529] INFO - #c.i.u.i.UnindexedFilesUpdater - Finished for DevDMS Test. Unindexed files update took 4079ms; general responsiveness: ok; EDT responsiveness: ok
    2022-11-11 02:28:13,785 [ 683554] INFO - #c.i.i.l.LicenseValidator - Server license validation result was Genuine.

  4. Scott Wells repo owner

    Okay, the original issue with the NoClassDefFoundError is in fact gone, though, so let's see what else is going on here. My guess is that it’s a project configuration issue where the OST isn’t being added as an SDK properly. Can you please attach the .iml file for this project/these projects?

  5. René Görgens reporter

    Here you go.

    If I look at Project Structure, I don’t know if the SDK field should be assigned by default (it’s not), but if I map that manually and regenerate the OST afterwards, nothing changes.

  6. Scott Wells repo owner

    Thanks. Those both look fine. The only thing that looks potentially suspicious is the use of a space in the project name in each, but I just created a project with the same type of name and don’t see any resolution issues.

    Obviously things were in a bad state initially with the disabled JS/TS plugin causing exceptions. Have you tried a full reindex via File > Invalidate Caches since enabling that plugin to ensure that everything gets indexed properly? Also, does your OfflineSymbolTable.zip file look complete? Have you tried regenerating the OST since enabling the plugin? I could see how OST generation might fail with it disabled on a commercial JetBrains IDE.

    If none of those help, can you create a standalone project that reproduces the same issue so that you can share it? Note that it’s getting quite late here so I won’t likely be able to respond any further tonight, but I’ll be curious to hear what you find based on what I’ve said above.

  7. René Görgens reporter

    Thanks for your stellar support Scott 😇

    I’ll try to get to the bottom of this tomorrow with your above advice. Our craftsman deactivated various plugins when he came by a couple of weeks ago, so I’ll have a look at those too.

  8. René Görgens reporter
    • Invalidate Caches didn’t help
    • Restore Default Settings and Import Settings didn’t help (less relevant due to settings sync via JetBrains acccount)
    • OST regeneration didn’t help

      • OST looks very irregular! See screenshot below
      • 15 folders inside OST on corporate machine, but 78 on other machine for the same connection

  9. Scott Wells repo owner

    Yeah, that doesn’t look right. Any errors in idea.log during OST generation? You can also enable debug logging during OST generation to get more details, but it sounds like your OST is failing to generate completely for some reason.

  10. René Görgens reporter

    I can already confirm that manually overwriting the OST in the corporate project with the one for the same connection from the other machine eliminated the issue completely.

    Also that regenerating the OST on the corporate machine brought the issue back, with a partial OST resulting in the initial issue.

  11. René Görgens reporter

    I think I found the issue:

    • Error 407 Proxy Authentication Required

      • They are constantly changing proxy policies… (my IntelliJ config didn’t change)
      • Would it be possible to warn the user if the OST is missing large chunks? As system classes are critical.

    2022-11-11 19:39:20,160 [ 932599] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Loading installed package namespaces with 1 steps.
    2022-11-11 19:39:20,586 [ 933025] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Completed activity Loading installed package namespaces in 426 ms.
    2022-11-11 19:39:20,587 [ 933026] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Initializing local symbols with 1 steps.
    2022-11-11 19:39:20,587 [ 933026] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Completed activity Initializing local symbols in 0 ms.
    2022-11-11 19:39:20,587 [ 933026] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Loading system classes with 1 steps.
    2022-11-11 19:39:20,641 [ 933080] WARN - #c.i.c.ForceComApiClient - Status code 407 returned trying to retrieve 'https://[redacted]--devdms.sandbox.my.salesforce.com/services/data/v56.0/tooling/completions/?type=apex': Proxy Authentication Required
    2022-11-11 19:39:20,641 [ 933080] WARN - #c.i.s.OfflineSymbolTable - Empty response received when trying to retrieve system class completions from Tooling API.
    2022-11-11 19:39:20,641 [ 933080] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Completed activity Loading system classes in 54 ms.
    2022-11-11 19:39:20,642 [ 933081] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Loading system classes with 1 steps.
    2022-11-11 19:39:20,642 [ 933081] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Completed activity Loading system classes in 0 ms.
    2022-11-11 19:39:20,642 [ 933081] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Loading system classes with 0 steps.
    2022-11-11 19:39:20,642 [ 933081] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Completed activity Loading system classes in 0 ms.
    2022-11-11 19:39:20,643 [ 933082] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Augmenting system classes with 1 steps.
    2022-11-11 19:39:22,440 [ 934879] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Completed activity Augmenting system classes in 1797 ms.
    2022-11-11 19:39:22,440 [ 934879] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Creating dynamic Visualforce component classes with 1 steps.
    2022-11-11 19:39:22,480 [ 934919] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Completed activity Creating dynamic Visualforce component classes in 40 ms.
    2022-11-11 19:39:22,480 [ 934919] INFO - #c.i.i.s.p.OfflineSymbolTableGenerator - Starting activity Loading custom classes with 1 steps.

  12. Scott Wells repo owner

    Aha. That would definitely do it as the Tooling API completions resource is what enumerates the Apex system namespaces and types.

    Yes, this is something that should be presented to the user. Having said that, this is obviously a rare enough situation that this is the first I’ve heard of it occurring in…over 7 years? And something like this--a misconfigured proxy--would almost certainly surface in many, many other ways as IC2 tries to communicate with the org directly vs. via the CLI. But failure to query the system types should certainly not be buried in a log. I’ll take care of it.

  13. René Görgens reporter

    Thank you 😇

    Maybe it’s the first instance of a proxy config that let’s you retrieve some stuff from a remote host while unauthenticated, while requiring authentication for retrieving other stuff from the same host. Not exactly intuitive. I couldn’t reverse engineer this rule but I’m not a network engineer. Maybe it’s just as you say, a misconfiguration and I should raise it as such. We have plenty of issues getting SFDX to work with the proxy.

    I can confirm that the OST is generated completely if I authenticate against the proxy. Even though it says:

    2022-11-11 20:06:27,603 [ 271492] WARN - o.a.h.i.a.HttpAuthenticator - NTLM authentication error: Credentials cannot be used for NTLM authentication: org.apache.http.auth.UsernamePasswordCredentials

  14. Scott Wells repo owner

    Fix committed for the next build. Failure to get the system types will not only be surfaced to the end user but will also result in the OST generation from proceeding at all.

  15. Log in to comment