Bug 492747 - Spell checking doesn't work in some cases related to Diff highlighting
Summary: Spell checking doesn't work in some cases related to Diff highlighting
Status: REPORTED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-07 10:45 UTC by Ganton
Modified: 2025-05-20 10:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ganton 2024-09-07 10:45:09 UTC
STEPS TO REPRODUCE
    1. In Settings, enable "Automatic spell checking by default".
    2. Create a new file. Type an incorrect text like "adfsllsdkf" and check that the incorrect text is underlined.
    3. Go to "Tools > Highlighting > Other" and enable Diff.
    4. Check that the incorrect text like "adfsllsdkf" is still underlined.
    5. Save the file as "1.txt". Close the file in Kate.
    6. Open the file again. Check that no word is underlined, like if the spell checking didn't work...
Comment 1 Jonathan Poelen 2025-05-20 10:25:53 UTC
I don't have exactly the same behavior, the spell checking is deactivated at step 5, when you save. It reactivates at step 6.

If I remember Kate's behavior (but it may not be the same on the tested version), a save resets the document state and the syntax Diff deactivates the spell checking.

For me, the problem is that Kate doesn't synchronize the spell checking when you change the syntax.

When the document is opened, Kate may have retained the syntax associated with file 1.txt and applied the configuration in accordance with the syntax file: no spell checking.

If the problem is specific to the lack of spell checking with the Diff syntax, the commit associated with this change is as follows:

    avoid spell checking in diffs
    
    in most diffs, the spell checking fails
    due to embedded code
    
    just avoid to spell check diffs completely ATM

There is no way to force verification other than to create a new syntax file that does not force deactivation.