Enabling sfdx debug logging polutes log with "Unable to use cache to load SFDX project file {path} Loading explicitly."

Issue #1660 resolved
Jurgis Salna created an issue

Basically here’s thousands of entries in log, spitting whenever I’ve got editor active:

2020-07-07 19:19:42,487 [1354749] DEBUG - edcloud.intellij.sfdx.SfdxUtil - Unable to use cache to load SFDX project file /Users/heyoo/workspace/DND/sfdx/sfdx-project.json. Loading explicitly.
2020-07-07 19:19:42,487 [1354749] DEBUG - edcloud.intellij.sfdx.SfdxUtil - Unable to use cache to load SFDX project file /Users/heyoo/workspace/DND/sfdx/sfdx-project.json. Loading explicitly.
2020-07-07 19:19:42,487 [1354749] DEBUG - edcloud.intellij.sfdx.SfdxUtil - Unable to use cache to load SFDX project file /Users/heyoo/workspace/DND/sfdx/sfdx-project.json. Loading explicitly.
2020-07-07 19:19:42,487 [1354749] DEBUG - edcloud.intellij.sfdx.SfdxUtil - Unable to use cache to load SFDX project file /Users/heyoo/workspace/DND/sfdx/sfdx-project.json. Loading explicitly.

Dunno what it means, but feels like it shouldn’t tho. I everything seems to work.

“Notify of stale cached connections list / details” - both enabled.

Comments (5)

  1. Scott Wells repo owner

    That would indicate a project/module configuration issue, actually. That's saying that it can't determine the module for that sfdx-project.json file. Correcting the config should eliminate that. Can you provide your .iml file so I can give feedback on how to fix this?

  2. Jurgis Salna reporter

    Have a look @Scott Wells

    <?xml version="1.0" encoding="UTF-8"?>
    <module type="IlluminatedCloud" version="4">
      <component name="FacetManager">
        <facet type="IlluminatedCloud" name="Illuminated Cloud">
          <configuration>
            <option name="connectionName" value="2844" />
            <option name="connectionType" value="SFDX" />
            <option name="moduleContents">
              <ModuleContents>
                <option name="contentSelectionType" value="SELECTED" />
              </ModuleContents>
            </option>
          </configuration>
        </facet>
      </component>
      <component name="NewModuleRootManager">
        <content url="file://$MODULE_DIR$/.github">
          <sourceFolder url="file://$MODULE_DIR$/.github" isTestSource="true" />
        </content>
        <content url="file://$MODULE_DIR$/assets">
          <sourceFolder url="file://$MODULE_DIR$/assets" isTestSource="true" />
        </content>
        <content url="file://$MODULE_DIR$/ci">
          <sourceFolder url="file://$MODULE_DIR$/ci" isTestSource="true" />
        </content>
        <content url="file://$MODULE_DIR$/decsond">
          <sourceFolder url="file://$MODULE_DIR$/decsond/main/default" isTestSource="false" />
          <sourceFolder url="file://$MODULE_DIR$/decsond/main" isTestSource="false" />
          <sourceFolder url="file://$MODULE_DIR$/decsond/main/core" isTestSource="false" />
          <sourceFolder url="file://$MODULE_DIR$/decsond/main/polyfills" isTestSource="false" />
          <sourceFolder url="file://$MODULE_DIR$/decsond/main/services" isTestSource="false" />
          <sourceFolder url="file://$MODULE_DIR$/decsond/tests/classes" isTestSource="false" />
          <excludeFolder url="file://$MODULE_DIR$/decsond/main/default/staticresources/JS_Globalize" />
          <excludeFolder url="file://$MODULE_DIR$/decsond/main/default/staticresources/JS_JQueryCSV" />
          <excludeFolder url="file://$MODULE_DIR$/decsond/main/deprecated" />
        </content>
        <content url="file://$MODULE_DIR$/dev_artifacts">
          <sourceFolder url="file://$MODULE_DIR$/dev_artifacts/main/default" isTestSource="false" />
        </content>
        <content url="file://$MODULE_DIR$/lib/CustomMetadataClientSync">
          <sourceFolder url="file://$MODULE_DIR$/lib/CustomMetadataClientSync/main/default" isTestSource="false" />
        </content>
        <content url="file://$MODULE_DIR$/lib/lax">
          <sourceFolder url="file://$MODULE_DIR$/lib/lax/main/default" isTestSource="false" />
        </content>
        <content url="file://$MODULE_DIR$/lib/mdapi" />
        <content url="file://$MODULE_DIR$/lib/strike">
          <sourceFolder url="file://$MODULE_DIR$/lib/strike/main/default" isTestSource="false" />
        </content>
        <content url="file://$MODULE_DIR$/scratch_config_files">
          <sourceFolder url="file://$MODULE_DIR$/scratch_config_files/main/default" isTestSource="false" />
        </content>
        <content url="file://$MODULE_DIR$/test_files">
          <sourceFolder url="file://$MODULE_DIR$/test_files/main/default" isTestSource="false" />
        </content>
        <orderEntry type="jdk" jdkName="IlluminatedCloud (sfdx/2844)" jdkType="IlluminatedCloud" />
        <orderEntry type="sourceFolder" forTests="false" />
      </component>
    </module>
    

  3. Scott Wells repo owner

    Hmmmm...why so many content roots and source roots? You could simplify this by setting up a single content root at $MODULE_DIR$ and then multiple source roots under that at the respective relative paths. As it is right now, you have content roots and source roots that overlap one another, e.g., $MODULE_DIR$/decsond/main and then many subdirectories of that. That's going to confuse things at best, perhaps even make content/source root evaluation work incorrectly.

    I think before we debug this further, I'd need to see a vastly simplified version of this file with a single content root and non-overlapping source roots configured under that.

  4. Scott Wells repo owner

    Resolving due to lack of activity. If this is still happening, please provide your latest project config files for review.

  5. Log in to comment