Right-clicking on a grammatical error does not show the context menu for grammatical errors if the grammar check does not provide any suggestions. Otherwise, the context menu is displayed correctly. This error does not occur until version 7.6.
Likely related to https://gerrit.libreoffice.org/c/core/+/158832
I was able to get the suggestions for a mistyped word upon right click. Version: 24.2.0.3 (X86_64) / LibreOffice Community Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1 CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: en-IN (en_IN); UI: en-US Calc: threaded
Created attachment 193052 [details] word suggestions upon rightclick
(In reply to Naresh from comment #2) > I was able to get the suggestions for a mistyped word upon right click. But this issue is not about the case when the spellcheck provides suggestions; it is not about spellcheck at all. It is about *grammar check*, and specifically about the case when the engine does *not* provide any suggestions.
Fred: could you please provide specific steps to repro the problem? This requires: 1. Provide an exact text, and its language; or a ready-made ODT document with a text; 2. Describe how your grammar checking (for the relevant language) is set up (e.g., if you set up LanguageTool - is that built-in server setup, or a Java-based plugin; or maybe it's LightProof; maybe you have tweaked some relevant settings of the checker); 3. On which place should we right-click, to see the problem; what is expected; and what you see instead. Thank you.
Created attachment 193159 [details] ODT with grammar error: missig quote
1. I tested it in English and German. An ODT with a short English text is added. Grammar error: A closing quote is missing. 2. To make it easier to test, I used the built-in LanguageTool with the default server URL for the attached screenshots. But the same error occurred with the Java-based LanguageTool extension. 3. The first screenshots "right click LO 7.6.5" shows the expected behavior. The second screenshot "right click LO 24.2" shows the bug. There is no grammar error context menu but the default context menu as there were nor grammar error.
Created attachment 193160 [details] Correct: LO 7.6.5: Right click on grammar error
Created attachment 193161 [details] Bug: LO 24.2: Right click on grammar error
[Automated Action] NeedInfo-To-Unconfirmed
Hello, thank you for reporting the bug. On the versions: Version: 24.2.1.2 (X86_64) / LibreOffice Community Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: ko-KR (en_US); UI: en-US Calc: CL threaded Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 6a064b1967e06e40be40817deff99d00c1a8554f CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: ko-KR (en_US); UI: en-US Calc: CL threaded On the attached file, I can't seem to replicate the red autocorrect line for This is a "test. line. However, I can confirm that any other texts with grammatical errors shows the context menu for the grammar check.
Repro. Regression after 4c6c60d44b0056cbe08b6e75baacbc0df0cd1742. Reverting it restores the menu. Note this description in the discussion of the patch: > This patch solves below problem: > Sometimes suggestions are not shown. > When there are 2 lists, the first list is shown and the second one will be shown > after the first issue is solved. With this patch, we prioritize the second one > if there is no suggestions for the first one. > > In this 1.empty 2.non-empty case, if the second issue is solved then the first > one will be shown. Since there is no suggestions list for the first one, the > first one will only be shown as with underline. It would be great to know under which circumstances there will arrive two suggestions. Maybe there is a way to have the menu anyway?