Getting a lot of stale connection list messages when nothing has changed.
I’m getting these messages maybe every 15 minutes even though nothing has changed and I haven’t even used SFDX separately.
Is this the expected behaviour? Just a little annoying & distracting to have these pop up every 15 minutes or so.
Comments (6)
-
repo owner -
repo owner - changed status to resolved
I'm going to resolve this based on that explanation. Let me know if it's not matching the description.
-
reporter Ok I was refreshing it however, it seemed to pop up. Maybe I was just imaging it. If it happens again I’ll re-open and give more details.
-
repo owner Yeah, if that happens please let me know. There is actually a separate notification for when a single connection gets updated, and that can cause a ripple effect on needing to update the list as well. That may be what you're seeing. If so, I'm planning(/hoping) to address that this week so that you don't get the double notification. In my experience that's pretty rare, but it's one situation in which this can occur.
-
Hi @Scott Wells
I would like to note that I’m facing the same issue. The popup shows up extremely frequently (almost every time I start working), the 15 minute delay barely helps.
I also don’t want to click on “Don’t Show This Again” because the automatic refreshing is actually useful when I’m actually working on multiple scratch orgs.
Do you think you could increase the timeout from 15 minutes to something like 24 hours or provide an option to do so? I could also provide you the files from my ~/.sfdx folder to help you debug the issue further.
Thanks!
Here’s my environment:
IntelliJ IDEA 2020.2 (Community Edition)
Build #IC-202.6397.94, built on July 27, 2020
Runtime version: 11.0.7+10-b944.20 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.7.12-arch1-1
GC: ParNew, ConcurrentMarkSweep
Memory: 1446M
Cores: 4
Non-Bundled Plugins: Eclipse theme, by.vkatz.decorate_mode_switcher, com.RedTeam.unique.plugin.id, com.intellij.marketplace, com.intellij.plugins.watcher, com.jetbrains.ChooseRuntime, name.kropp.intellij.qml, com.illuminatedcloud2.intellij, Dart, io.flutter
Current Desktop: KDE -
repo owner I'm going to be revisiting this shortly (perhaps in the next few days) to offer multiple options for how to handle caching of CLI information. This will include automatic read-through as before for those who don't see any issues with that; prompting as now, likely with a configurable quiet period between notifications; a new synchronous option that would use the
--skipconnectionstatus
flag which is MUCH faster but can lead to stale results that would require the user to perform an explicit refresh. Once I have it implemented I'll decide which should be the default, but I'm hoping that the new option will work as default behavior because it would eliminate the prompt for the most part while still being very fast.Keep an eye out in the next build or two for these changes.
- Log in to comment
Those are shown when key JSON files under
~/.sfdx
are modified (not just timestamps but also CRC changes) more recently than IC's cached version of the output fromforce:org:list
was populated. It indicates that IC's cache is stale. By clicking the Refresh link, IC will re-runsfdx force:org:list
and cache those results. If you ignore it or click Remind Me Later, it will snooze the notification for 15 minutes. If you don't want to see those notifications at all, just click Don't Show This Again and IC won't tell you when caches are out-of-date. If you have issues you'll need to refresh the connection list's SFDX entries explicitly, either via the Refresh toolbar button on the connection list or by running the Refresh Salesforce CLI Connections action.