| Summary: | [context] sometimes, switching to another file goes back to the old file immediately | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Marc-André Laperle <malaperle> |
| Component: | Mylyn | Assignee: | Mylyn Inbox <mylyn-inbox> |
| Status: | CLOSED MOVED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | shawn.minto |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Marc-André Laperle
Thanks for the bug report. This could be related to auto folding since some of it runs asynchronously for CDT editors. Could you try disabling that in the main toolbar and let us know if the problem persists? Thanks for the help. Folding is disabled. Nothing in the error log. Also reproduced on Mac OS X on a different project. I can also reproduce the problem with a project containing only two empty files. The frequency of this problem greatly varies. I find the easiest way to reproduce it is to do Ctrl+tab between two files repeatedly and quickly but slowly enough to notice when it wrongly goes back to the previous file. I do it about 3-4 times/second and I see the problem fairly quickly (< 10 sec). *** Bug 321288 has been marked as a duplicate of this bug. *** I am unable to reproduce this problem here. What version of Eclipse and Mylyn are you using so I can try to reproduce in the same environment? Unable to reproduce: Eclipse 3.5.2 CDT 6.0.2 with the combination of: - Mylyn Bridge: C/C++ Development 5.1.0 (Mylyn 3.2.3) - Mylyn Bridge: C/C++ Development 5.2.0 (Mylyn 3.3.0) (Could not install 3.3.1, bad MD5 hash) - Mylyn Bridge: C/C++ Development 5.2.2 (Mylyn 3.3.2) - Mylyn Bridge: C/C++ Development 5.2.2 (Mylyn 3.3.3) - Mylyn Bridge: C/C++ Development 5.2.2 (Mylyn 3.4) Able to reproduce: Eclipse 3.6.0 CDT 6.0.2 Mylyn Bridge: C/C++ Development 5.2.100 (Mylyn 3.4.1) Eclipse 3.6.0 CDT 7.0.0 Mylyn Bridge: C/C++ Development 5.2.2 (Mylyn 3.4) Eclipse 3.6.0 CDT 8.0 (201008280006) with the combination of: - NO Mylyn Bridge C/C++ but Mylyn 3.4 (Task List, etc) - Mylyn Bridge: C/C++ Development 5.2.2 (Mylyn 3.4) - Mylyn Bridge: C/C++ Development 5.2.100.v20100804 (Mylyn 3.4.1) To my surprise, it still happens without the C/C++ bridge but it doesn't happen with Java files. If this is happening without the C/C++ bridge, it seems that this could be an issue in CDT itself. Can you try to reproduce this without Mylyn installed? (In reply to comment #6) > If this is happening without the C/C++ bridge, it seems that this could be an > issue in CDT itself. Can you try to reproduce this without Mylyn installed? It only happens when a task is activated. I've been using CDT 8.0 for weeks with Mylyn installed but with no task activated and the problem does not appear. Maybe it has to do with the workspace. I have three different workspaces with different projects with the problem when a task is activated but if I create a new workspace with a hello world project, I don't have the problem. I will investigate this further. I will take this off the milestone until we have found steps to reproduce the problem on our end. I have more info. Before activating a task, make sure the Project Explorer is opened and that the icon "Link with editor" is pressed. Then activate the task. Notice the two icons "Link with Editor" and "Focus on Active Task" are both pressed. Switch between files as described in comment 2. I can now reproduce this in Java with the Project Explorer "Linked" and "Focused", but not with the Package Explorer. It looks like there is a problem with Project Explorer + Link with Editor + Mylyn. BTW I don't have any org.eclipse.mylyn.java.* or org.eclipse.cdt.mylyn.* enabled. So I guess the problem is in org.eclipse.mylyn.ide.ui. If I disable this plugin, the problem goes away, but then I don't get a focused Project Explorer, etc. Hope this helps! Removing [CDT] as I can reproduce it without CDT (Java EPP package). Thanks for investigating this. We'll try to reproduce. Mylyn has been restructured, and our issue tracking has moved to GitHub [1]. We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub. [1] https://github.com/orgs/eclipse-mylyn |