Bug 490353 - Activate Close editors automatically with a default of 99
Summary: Activate Close editors automatically with a default of 99
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 4.13 M1   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
: 91486 (view as bug list)
Depends on: 462613 509456
Blocks:
  Show dependency tree
 
Reported: 2016-03-24 04:38 EDT by Lars Vogel CLA
Modified: 2019-06-23 04:36 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2016-03-24 04:38:22 EDT
Several users report bad performance if to many editors are opened. We should warn the user if he opens the first time more than 99 editors and explain to him that this might cause performance issues. We could also point tot the preference page for auto-closing editors once a certain threshold is reached.
Comment 1 Lars Vogel CLA 2016-03-24 07:06:50 EDT
Stefan, can you take this one?
Comment 2 Dani Megert CLA 2016-03-29 12:58:07 EDT
> Several users report bad performance if to many editors are opened.

Can you list those bugs here, please.


> We should warn the user if he opens the first time more than 99

It would be good to make the trigger dynamic. "99" might work for normal textual editors on normal files. If editors are opened on very big files or more complex editors, like PDE editors, are opened, then 99 might already be too high.
Comment 3 Stefan Xenos CLA 2016-03-29 13:26:29 EDT
> 99 might already be too high

It might be too high to prevent performance or memory issues, yes... but I don't think that's the point of the prompt. The point of the prompt is to teach users what they should do about it if they find the performance unacceptable without annoying users who are already in the habit of closing their unused tabs regularly.

> Can you list those bugs here, please.

At least in my case, I generally resolved the user issues by telling them "close all those editors". I never filed a bug against Eclipse since I considered the large number of open editors itself to be the problem. Now that we're enabling the auto-close preference within Google, I'm unlikely to see such reports again.

However, I'll run some of my own tests the next chance I get and will file some bugs about whatever I find.
Comment 4 Lars Vogel CLA 2016-04-25 15:11:58 EDT
Mass move to 4.6 RC1. We might push out more to 4.7.
Comment 5 Lars Vogel CLA 2016-09-28 02:13:50 EDT
I suggest to activate "Close editors automatically" and set the limit to 99. This way we prevent users from running Eclipse with a super large number of open editors in the default configuration.

