Tasks sometimes close when shelving changes 🙃
I have a long outstanding annoyance with PHPStorm where if I shelve a change list, it will sometimes close the task and remove the change list and sometimes not. It has behaved like this for maybe a year or more.
I cannot predict when it will close the task as a part of shelving, and cannot determine how I might control it.
As such, when I unshelve changes, I find my change list has gone. So I have to located the closed task and reopen it to get the change list back.
It happens maybe 30% of the time, turning shelving/unshelving a tedious process.
Is this a fault with PHPStorm, or is there someway I can control this so it behaves predictably?
Please sign in to leave a comment.
Hi,
How exactly do you shelve?
When the tasks closes, how does it look in the UI, any specific changes?
Can you reproduce and share the fully zipped logs please?
I have Jira as a Task server.
I also find it happens if I create a change-list from scratch (I.e. without linking it to a task.)
The Commit tab no longer displays the Change List item. The task is no longer listed in the Switch Tasks list, and I have to find it in the Open Tasks list by choosing the option to see closed tasks.
Is there a guide for how get the appropriate logs?
Hi,
Can you please elaborate:
“I also find it happens if I create a change-list from scratch (I.e. without linking it to a task.)”
What exactly happens? How does the task get closed if the change-list is not linked?
As for logs, please see: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files, please zip the whole file and upload it to https://uploads.jetbrains.com/.
> What exactly happens? How does the task get closed if the change-list is not linked?
I right-click within the Commit panel, and choose New Changelist. When I shelve the change list, the change list may be removed.
In this case, there is not task, so a task does not get closed.
However, where a change list is linked to a task, then I find that the task will be in the closed list when I'm looking to restore the changelist so I can unshelve the change.
I will attach a log when it next happens.
I have replicated the issue and uploaded the idea.log files : 2024_06_18_xeE7ZrQ76VL9eMdFCav8Lk
I'm not sure what details are in the log, but I shelved 3 changelists (from the Commit panel) in the following order:
The changelist was preserved for the first two (I.e. they are still listed in the Commit panel, but without any modifed fiels) whilst the third one was unexpectedly removed.
It's removal was unexpected because I did not do anything different when shelving then 3rd changelist to how I shelved the first two changelists.
To shelve the changelists, I right-click them and choose “Shelve changes”.
To get my changelist back after it dissappears, I switch the task (Tools → Task & Contexts → Switch Task) and then create the changelist (Tools → Task & Context → Add Change List for ‘…’)
Hi Courtney, what option is set for you at Version Control → Changelists → Inactive Changelist → When an empty changelist becomes inactive?
Is it set to Do Nothing.
I see it has Remove Silently, which is definitely not selected. And where I seem to experience change lists being silently removed, it is intermittent.
hi,
Unfortunately we cannot reproduce it.
Are you using any non-downloaded plugins, would you be able to disable them and re-test?