Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with scrolling to the edit line in cloned tabs. (IEP-1363) #1077

Open
nfsdaemon opened this issue Nov 7, 2024 · 0 comments
Open

Comments

@nfsdaemon
Copy link

Describe the bug
When opening a file in two tabs, when displaying different sections of the code, an attempt to edit the code in one panel provokes scrolling to the editing area in the second panel if the editing area in first panel was above the display area in the other panel.

To Reproduce
Steps to reproduce the behavior:

  1. Open a file of sufficient size. I have not investigated which one, but the restful_server demo allows you to estimate the limit, because the project contains two files: esp_rest_main.c and rest_server.c. My first file contains 139 lines and the problem is not reproduced on it, the second file contains 227 lines and the problem can be reproduced on it.
  2. Open one file (in this example - rest_server.c) in two panels. Eclipse provides several possibilities here, I checked with the help of (any of them):
    2.1. Window - Editor - Toggle Split Editor. both - Horizontal and Vertical).
    2.2. Window - Editor - Clone
    2.3. Window - New Window
    In the 2.2 case, to see the problem, you need to make both tabs appear together, for this you can do one of the following steps:
    a) Drag the tab to the right side of the window, splitting it into two panels.
    b) Right-click on the tab and select Detach.
  3. Move to different parts of the code, for example, in the first one you can stay at the beginning of the file, and in the second one you can scroll to the end (optionally, you can put the cursor on the last lines, but this is not necessary).
  4. Now you need to change something in the first tab in the first lines - add or delete any character.
    After this action, the text in the second tab will scroll to the place where you edited the first one, while the cursor will remain unchanged (if it was moved to the last lines in step 3).

Problem affected in Espressif IDF Project only, if I create C/C++ Project in Espressif IDE where is no described problem withh scrolling.
And the problem only shows itself only if editing area in one panel is above display area in second panel, if not - scrolling is not executed.

I use Ubuntu 24.04.1 LTS. Espressif IDE is fresh installed (no addtitional software installed into IDE).

Expected behavior
No scroolling on second tab to editing code in first tab.

Screenshots
Screenshot does not show the bug. I can demonstate it in video if needed.

Espressif-IDE Product Information:
Product Information.txt

Eclipse Error log:
Error.log

@github-actions github-actions bot changed the title Problem with scrolling to the edit line in cloned tabs. Problem with scrolling to the edit line in cloned tabs. (IEP-1363) Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant