Community
Participate
Working Groups
Sometimes, after navigating to a file using the "Problems" view (ie, by double-clicking a problem), that file does not get properly inserted into the history used for the "backward / forward history" commands. It seems like the issue only occurs in cases where the navigation to the problem caused a new file to be opened. To reproduce: - Setup: A workspace with at least one problem (e.g. a compile error) - Close all files - Open the Problems view - Open a file other than the one that has a compilation error (File A) - Use the Problems view to navigate to the compilation error via double click (File B) - After the file opens, navigate somewhere else, e.g. by using F3 to jump to another class (File C) - Click the backward history button Result: The back button jumps you from File C back to File A, skipping over File B. NOTE: The bug only seems to occur if you double click on a problem while the problems view does not already have keyboard focus. So it won't happen, for example, if you click once to select the problem, pause, then double click to navigate. It also will not occur if you first click the "Problems" tab to open it, since that grants focus to the tab.
Disregard the part about the issue only happening when a new file is opened; further testing revealed that it was focus-related, and can occur regardless of whether a new file is opened or not.