STEPS TO REPRODUCE 1. Open a code file (I mainly edit React .js files, but this seems to happen with other formats too) 2. Modify the file externally (by changing git branches, by formatting it with 'prettier', etc) or simply press F5 OBSERVED RESULT Sometimes, the syntax highlighting will be reset and the text appears totally white. The syntax mode show at the bottom right corner is correct, but is not applied. I need to click that menu and select the language again. I haven't found correlations between this bug and other factors, it seems random. EXPECTED RESULT The file should reload and keep the original syntax highlighting. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
*** Bug 458775 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/424
Git commit 6314c0b9e62b17174ba8425a968a63d590e83d61 by Christoph Cullmann, on behalf of loh tar. Committed on 01/10/2022 at 17:01. Pushed by cullmann into branch 'master'. Ensure to set highlight on reload when file type was set by user This change do essentially nothing else than before, we only call updateFileType(..) direct and not by setMode() which allows bypassing the blocking in updateFileType(..) M +3 -1 src/document/katedocument.cpp https://invent.kde.org/frameworks/ktexteditor/commit/6314c0b9e62b17174ba8425a968a63d590e83d61
*** Bug 461942 has been marked as a duplicate of this bug. ***