Community
Participate
Working Groups
Build Identifier: 20100218-1602 When editing a long line where you had to scroll to the right. And then you put the cursor to the left of where you edited (using a mouse click) or attempt to select text that is to the left of the edited text. For some reason the editor unwantedly and unexpectedly scrolls horizontally. It seems that this only happens when code folding is enabled. There are other issues which I think are side effects of enabling code folding that I'm still trying to get steps to reproduce: - I've also noticed that Eclispse steals focus from other applications (when you save, and then quickly switch to another app where file has > 10000 lines) - When adding a #ifdef/#else/#endif guard sometimes the code folding buttons (in the margin aren't rendered, but you can still click on them) Reproducible: Always Steps to Reproduce: 1. Enable code folding (if not already enabled) 2. open a file with long lines (i.e. the line is wider than the window and requires horizontal scrolling to view the end of the line) 3. scroll to the right 4. enter text at the end of the line (or somewhere near the end) 5. use the mouse and click somewhere to the left side of the new text 6. the editor incorrectly scrolls the editor to the left
This seems to work for me. Could you attach a screen shot showing the problem?
Created attachment 178991 [details] screenshot "before" editing long line
Created attachment 178992 [details] screenshot "after" editing long line
I've attached two images. It turns out that you don't even have to mouse click to the left of the edited text. Here is a description of the sequence of images: In the first one "before", I have scrolled horizontally to the right and I am about to remove a typo (delete the 'X'). I then press delete key and if I wait a second (I don't do anything after pressing delete). Eclipse incorrectly, automatically scrolls left (to the zero column). Note that code folding is active. I have since found that this bug is not reproducible in all cases (sorry for misleading info), but once you find a file where it does happen, it always happens for that line in the file (even after closing and reopening the file) - although I haven't tested restarting eclipse. It also seems to happen regardless of the type of edit you make to the line (e.g. delete, insert, paste all seem to make it happen).
(In reply to comment #4) > Eclipse incorrectly, automatically scrolls left (to the zero column). > Note that code folding is active. > > I have since found that this bug is not reproducible in all cases (sorry for > misleading info), but once you find a file where it does happen, it always > happens for that line in the file (even after closing and reopening the file) - > although I haven't tested restarting eclipse. > > It also seems to happen regardless of the type of edit you make to the line > (e.g. delete, insert, paste all seem to make it happen). If I disable code folding (for new editors) and reopen the file, the problem goes away
I could not reproduce so far. Does this only happen with lines inside an #ifdef/#ifndef/#if? The file seems to be quite large. Does it happen with small files, too?
This also happens to me on WinXP, Helios SR 1, Build id: 20100917-0705 using the PHP section (haven't tried it in alternate ones). To duplicate: 1) On a long line, scroll right 2) Set the cursor anywhere on the line 3) Type in something 4) Wait a second 5) Editor horizontally scrolls all the way left If it doesn't occur when you first do it, try using the backspace one or two characters. I can send a video of it occurring, if you'd like.
(In reply to comment #7) > This also happens to me on WinXP, Helios SR 1, Build id: 20100917-0705 using > the PHP section (haven't tried it in alternate ones). To duplicate: What do you mean by "PHP section"?
I mean that I'm using Eclipse for PHP Developers.
I use Eclipse for C/C++ developers. When I edit long lines with code folding enabled and pause writing for half a second, Eclipse scrolls horizontally. Very annoying. In Windows and Ubuntu.
I can reproduce this problem, when the next line after the line you're editing begins a branch that is a folded. Bug 461122 is similar, they may have the same cause.
This bug is very boring, and still "NEW" ? Good Lord... With this bug working with Cucumber feature file is a mess. Version: 2021-06 (4.20.0) Build id: 20210612-2011 Cucumber Eclipse: 1.0.0.202012131300