Version: 3.0.3 (using KDE 4.0.3) Installed from: Fedora RPMs OS: Linux After opening a couple of files with Kate, I open the attached terminal tool. The terminal is supposed to cd to the directory of the file. But the text is misplaced between lines. A 'clear' cleans everything up, but the issue is better resolved. :-) Attached is a screenshot.
Created attachment 24911 [details] Screenshot showing the problem
Using the same version under Kubuntu/KDE4, I get similar errors with the terminal tool. I will attach a screenshot as well. Bug should be confirmed...
Created attachment 24915 [details] kate-bug-1.jpg
Problem exists in Kate 3.0.4/KDE 4.0.4
Dolphin also *had* the same problem with the Terminal panel. But it now seems to be *fixed*, by automatically doing a clear immediately after it's invoked. Perhaps Kate can do the same.
On the other hand, that will remove the text. It would be better if it could be solved at the konsolepart side if we cant find a proper solution. I do not know what happens when toolviews are hidden, but I guess the problem comes from the collapsing setting the height to 0.
Version 3.1.0 Using KDE 4.1.00 (KDE 4.1.0) (KDEmod) in ArchLinux i686 I can reproduce this bug
*** Bug 173867 has been marked as a duplicate of this bug. ***
Kate Devs, I wanted to make sure you got the information from my duplicate bug (173867) "Summary: kate terminal show/hide truncates scrollback" for your consideration here. This was on openSuSE 11.0 x86_64 (kate 2.5.9 on kde 3.5.9 "release 49.1") Sorry I missed this bug when I filed the first time. In kate after using the terminal window and then hiding the terminal window, when your show the terminal window again, the scrollback is truncated at 18 characters. Here are two screenshots that clearly illustrate the problem. http://www.3111skyline.com/download/screenshots/kde/kate_terminal-scrollback.jpg http://www.3111skyline.com/download/screenshots/kde/kate_terminal-scrollback1.jpg In the first, I have opened the terminal window and created a screen width ruler showing the characters that are viewable in the terminal window. Then I close terminal to make a quick edit. As shown in the second screenshot, when I show the terminal again, all the existing text in the terminal window has been truncated to 18 characters. Bummer. That's the bug. Let me know if I can send you anything else or test it in other ways. Thanks.
The code in Kate is only hiding and showing the Konsole Part. This is probably a bug in the konsole part and not in kate. Adding konsole authors. Research shows in kdebase/apps/konsole/src/TerminalDisplay.cpp: 1. TerminalDisplay::hideEvent: sizes are ok (231 x 791) 2. TerminalDisplay::showEvent: sizes are wrong (61 x 44) It should still be 231 x 791 in (2). We can see showEvent() already has wrong _contentHeight/Width. Where does it come from? _contentHeight/Width is calculated in TerminalDisplay::calcGeometry() depending on the contentsRect(). So the contentsRect() must be wrong. Debugging shows: 1. ::calcGeometry() is called before showEvent() with contentsRect() returning e.g. QRect(0,0 62x62) <-- This is wrong. 2. now showEvent is called, again with wrong _contentHeigth/Width 3. ::calcGeometry() is called again, this time with correct contentsRect(), e.g. set to QRect(0,0 809x232) This really looks like a konsole issue.
Confirmed. This is VERY annoying bug. For example i often start long tests on Kate terminal, close it and go back to coding. If i open terminal after test ends the summary output is messed up (just like on screnshots uploaded here by other reporters). Confirmed on KDE versions 3.5.7-4.2.2.
Reassign to Konsole developers, see comment 10.
Any news? See comment #10 for a start. Would be nice if this gets resolved...
Hello, This won't reproduce when testing this on KDE 4.6 RC2. Please update packages and confirme it's fixed for you. Valentin
(In reply to comment #14) The problem *exists* on KDE 4.6 too. I've updated to KDE 4.6 from kde-testing repo for Fedora 14. Yes, 4.6 is not yet available on stable Fedora updates repo yet. But as far as I can see from these builds, the bug is open.
Maybe bug #132197 is a duplicate. Does it work with KDE 4.7?
The bug is still there under current git master version. I looked/stepped into the code and now can say that the resizing bug shows only when konsole is used as a KPart. Maybe something is missing inside Part.cpp compared to full konsole session. I cannot figure it out for the moment.
I haven't looked into the details mentioned in comment #10, but I failed to reproduce the problem in the original report and comment #9 with kate-3.7.2 and kate-2.7.999(devel version).
It's still there, with Kate and Konsole from git.
The resize event with QSize(80, 80) comes from katemdi.cpp, so this is not a Konsole issue after all... Still need to find out the reason.
Party fixed in GIT master, still cornercases wrong I think :(
*** Bug 287538 has been marked as a duplicate of this bug. ***
Git commit 71d40cc8b9f18983d59a27f63f2859dd27392dd2 by Christoph Cullmann. Committed on 10/11/2012 at 20:41. Pushed by cullmann into branch 'master'. fix problem with artificial konsole resizing that kills the content of konsole window M +8 -0 kate/app/katemdi.cpp http://commits.kde.org/kate/71d40cc8b9f18983d59a27f63f2859dd27392dd2