Bug 145096 - Writer [Collected Words] ignores tick box – (When closing a document, remove the words collected from it, from the list.)
Summary: Writer [Collected Words] ignores tick box – (When closing a document, remove ...
Status: RESOLVED DUPLICATE of bug 67826
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2021-10-12 15:10 UTC by ThinkPud
Modified: 2021-11-06 04:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ThinkPud 2021-10-12 15:10:14 UTC
Description:
In Writer, AutoCorrect Options, Collected Words. Ticking the option “When closing a document, remove the words collected from it, from the list.”, Writer still retains all collected items from that list and applies them as suggestions in new or existing documents. The Collected Words list of a new document is visually empty, but when typing, Writer suggests items from the Collected Words lists of previously opened documents. Only by rebooting the computer is that ‘internal’ list cleared. 

However, when a document is next opened, the Collected Words list, from that document, is always added to an ‘internal’ list. Regardless of tick box position, Writer always retains the items of every Collected Words list.

Steps to Reproduce:
Opened an existing Writer .docx document. Ensured Collected Words and "When closing a document, remove the words collected from it, from the list", options were both ticked. Added gibberish words to the document and checked they had been added to the Collected Words list. Saved and closed the document.

Created a new .docx document and verified the Collected Words list was empty. On typing, I was able to get Writer to offer the gibberish words as AutoCorrect suggestions. I checked my user-defined dictionary to confirm the gibberish words had not been added. The suggestions came only from the Collected Words list. 

I opened a second existing document, noted a specific item (alphanumeric) in its Collected Words list then closed the document. On continuing to type into the new document I was able to get the same alphanumeric suggestion to appear. 

Only by rebooting the computer was I able to clear the lists of those two documents. But on reopening them, or any other existing documents, the same issue would reoccur. 

Actual Results:
With the second option ticked. The Collected Words list of each document correctly displays the items specific to that document and no other. However, when typing into any document, Writer still uses the Collected Words lists of every previously opened document. 

Visually, Writer is correct in not showing lists from other documents, but when typing, it incorrectly still suggests items from every Collected Words list, of previously opened documents. 

Regardless of the tick box position, Writer will always use the Collected Words lists from every previously opened document. 


Expected Results:
I was expecting the second tick box option to not only clear the Collected Words list visually, but also that it would stop Collected Words, of one document, from appearing as suggestions in a different document.

Currently, the tick box’s only function is visually clearing a list. Operationally it does nothing. 



Reproducible: Always


User Profile Reset: Yes



Additional Info:
I tested the above with both .docx and .odt documents and the behavior was identical in each case.
Comment 1 ThinkPud 2021-10-13 07:33:21 UTC
This issue is possibly related a much earlier bug report 67826, from 2013.

I can also verify that the issue described in that bug report and the issue I am describing here were the same in every version of LibreOffice 6 I installed and used. 

It would appear, in both cases, LibreOffice is caching the Collected Words list of all previously opened documents in that session. So regardless of "When closing a document, remove the words collected from it from the list." being ticked LibreOffice retains all collected lists until the computer is restarted. 

The issue then repeats each time an existing document is opened.

I can also confirm that in LibreOffice 7.2.0.4, the Delete button, on the Word Completion tab, does not work. As was reported in 67826 any word deleted from the list, reappears the moment the screen is closed or the document reopened.

Currently, with Collected Words, the user has no control over the words stored in each list, other than by defining word length and maximum number of entries.

It would I accept be a feature request, but be helpful if a user could delete words from collected lists, so each list stored only the required items, not simply everything up to the defined limits.
Comment 2 Dieter 2021-11-05 12:48:26 UTC
LO help says: "The list remains available until you exit LibreOffice." [1] I confirm that. If you reopen LO, list is empty. But list is still available in the original document (expected).

So perhaps should be: "When closing a LibreOffice, remove the words collected from a document, from the list."

ThinkPud, wozuld that solve your problem?
=> NEEDINFO

[1] https://help.libreoffice.org/7.2/en-GB/text/shared/01/06040600.html?System=WIN&DbPAR=WRITER&HID=cui/ui/wordcompletionpage/WordCompletionPage#bm_id4897916
Comment 3 ThinkPud 2021-11-05 20:03:34 UTC
Dieter, thank you, I appreciate your suggestion, but unfortunately, it doesn’t resolve the issue. 

Writer is incorrectly storing the Collected Words list for every opened document, in that session, even when it’s been told not to do that. 

What you propose would ask that a user remembers to either reboot their computer, or completely shut down LibreOffice, every time they wanted to start or edit any document, just to avoid the collected words from previously opened documents appearing. I couldn’t imagine anyone doing that as a matter of routine.

The solution is for Writer to not cache words from each document, if “When closing a document, remove the words collected from it, from the list.” has been ticked/marked. 

With it ticked/marked, simply closing a document should be all that is required to clear the usable list, so the collected words of that document, will not appear as suggestions in a different document. It would then behave as stated in the LibreOffice 7.2 help page. See sentence in quotes below.

When closing a document, remove the words collected from it from the list

"When marked, the list is cleared upon closing the current document." When cleared, makes the current Word Completion list available to other documents after you close the current document. The list remains available until you exit LibreOffice.
Comment 4 QA Administrators 2021-11-06 03:56:10 UTC Comment hidden (obsolete)
Comment 5 Shantanu 2021-11-06 04:03:33 UTC
reproduced using...

Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 1; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

If the option is there to clear the list, it should work as expected. Or simply remove that from User Interface so that the we will have no other choice but to reboot!

*** This bug has been marked as a duplicate of bug 67826 ***