I know this was discussed before but IMHO the limit of 99 should be sufficient to affect normal users.
Comment 6 Lars Vogel CLA 2016-10-31 12:13:42 EDT
Mass move to M4.
Comment 7 Lars Vogel CLA 2016-11-28 07:28:08 EST
(In reply to Lars Vogel from comment #5)
> I suggest to activate "Close editors automatically" and set the limit to 99.
> This way we prevent users from running Eclipse with a super large number of
> open editors in the default configuration.

Dani, any objections against this? I think this will help to keep the Eclipse IDE responsive by default, even if the user never look at the number of open editors.

> I know this was discussed before but IMHO the limit of 99 should be
> sufficient to not affect normal users.
Comment 8 Lars Vogel CLA 2016-12-06 13:06:53 EST
I plan to commit this early M5, unless I hear concerns from Dani or others.
Comment 9 Lars Vogel CLA 2016-12-13 10:16:29 EST
David, please provide a Gerrit review for this change.
Comment 10 Eclipse Genie CLA 2016-12-13 11:18:38 EST
New Gerrit change created: https://git.eclipse.org/r/87065
Comment 12 Dani Megert CLA 2016-12-15 08:03:06 EST
(In reply to Lars Vogel from comment #8)
> I plan to commit this early M5, unless I hear concerns from Dani or others.

The N&N must tell people who enabled that preference and did not change the default, will now no longer get the editors closed after 8 open editors. It will take them 99 editors.
Comment 13 Markus Keller CLA 2016-12-20 10:12:21 EST
This change made editor pinning more prominent/necessary, so it should raise your priority for fixing pinning-related bugs like bug 462613, bug 461667, bug 509456, bug 461579.
Comment 14 Dani Megert CLA 2016-12-20 12:03:04 EST
(In reply to Markus Keller from comment #13)
> This change made editor pinning more prominent/necessary, so it should raise
> your priority for fixing pinning-related bugs like bug 462613, bug 461667,
> bug 509456, bug 461579.

David, Lars, can you fix those for M5? Otherwise I tend to revert your change.
Comment 15 Lars Vogel CLA 2016-12-20 12:11:29 EST
(In reply to Dani Megert from comment #14)
> David, Lars, can you fix those for M5? Otherwise I tend to revert your
> change.

I don't see the connection to the pinned editor issues so I do not see why they should depend on each other.
Comment 16 Dani Megert CLA 2016-12-20 12:15:03 EST
(In reply to Lars Vogel from comment #15)
> (In reply to Dani Megert from comment #14)
> > David, Lars, can you fix those for M5? Otherwise I tend to revert your
> > change.
> 
> I don't see the connection to the pinned editor issues so I do not see why
> they should depend on each other.

Because enabling to close editors automatically enables the pin functionality.
Comment 17 Eclipse Genie CLA 2017-01-16 12:41:34 EST
New Gerrit change created: https://git.eclipse.org/r/88776
Comment 19 Dani Megert CLA 2017-01-16 12:44:58 EST
(In reply to Eclipse Genie from comment #18)
> Gerrit change https://git.eclipse.org/r/88776 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=2d70242174b0db98a6b72ac34318b770993b3835
> 

This reverts the change. Since pinning was enabled out of the box, the bugs mentioned in comment 13 become prominent. Those need to be fixed before fixing this bug here.
Comment 20 Lars Vogel CLA 2018-08-30 15:25:44 EDT
(In reply to Dani Megert from comment #19)
> Since pinning was enabled out of the box, the bugs
> mentioned in comment 13 become prominent. Those need to be fixed before
> fixing this bug here.

The changed only closed automatically editors if they reached 99, I think the performance degradation (I just run into such an issue with lots of Asciidoctor editors open), is worse then making the pin bugs more prominent. I suggest enabling this again in 4.10. 99 seems like a high enough number so that this would only affect people which almost never close editors.
Comment 21 Eclipse Genie CLA 2018-10-25 02:01:39 EDT
New Gerrit change created: https://git.eclipse.org/r/131433
Comment 22 Andrey Loskutov CLA 2018-10-25 02:58:36 EDT
(In reply to Eclipse Genie from comment #21)
> New Gerrit change created: https://git.eclipse.org/r/131433

Lars, all bugs this one depends on are still open.
Comment 23 Lars Vogel CLA 2018-10-25 03:15:06 EDT
(In reply to Andrey Loskutov from comment #22)
> (In reply to Eclipse Genie from comment #21)
> > New Gerrit change created: https://git.eclipse.org/r/131433
> 
> Lars, all bugs this one depends on are still open.

See comment 20.
Comment 24 Lars Vogel CLA 2018-11-19 10:32:28 EST
(In reply to Lars Vogel from comment #20)
> (In reply to Dani Megert from comment #19)
> > Since pinning was enabled out of the box, the bugs
> > mentioned in comment 13 become prominent. Those need to be fixed before
> > fixing this bug here.
> 
> The changed only closed automatically editors if they reached 99, I think
> the performance degradation (I just run into such an issue with lots of
> Asciidoctor editors open), is worse than making the pin bugs more prominent.
> I suggest enabling this again in 4.10. 99 seems like a high enough number so
> that this would only affect people which almost never close editors.

Dani, what do you think? AFAIK pin editor is not so commonly used (I have not seen it in use) but having too many editors open is very common.
Comment 25 Lars Vogel CLA 2019-02-19 03:32:07 EST
Mass change, please reset target if you still planning to fix this for 4.11.
Comment 26 Lars Vogel CLA 2019-04-23 04:11:14 EDT
(In reply to Lars Vogel from comment #24)
> Dani, what do you think? AFAIK pin editor is not so commonly used (I have
> not seen it in use) but having too many editors open is very common.

Dani?
Comment 27 Dani Megert CLA 2019-04-23 09:11:34 EDT
(In reply to Lars Vogel from comment #26)
> (In reply to Lars Vogel from comment #24)
> > Dani, what do you think? AFAIK pin editor is not so commonly used (I have
> > not seen it in use) but having too many editors open is very common.
> 
> Dani?
At least bug 462613 and bug 509456 should be addressed first.
Comment 28 Rolf Theunissen CLA 2019-06-16 06:56:38 EDT
This bug is a duplicate of Bug 91486. However I don't want to destroy the discussion on this bug, so it adding as 'See also'.
Comment 29 Lars Vogel CLA 2019-06-18 06:53:53 EDT
(In reply to Dani Megert from comment #27)
> > Dani?
> At least bug 462613 and bug 509456 should be addressed first.

Done. Planning to merge the 99 patch tomorrow.
Comment 30 Lars Vogel CLA 2019-06-18 06:54:50 EDT
*** Bug 91486 has been marked as a duplicate of this bug. ***
Comment 32 Eclipse Genie CLA 2019-06-19 04:04:14 EDT
New Gerrit change created: https://git.eclipse.org/r/144407
Comment 33 Lars Vogel CLA 2019-06-19 04:05:56 EDT
(In reply to Dani Megert from comment #27)
> > Dani?
> At least bug 462613 and bug 509456 should be addressed first.

Move the other bugs to see also.