Bug 380790

Summary: FIXED IN SVN: folding only works after reloading R script
Product: [Applications] rkward Reporter: RKWard Team <rkward-devel>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description RKWard Team 2012-09-04 17:14:51 UTC
-- Originally posted by (AT sourceforge.net): rtautenh --

-- This ticket was imported from http://sourceforge.net/p/rkward/bugs/122 on 2017-05-30 15:27:01 +0100 --
Some of the recent changes seem to have introduced a problem with the code folding.

Code folding does not work \(or not correctly\) unlessl the file is reloaded \(pressing F5\).
After that it works fine.

Version 0.5.7z+0.5.8+devel1
Using KDE Development Platform 4.4.92 \(KDE 4.4.92 \(KDE 4.5 RC2\)\)-- Labels: user interface --
Comment 1 Thomas Friedrichsmeier 2012-09-05 10:18:58 UTC
Hi Ralf\!

Wow, that's a pretty mysterious problem. It took me some time to reproduce this. Apparently, the ingredients are:
\- a script that is not too short
\- problem does not occur the \*first\* time a script was opened, and may or may not come up, subsequently. When it does come up for a certain file, the problem will persist for that file, even across sessions.
\- When the problem occurs, the document config for that file will always have
Highlighting=R Script
Mode=Normal
\- changing that to
Highlighting=R Script
Mode=R Script
makes the problem go away.

Based on the last bit, I invented a hack that seems to fix them problem, here. The actual cause is still a mystery to me. Please test.

\(In case you want to toy with this, before updating: The relevant config is \_currently\_ saved in ~/.kde/share/apps/rkward/workspace\_config\_SOME\_MD5\_SUM.\)

Regards
Thomas
Comment 2 Thomas Friedrichsmeier 2012-09-05 10:18:58 UTC
- **assigned_to**: nobody --> tfry
Comment 3 RKWard Team 2012-09-05 15:24:26 UTC
-- Originally posted by (AT sourceforge.net): rtautenh --
Sorry that I gave you such a hard time reproducing this bug\!

It works now.
Thank you Thomas\!
Comment 4 Thomas Friedrichsmeier 2012-09-06 06:50:34 UTC
Well, thanks for reporting\! Receiving bug reports shortly after doing the changes that introduced the bug helps a \_lot\_. A few months later, I don't think I would have had any idea on where to start looking.

This bug only affected the SVN version, no official release, so I'm closing the report, directly.
Comment 5 Thomas Friedrichsmeier 2012-09-06 06:50:34 UTC
- **summary**: code folding only works after reloading a R script --> FIXED IN SVN: folding only works after reloading R script
- **status**: open --> closed-fixed